Author Topic: How do you use GuiPopUpMenuCtrl?  (Read 442 times)

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.
« Last Edit: March 12, 2012, 01:37:47 AM by Lugnut1206 »

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

why dont you add one name it and dump it and look through what is there...
for some reason I thought this only applied to players, clients, bricks, etc
but not guis
I'll try that

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.
« Last Edit: March 12, 2012, 05:44:46 PM by jes00 »

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

  • .addFront(text, number) -adds whatever you put and brings it to the front?

Close, that adds it to the top of the list. %Gui.add(text, id) adds it to the bottom.

Close, that adds it to the top of the list. %Gui.add(text, id) adds it to the bottom.
I'm confused.
What's the ID for?