Quote:
Originally Posted by sssssssssss
PHP Code:
new GuiContextMenuCtrl("Options_Menu") {
profile = "Necro_TextEdit";
textprofile = "Necro_Text";
text = "Options";
width = 20;
clearRows();
bringtofront();
addRow(0, "Options");
addrow(-1, "-");
for (temp.I = 0; temp.I < thiso.options.size(); temp.I++)
{
addRow(temp.I + 1, thiso.options[temp.I]);
}
open(mousescreenx, mousescreeny);
}
}
function Options_Menu.onSelect(entryid, text) {
player.chat = text;
}
Above worked just fine for me.
If that typo was what you were using that would stop it from doing anything because it wasnt reading the right gui obj name for the selection.
|
Hm, yeah I dunno what I was thinking. The above script DOES work fine.. so obviously this must have something to do with an interference from one of the other GUI's involved. I'm just not sure what's interfering or how.. And the typo isn't the problem. The context menu isn't correctly focusing for me to even click an option. For instance, the GUI will open and normally when mousing over an option it'll highlight the option you have moused over. This is the case when I have the Context menu in it's own script, but not the case when it's within the inventory code. It will only appear and allow me to close it.. but not highlight/select anything.