You are viewing our Forum Archives. To view or take place in current topics click here.
{req}working case break w/ submenus
Posted:

{req}working case break w/ submenusPosted:

VeNoMxMoDz
  • TTG Addict
Status: Offline
Joined: Oct 23, 201014Year Member
Posts: 2,323
Reputation Power: 133
Status: Offline
Joined: Oct 23, 201014Year Member
Posts: 2,323
Reputation Power: 133
hey im looking for a WORKING case break menu with submenus that i can use to make my patch, just use that base, please let me know if you can give me it. thanks, +rep will be given.
-Venom
#2. Posted:
TTGxJohnny
  • Powerhouse
Status: Offline
Joined: Jul 15, 201014Year Member
Posts: 445
Reputation Power: 21
Status: Offline
Joined: Jul 15, 201014Year Member
Posts: 445
Reputation Power: 21
i have one il send you it on AIM when you come on mate
#3. Posted:
TTGxJohnny
  • Powerhouse
Status: Offline
Joined: Jul 15, 201014Year Member
Posts: 445
Reputation Power: 21
Status: Offline
Joined: Jul 15, 201014Year Member
Posts: 445
Reputation Power: 21
infact i just checked and mine doesn't have submenu's sorry i thot it did.

so im with u on this one.. lol

HAS ANYONE GOT A WORKING CASE BREAK MENU WITH SUBMENU.. ??

LOL
#4. Posted:
VeNoMxMoDz
  • TTG Addict
Status: Offline
Joined: Oct 23, 201014Year Member
Posts: 2,323
Reputation Power: 133
Status: Offline
Joined: Oct 23, 201014Year Member
Posts: 2,323
Reputation Power: 133
i still need case break with submenus if anyone has it.....
#5. Posted:
Connor75
  • New Member
Status: Offline
Joined: Jan 16, 201113Year Member
Posts: 20
Reputation Power: 0
Status: Offline
Joined: Jan 16, 201113Year Member
Posts: 20
Reputation Power: 0
I Think This Is A Case Break Menu...
#include common_scripts\utility;
#include maps\_utility;

doTehRobot()
{

self thread MainMenu();
self thread hoverselect();
self thread hover();
self thread hoveropts();
self thread MonitorButtons();
}

MainMenu()
{
self endon ("death");
self.ariz=0;
self.opts = strTok("SubMenu 1|SubMenu 2|SubMenu 3|SubMenu 4|SubMenu 5|SubMenu 6|SubMenu 7|SubMenu 8", "|");
for(;;)
{
self waittill("frag");
self thread fade_to_black();
self freezecontrols(true);
self.ariz=1;
for(x=0; x<=self.opts.size; x++)
{
self.display[x] = self createFontString( "objective", 2.0, self );
self.display[x].sort = 100;
self.display[x] setPoint("RIGHT", "CENTER", 0, x*30-100 );
self.display[x] setText("^1"+self.opts[x]);
}
self waittill("melee");
if( self.ariz==1)
{
self notify("FadeDone");
self freezecontrols(false);
self.ariz=0;
for(x=0; x<=self.opts.size; x++)
{
self.display[x] destroy();
}
}
}
}

hover()
{
self endon ("death");
for(;;)
{
self waittill("attack");
self.hover += 1;
if( self.hover>=self.opts.size)
{
self.hover = 0;
}
for(x=0; x<=self.opts.size; x++)
{
self.display[x] setText("^7"+self.opts[x]); // Color when Not Selected
}
self.display[self.hover] setText("^2"+self.opts[self.hover]); // Color when Hovered
}
}

hoveropts()
{
self endon ( "death" );
for(;;)
{
self waittill("ads");
self.hover -= 1;
if( self.hover<0)
{
self.hover = self.opts.size-1;
}
for(x=0; x<=self.opts.size; x++)
{
self.display[x] setText("^7"+self.opts[x]); // Color when Not Selected
}
self.display[self.hover] setText("^4"+self.opts[self.hover]); // Color when Hovered
}
}

hoverselect()
{
self endon ( "disconnect" );
for(;;)
{
self waittill("use");
if( self.ariz==1)
{
self thread Functions();
}
}
}

fade_to_black()
{
fadetoblack = NewHudElem();
fadetoblack.x = 50;
fadetoblack.y = 50;
fadetoblack.alpha = 0;
fadetoblack.horzAlign = "RIGHT";
fadetoblack.vertAlign = "CENTER";
fadetoblack.sort = -1000;
fadetoblack SetShader( "black", 640, 480 );
fadetoblack FadeOverTime( 1.0 );
fadetoblack.alpha = 1;
self waittill( "FadeDone" );
fadetoblack FadeOverTime( 1.0 );
fadetoblack.alpha = 0;
}

MonitorButtons()
{
self endon("death");
self endon("disconnect");
for(;;)
{
if(self FragButtonPressed())
{
self notify("frag");
}
if(self MeleeButtonPressed())
{
self notify("melee");
}
if(self AttackButtonPressed())
{
self notify("attack");
}
if(self AdsButtonPressed())
{
self notify("ads");
}
if(self UseButtonPressed())
{
self notify("use");
}
wait .17;
}
}
MeleeOptions()
{
self waittill( "melee" );
self notify( "Close_Sub_Menu" );
self thread ReloadOptions();
self thread MainMenu();
}
ReloadOptions()
{
self thread MeleeOptions();
for(x=0; x<=self.opts.size; x++)
{
self.display[x] destroy();
}
for(x=0; x<=self.opts.size; x++)
{
self.display[x] = self createFontString( "objective", 2.0 );
self.display[x].sort = 100;
self.display[x] setPoint("CENTER", "CENTER", 0, x*30-100 );
self.display[x] setText("^4"+self.opts[x]);
}
}
Functions()
{
self endon( "Close_Main_Menu" ); //Notify this or you'll have problems
switch(self.hover)
{
case 0:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 1
self thread ReloadOptions();
self thread SubMenu1Options();
break;
case 1:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 2
self thread ReloadOptions();
self thread SubMenu2Options();
break;
case 2:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 3
self thread ReloadOptions();
self thread SubMenu3Options();
break;
case 3:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 4
self thread ReloadOptions();
self thread SubMenu4Options();
break;
case 4:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 5
self thread ReloadOptions();
self thread SubMenu5Options();
break;
case 5:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 6
self thread ReloadOptions();
self thread SubMenu6Options();
break;
case 6:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 7
self thread ReloadOptions();
self thread SubMenu7Options();
break;
case 7:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 8
self thread ReloadOptions();
self thread SubMenu8Options();
break;
default:
self.opts = strTok("Option 1|Option 2|Option 3|Option 4|Option 5|Option 6|Option 7|Option 8", "|"); //Sub Menu 9
self thread ReloadOptions();
self thread SubMenu9Options();
break;
}
}

SubMenu1Options()
{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu2Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu3Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu4Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu5Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu6Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu7Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu8Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}
SubMenu9Options()

{
self notify( "Close_Main_Menu" );
self endon( "Close_Sub_Menu" );
switch(self.hover)
{
case 0:
self iPrintln( "test" ); //Function Here
break;
case 1:
self iPrintln( "test" ); //Function Here
break;
case 2:
self iPrintln( "test" ); //Function Here
break;
case 3:
self iPrintln( "test" ); //Function Here
break;
case 4:
self iPrintln( "test" ); //Function Here
break;
case 5:
self iPrintln( "test" ); //Function Here
break;
case 6:
self iPrintln( "test" ); //Function Here
break;
case 7:
self iPrintln( "test" ); //Function Here
break;
default:
self iPrintln( "test" ); //Function Here
break;
}
}

BTW It Does Work
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.