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

Sloth1337

New Member
Messages
8
Reaction score
6
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:

VerTical

CEO
Donator
Messages
0
Reaction score
-86
Points
664
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
Donator
Messages
1,322
Reaction score
752
Points
973
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
Reaction score
6
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 :)
Messages
598
Reaction score
324
Points
953
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
Donator
Messages
1,322
Reaction score
752
Points
973
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.
 

Jiro

Modder
Messages
223
Reaction score
71
Points
828
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

Certified Sick ℂunt
Premium Member
Messages
1,253
Reaction score
942
Points
973
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

Veteran
Messages
5
Reaction score
0
Points
551
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