About hacking the banglejs1

Posted on
  • Hello banglers,
    I want to create my own menu design in banglejs. At first, I try to customize the standart menu design by changing the property of menu structure;
    "selected": 0, "fontHeight": 0, "y": 0, "x": 0, "x2": g.getWidth()-1, "y2": g.getHeight()-1,

    "cB" : 0,      "cF" : -1,     "cHB" : 0,      "cHF" : -1,     "predraw": function(gfx) {} 
    

    BUT I didnot get desired result in menu design. So, I want to create my own menu design for example my own menu has an image in background OR has different color and font size in different submenus.
    What will be your advice in this perspective? Thanks for now.

  • I think I already gave some advice on your last post? http://forum.espruino.com/huddles/323394­5/#comment16299640

  • I guess that the link can not open for others in the forum. After your advice, I want to write my question here.

  • @Gordon, in deed, the link http://forum.espruino.com/huddles/323394­5/#comment16299640 shows. a Nor permitted page... (What is atypical of the url is the huddles thing I never have seen before... A regular post link has this format http://forum.espruino.com/comments/16279­955/


    1 Attachment

    • notPermittedPageEspruinoForum.png
  • Ahh, sorry - I'm just trying to get through all the questions quickly and I didn't realise that it was a personal message. Thanks for posting up!

    This is the original response:


    Hi, yes, it's very possible! There's a tutorial on modifying built-in code at https://www.espruino.com/Bangle.js+Modif­ication - it shows you how to do showMessage but you could do showMenu exactly the same.

    For instance in the Bangle.js App Loader there is already 'Small Menu' and 'Wheel Menu': https://banglejs.com/apps/#menu

    And you could use those for some ideas.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

About hacking the banglejs1

Posted by Avatar for user137249 @user137249

Actions