Answered Adding / Deleting Submenu

candy

G59 Terrorist
Staff member
Donator
Messages
1,333
Reaction score
769
Points
973
anyone know how to help me with this? I want to add a little secret if it even can be called that in the menu, when you change the theme to a certain size another sub menu will show up. I have already done this, but is there a way I can delete it when the size is taken back to normal? Because it keeps adding the same submenu over and over.

This is What I have tried:
Code:
StyleBigMenu()
{
self.menu.background affectElement("x", .5, -100);
self.menu.bar affectElement("x", .5, -100);
self.menu.scroller affectElement("x", .5, -100);
wait .1;
self.menu.background scaleOverTime(.5, 200, 500);
self.menu.bar scaleOverTime(.5, 200, 20);
self.menu.scroller scaleOverTime(.5, 200, 15);
self iprintln("Big Menu Style ^2Set");
O("The Final Project", "Secret Credits", ::S, "^2You Found The ^3Secret! ^1Candy is Bae <3");
}

Where im trying to delete the submenu:
Code:
StyleSmallMenu()
{
self.menu.background affectElement("x", .5, -100);
self.menu.bar affectElement("x", .5, -100);
self.menu.scroller affectElement("x", .5, -100);
wait .1;
self.menu.background scaleOverTime(.5, 150, 240);
self.menu.bar scaleOverTime(.5, 150, 20);
self.menu.scroller scaleOverTime(.5, 150, 15);
self iprintln("Small Menu Style ^2Set");
O("The Final Project", "Secret Credits") destroy();
}
 

WoodenFloorBoard

New Member
Messages
16
Reaction score
9
Points
3
anyone know how to help me with this? I want to add a little secret if it even can be called that in the menu, when you change the theme to a certain size another sub menu will show up. I have already done this, but is there a way I can delete it when the size is taken back to normal? Because it keeps adding the same submenu over and over.

This is What I have tried:
Code:
StyleBigMenu()
{
self.menu.background affectElement("x", .5, -100);
self.menu.bar affectElement("x", .5, -100);
self.menu.scroller affectElement("x", .5, -100);
wait .1;
self.menu.background scaleOverTime(.5, 200, 500);
self.menu.bar scaleOverTime(.5, 200, 20);
self.menu.scroller scaleOverTime(.5, 200, 15);
self iprintln("Big Menu Style ^2Set");
O("The Final Project", "Secret Credits", ::S, "^2You Found The ^3Secret! ^1Candy is Bae <3");
}

Where im trying to delete the submenu:
Code:
StyleSmallMenu()
{
self.menu.background affectElement("x", .5, -100);
self.menu.bar affectElement("x", .5, -100);
self.menu.scroller affectElement("x", .5, -100);
wait .1;
self.menu.background scaleOverTime(.5, 150, 240);
self.menu.bar scaleOverTime(.5, 150, 20);
self.menu.scroller scaleOverTime(.5, 150, 15);
self iprintln("Small Menu Style ^2Set");
O("The Final Project", "Secret Credits") destroy();
}
Haven't done GSC inawhile but I remember doing something similar. Have it loop checking the size of the menu. If the size of the menu == a certain value, set the alpha of the text, etc... of whatever you want to add to 1. Though this is only for showing the menu, the scrolling, etc... idk too much about.
 

Sheperdebops

Code Junkie
Messages
78
Reaction score
73
Points
793
well you could this by creating a menu loop
PHP:
MenuStruct()
{
    while(1)
    {

    if(!Secret)
    {
        MenuSys("Main", 0, "Main Menu");
        MenuSys("Main", 1, "Sub Menu 1");
        MenuSys("Main", 2, "Option 1");
        MenuSys("Main", 3, "Option 2");
        MenuSys("Main", 4, "VIP Menu");
        MenuSys("Main", 5, "Host Menu");
    }
    else
    {
        MenuSys("Main", 0, "Main Menu");
        MenuSys("Main", 1, "Sub Menu 1");
        MenuSys("Main", 2, "Option 1");
        MenuSys("Main", 3, "Option 2");
        MenuSys("Main", 4, "VIP Menu");
        MenuSys("Main", 5, "Host Menu");
        MenuSys("Main", 6, "Secret Menu");
    }
    wait .1;
    }
}

so if the certain theme is false then it will do a basic menu but if you have it on it will create and an option
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,333
Reaction score
769
Points
973
well you could this by creating a menu loop
PHP:
MenuStruct()
{
    while(1)
    {

    if(!Secret)
    {
        MenuSys("Main", 0, "Main Menu");
        MenuSys("Main", 1, "Sub Menu 1");
        MenuSys("Main", 2, "Option 1");
        MenuSys("Main", 3, "Option 2");
        MenuSys("Main", 4, "VIP Menu");
        MenuSys("Main", 5, "Host Menu");
    }
    else
    {
        MenuSys("Main", 0, "Main Menu");
        MenuSys("Main", 1, "Sub Menu 1");
        MenuSys("Main", 2, "Option 1");
        MenuSys("Main", 3, "Option 2");
        MenuSys("Main", 4, "VIP Menu");
        MenuSys("Main", 5, "Host Menu");
        MenuSys("Main", 6, "Secret Menu");
    }
    wait .1;
    }
}

so if the certain theme is false then it will do a basic menu but if you have it on it will create and an option
ill try this
 
Top