What's new

Discussion Help with Coding

  • Thread starter EliTe X HacK3r
  • Start date
  • Views 501
E

EliTe X HacK3r

Newbie
Messages
11
Reaction score
1
Points
45
Sin$
0
How do u make a menu inside of a menu like if i say i go to the mods menu and then i want a menu inside of that like saying more mods please can you help!

The CF3 Base
 
H

HDKenny

Enthusiast
Messages
226
Reaction score
53
Points
85
Sin$
0
How do u make a menu inside of a menu like if i say i go to the mods menu and then i want a menu inside of that like saying more mods please can you help!
1. i thought you were an EliTe X HacK3r
2. idk, it depends, but ill help you if post(the name) of which base your using :wink:
 
B

BaBaBaseline

Enthusiast
Messages
156
Reaction score
25
Points
85
Sin$
0
How do u make a menu inside of a menu like if i say i go to the mods menu and then i want a menu inside of that like saying more mods please can you help!

The CF3 Base
Pssssst There called submenus and I haven't really used the newest version of Cf3 but I believe something like this
Code:
self addMenu("moreMods","More Mod's"); // Create a menu whose name is moreMods
addOption("mods","More Mod's",::loadmenu,"moreMods"); // Adds an option in the "mods" menu called "More Mod's" that opens the new menu

addMenu(mName,titl)   
{  
self.title[mName] = titl;  
self.opt[mName] = [];  
self.func[mName] = [];  
self.input[mName] = [];  
}   
addOption(mName,opts,funcs,inputs)   
{   
i = self.opt[mName].size ; 
self.opt[mName][i] = opts;  
self.func[mName][i] = funcs;  
if(Isdefined(inputs)) self.input[mName][i] = inputs; 
}
 
Top Bottom
Login
Register