Post: I need some help with Sub Menu's. [GSC]
09-09-2018, 12:38 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello everyone, I am currently in the middle of making my first BO2 GSC menu, which uses StonedYoda's Menu Base. I know how to create sub menu's and they all work, but what I need help with is that when I close out of the sub menu, it goes straight back to the main menu when I want it to go back to the original sub menu.
Example:
This is one of the layouts of my menu options.
    Main Menu --> Lobby Menu --> Game Settings

When I am in 'Game Settings' and close out of that sub menu, it goes back to 'Main Menu' when I want it to go back to 'Lobby Menu'.

This is my code for the 'Lobby Menu':
    self add_menu("Main Menu", undefined, "Verified");
self add_option("Main Menu", "Lobby Menu", ::submenu, "LobbyMenu", "Lobby Menu");

self add_menu("LobbyMenu", "Main Menu", "Co-Host");
self add_option("LobbyMenu", "Game Settings -->", ::submenu, "GameSettingsMenu", "Game Settings");


and this is the code for the 'Game Settings':
    self add_menu("GameSettingsMenu", "Main Menu", "Co-Host");
self add_option("GameSettingsMenu", "Super Jump", ::superJump);
self add_option("GameSettingsMenu", "Super Speed", ::superSpeed);
self add_option("GameSettingsMenu", "Low Gravity", ::lowGravity);


It seems like a really simple thing to figure out, but for some reason I am having a hard time working it out Loes

I'd appreciate any help since I know the Black Ops 2 modding scene is kinda dead now and I have no idea why I am making a menu at this point of the game lool. Cheers!
09-09-2018, 05:54 PM #2
Tristen
Who’s Jim Erased?
Originally posted by Rencify View Post
Hello everyone, I am currently in the middle of making my first BO2 GSC menu, which uses StonedYoda's Menu Base. I know how to create sub menu's and they all work, but what I need help with is that when I close out of the sub menu, it goes straight back to the main menu when I want it to go back to the original sub menu.
Example:
This is one of the layouts of my menu options.
    Main Menu --> Lobby Menu --> Game Settings

When I am in 'Game Settings' and close out of that sub menu, it goes back to 'Main Menu' when I want it to go back to 'Lobby Menu'.

This is my code for the 'Lobby Menu':
    self add_menu("Main Menu", undefined, "Verified");
self add_option("Main Menu", "Lobby Menu", ::submenu, "LobbyMenu", "Lobby Menu");

self add_menu("LobbyMenu", "Main Menu", "Co-Host");
self add_option("LobbyMenu", "Game Settings -->", ::submenu, "GameSettingsMenu", "Game Settings");


and this is the code for the 'Game Settings':
    self add_menu("GameSettingsMenu", "Main Menu", "Co-Host");
self add_option("GameSettingsMenu", "Super Jump", ::superJump);
self add_option("GameSettingsMenu", "Super Speed", ::superSpeed);
self add_option("GameSettingsMenu", "Low Gravity", ::lowGravity);


It seems like a really simple thing to figure out, but for some reason I am having a hard time working it out Loes

I'd appreciate any help since I know the Black Ops 2 modding scene is kinda dead now and I have no idea why I am making a menu at this point of the game lool. Cheers!


whats your skype
09-10-2018, 01:14 PM #3
Patrick
League Champion
Originally posted by Rencify View Post
~snip


Change out this line of code:
    self add_menu("GameSettingsMenu", "Main Menu", "Co-Host");


to this:
    self add_menu("GameSettingsMenu", "LobbyMenu", "Co-Host");

The following user thanked Patrick for this useful post:

Rencify
09-11-2018, 08:14 PM #4
Originally posted by Patrick View Post
Change out this line of code:
    self add_menu("GameSettingsMenu", "Main Menu", "Co-Host");


to this:
    self add_menu("GameSettingsMenu", "LobbyMenu", "Co-Host");


Thank you, Patrick! Of course, it was something simple and self explanatory... Facepalm
I appreciate the help.

The following user thanked Rencify for this useful post:

Patrick

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo