Thread: Help with GUI?
View Single Post
  #9  
Old 10-13-2013, 11:58 PM
DeCeaseD DeCeaseD is offline
Registered User
Join Date: Jan 2008
Posts: 247
DeCeaseD will become famous soon enough
Quote:
Originally Posted by sssssssssss View Post
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.0temp.thiso.options.size(); temp.I++) 
    { 
      
addRow(temp.1thiso.options[temp.I]); 
    } 
     
    
open(mousescreenxmousescreeny); 
  }
}

function 
Options_Menu.onSelect(entryidtext)  {
  
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.
Reply With Quote