Answered [GSC] How do I add a Sub menu to a sub menu?

Sloth1337

New Member
Messages
8
Points
3
Title. I would like to have a sub-menu within a sub menu. For example on "Main Mods" Have an option at the bottom for "Page 2". I know that a few menus have this like Jiggy and TCM but how would I add it to my mod menu.

EDIT: Sorry for posting this into the incorrect section, My bad.

Thanks in advance,
~ SlothMods
 
Last edited:

Tusta

Head Member
Donator
Messages
12
Points
364
create a ****ing second title like first title, add in add menu a second variable exp: " self.title2[ Menu ] = a; ".What ever you call pls learn c/c++ thx!!!!
 

candy

G59 Terrorist
Staff member
Premium Member
Donator
Messages
1,303
Points
748
Its nothing new or unique, every menu that doesnt have unlimited scrolling has this. You just create a submenu as you would any other and call it "Page 2" :/
 

Sloth1337

New Member
Messages
8
Points
3
create a ******* second title like first title, add in add menu a second variable exp: " self.title2[ Menu ] = a; ".What ever you call pls learn c/c++ thx!!!!
That's what I am trying to do hence why I asked this question. Believe it or not, we aren't born with coding knowledge.
 

Pyrex BLJ

im done :)
Staff member
Messages
605
Points
728
That's what I am trying to do hence why I asked this question. Believe it or not, we aren't born with coding knowledge.
put this at the bottom of your sub menu, put the appropriate names in though.
Code:
self add_option("firstsubMenu", "Page 2", ::submenu, "secondSubMenu", "secondSubMenu");
 

candy

G59 Terrorist
Staff member
Premium Member
Donator
Messages
1,303
Points
748
That's what I am trying to do hence why I asked this question. Believe it or not, we aren't born with coding knowledge.
Look at the base and how every other sub menu was created... you just copy that and change up the text.
 

Laxr

Modder
Messages
219
Points
403
That's what I am trying to do hence why I asked this question. Believe it or not, we aren't born with coding knowledge.
Code:
self add_option("Main Menu", "Sub Menu 1", ::submenu, "SubMenu1", "Sub Menu 1");
Code:
self add_menu("SubMenu1", "Main Menu", "Admin");
Code:
self add_option("SubMenu1", "Option 1");
 
Last edited:

Harry

Software Engineer
Premium Member
Messages
1,283
Points
748
Title. I would like to have a sub-menu within a sub menu. For example on "Main Mods" Have an option at the bottom for "Page 2". I know that a few menus have this like Jiggy and TCM but how would I add it to my mod menu.

EDIT: Sorry for posting this into the incorrect section, My bad.

Thanks in advance,
~ SlothMods
Someone used my thread thread ^.*
 

RelzaqeSaq

New Member
Messages
5
Points
1
Title. I would like to have a sub-menu within a sub menu. For example on "Main Mods" Have an option at the bottom for "Page 2". I know that a few menus have this like Jiggy and TCM but how would I add it to my mod menu.

EDIT: Sorry for posting this into the incorrect section, My bad.

Thanks in advance,
~ SlothMods
It depends on the mod menus.... for mine... But try this:

(in your submenu1)
self addOpt("EXAMPLE(Page 2)", undefined, ::newMenu, "Page 2");

(new line)
else if(menu == "Page 2")
{
self addMenu("page2", "Page 2", "Host;Co-Host;Admin");
self addOpt("Fake Lag",undefined,::toggleFakeLag());
}
 

Top