How do I enable extara menus...

  • Videogamer555
    12th Dec 2011 Member 0 Permalink
    via Lua?
    In interface.h I see the menus are
    define SC_WALL 0
    define SC_ELEC 1
    define SC_POWERED 2
    define SC_EXPLOSIVE 3
    define SC_GAS 4
    define SC_LIQUID 5
    define SC_POWDERS 6
    define SC_SOLIDS 7
    define SC_NUCLEAR 8
    define SC_SPECIAL 9
    define SC_LIFE 10
    define SC_TOOL 11
    define SC_CRACKER 13
    define SC_CRACKER2 14
    define SC_TOTAL 12
    The interesting thing is there appear to be 3 invisible menus (cracker, cracker2, and total) which have been given the following values correspondingly (13, 14, 12). How can I make the menus visible.

    I can transfer an element to the menu like tpt.el.metl.menusection=13 (to put it in the "cracker" menu), but then how do I make the menu visible? Please help. Thanks in advance.
  • jacksonmj
    12th Dec 2011 Developer 0 Permalink
    Not possible without modifying the source code. SC_TOTAL is the total number of menus, only menus with a value less than this can be made visible.
  • Videogamer555
    12th Dec 2011 Member 0 Permalink

    jacksonmj:

    Not possible without modifying the source code. SC_TOTAL is the total number of menus, only menus with a value less than this can be made visible.

    Unless the source code is changed that is. But how do I use Lua to enable or disable "allowed" menus (menus with an index of less than 12)?
  • me4502
    12th Dec 2011 Member 0 Permalink
    @Videogamer555 (View Post)

    they are all enabled...