This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
built_in:layouts [2015/11/22 18:54] 193.151.102.243 [Description] |
built_in:layouts [2018/07/21 20:19] 90.216.254.199 [Example - Vertical] |
||
---|---|---|---|
Line 35: | Line 35: | ||
lay.AddChild( btnB ); | lay.AddChild( btnB ); | ||
- | btnC = app.CreateButton( "C", 0.2, 0.1 ); | + | btnC = app.CreateButton( "mf yeet on those despacito depressed niBBas", 0.2, 0.1 ); |
lay.AddChild( btnC ); | lay.AddChild( btnC ); | ||
Line 174: | Line 174: | ||
^ Method | ^ Method | ||
| Layout.AddChild( child,order ) | child is the object to add to the Layout. Order is the rang option to make an object behind an other Object. | | Layout.AddChild( child,order ) | child is the object to add to the Layout. Order is the rang option to make an object behind an other Object. | ||
- | | Layout.Animate( type, | + | | Layout.Animate( type, callback, time ) | known types: SlideFromLeft,SlideFromRight,SlideFromTop,SlideFromBottom, |
| Layout.ChildToFront( child ) | | Layout.ChildToFront( child ) | ||
| Layout.Destroy() | | Layout.Destroy() | ||
Line 185: | Line 185: | ||
| Layout.GetType() | | Layout.GetType() | ||
| Layout.GetVisibility() | | Layout.GetVisibility() | ||
- | | Layout.GetWidth() | + | | Layout.GetWidth() |
- | | Layout.Release() | + | | Layout.SetOnTouch( callback ) |Does not work in ' |
+ | | Layout.SetOnTouchDown( callback ) |only OnTouchDown works when in ' | ||
+ | | Layout.SetOnTouchMove( callback ) |Does not work in ' | ||
+ | | Layout.SetOnTouchUp( callback ) |Does not work in ' | ||
+ | | Layout.Release() | ||
| Layout.RemoveChild( child ) | This removes a Child of an Layout, this Child can be added again with Layout.AddChild( child ). | | | Layout.RemoveChild( child ) | This removes a Child of an Layout, this Child can be added again with Layout.AddChild( child ). | | ||
| Layout.SetBackColor( colorCode ) | This sets the Background Color of an Layout. | | Layout.SetBackColor( colorCode ) | This sets the Background Color of an Layout. |