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 [2016/01/02 05:07]
1.127.48.14
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);
sample_code/slide_menu.1451711267.txt.gz · Last modified: 2016/01/02 13:07 (external edit)