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
sample_code:slide_menu [2015/09/26 06:23]
stevegarman tidied code
sample_code:slide_menu [2019/03/02 11:42] (current)
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,custom"); 
-    { +    btnMnu.SetStyle( "#77bb77", "#559955", 15, "#449944",2,0 );
-       btnMnu=app.CreateButton("[fa-bars]", -1, -1, "fontawesome,custom"); +
-       btnMnu.SetStyle( "#77bb77", "#559955", 15, "#449944",2,); +
-    } +
-    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 107:
 } }
  
-// 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.1443248595.txt.gz · Last modified: 2015/09/26 14:23 (external edit)