New Menusection

  • LittleProgramming
    23rd Nov 2019 Member 0 Permalink

    Hello. In "Little's Pack", I want to have a new menusection. It's known as fuels and will have a gasoline can as the icon. How do I add this?

  • BokkaB
    26th Nov 2019 Member 0 Permalink

    This is not ecologic.

  • jacob1
    26th Nov 2019 Developer 1 Permalink
    There is no way to add a new menusection in Lua right now. You could maybe try faking it (I've done this before), but it is complicated. I drew my own menusection, and when the user hovered over it, I displayed all my elements inside one of the real menusections, and selected that one. I'd then detect when they left the fake menusection, and put all the original elements back inside that menu.
  • LittleProgramming
    27th Nov 2019 Member 0 Permalink

    How do you do that?

    Also, it doesn't need to scroll. Maybe it could just have a pallette and like if you clicked the can again it would go away, or maybe there would be an X button or something.

    Edited once by LittleProgramming. Last: 27th Nov 2019
  • jacob1
    27th Nov 2019 Developer 0 Permalink
    The thing I described is difficult to do, and not something I would recommend anyway unless you really know what you are doing

    An official api for adding new menusections is unlikely, because the entire space on the right edge of the screen is already filled up. Maybe i'll redo the menu system in the future. I had plans to redo it on Android, not for official though.