DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


sample_code:slide_menu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
sample_code:slide_menu [2016/01/02 05:07]
1.127.48.14
sample_code:slide_menu [2019/03/02 03:38]
sandudhate
Line 19: Line 19:
     var layHome=app.CreateLayout("​Linear","​Left,​FillXY"​);​     var layHome=app.CreateLayout("​Linear","​Left,​FillXY"​);​
     var btnMnu;​     var btnMnu;​
-    if(app.GetDSVersion()>​1.25) +    ​btnMnu=app.CreateButton("​[fa-bars]",​ -1,​ -1,​ "​fontawesome,​alum"​);​
-    { +
-       btnMnu=app.CreateButton("​[fa-bars]",​ -1,​ -1,​ "​fontawesome,​custom"​);​ +
-       btnMnu.SetStyle( "#​77bb77",​ "#​559955",​ 15,​ "#​449944",​2,​0 );​ +
-    } +
-    else +
-       btnMnu=app.CreateButton("​[fa-bars]",​ -1,​ -1,​ "​fontawesome,​alum"​);​+
     btnMnu.SetOnTouch(mnuAnimate);​     btnMnu.SetOnTouch(mnuAnimate);​
     layHome.AddChild(btnMnu);​     layHome.AddChild(btnMnu);​
sample_code/slide_menu.txt · Last modified: 2019/03/02 03:42 by sandudhate