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
Next revision
Previous revision
Next revision Both sides next revision
sample_code:slide_menu [2015/09/26 06:23]
stevegarman tidied code
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);
Line 112: Line 106:
 } }
  
-// callback function for menu sekection+// callback function for menu selection
 function menu_OnTouch( title, body, image, index ) function menu_OnTouch( title, body, image, index )
 { {
sample_code/slide_menu.txt · Last modified: 2019/03/02 11:42 (external edit)