Blockland Forums > Modification Help

How do you use GuiPopUpMenuCtrl?

Pages: (1/2) > >>

Lugnut:

I'm quite familiar with guis, but apparently you can't do Control_Name.addRow() to popup menus.
How do you define the contents?

Edit:Just tried looking through Slayers stuff.
I've been scarred by the sheer amount of material D:

I'm also no better off than when I posted this topic.

Brian Smithers:

why dont you add one name it and dump it and look through what is there...

Lugnut:


--- Quote from: Brian Smithers on March 12, 2012, 03:10:34 PM ---why dont you add one name it and dump it and look through what is there...

--- End quote ---
for some reason I thought this only applied to players, clients, bricks, etc
but not guis
I'll try that

jes00:

I know you can add this to it like this: control_name.add("Stuff", number); and use control_name.getValue(); to get what is selected.

EDIT: Found some more stuff, control_name...

* .bringToFront(number?) -brings whatever you put as the selected thing
* .addFront(text, number) -adds whatever you put and brings it to the front?
* .clear() -clears the list
* .findText(text) -returns the number of the first thing found containing the text
* .forceClose() -closes the menu
* .getCount() -returns the number of things the menu has
* .getText() -gets the text of all the things in the list?
* .getTextById(number) -Gets the text of the row number you put
* .remove(number?) -removes the row you input
* .replaceText(number, text to replace with) -replaces the text of the row number you put with the text you put
* .sort() -sorts the list alphabetically(for some weird reason the word Lord Tony2 popped up in my console) That's all I found, hope you got all you need.

Lugnut:

woah, more than I needed, but thanks, that's a good resource!

Pages: (1/2) > >>

Go to full version