Thread: Help with GUI?
View Single Post
  #8  
Old 10-13-2013, 11:38 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
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.
Quote:
Except I can't click any of the options because oddly one of these other GUI's isn't allowing it and won't let the Context GUIctrl grab focus/activity.
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.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote