View Single Post
  #4  
Old 06-20-2009, 02:49 AM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
Here's the function that's not working (as TextListCtrl). I'll try GuiContextMenuCtrl and see if it works, it should anyways. It's a Drop menu for the Gui based Event Control system.

PHP Code:
function onDropDownMenuobj ) {
  new 
GuiScrollCtrl("ETDropMenu_Scroll") {
    
profile GuiBlueScrollProfile;
    
showTop();
    
mousescreenx 8;
    
mousescreeny 8;
    
height = (obj == ETControl_TextList1 70 140 );
    
width 120;
    
hscrollbar "alwaysOff";
    
vscrollbar "alwaysOff";
    
    new 
GuiTextListCtrl("ETDropMenu") {
      
showtop();
      
profile GuiBlueTextListProfile;
      
height = (obj == ETControl_TextList1 70 140 );
      
width 120;
      
thiso.catcheventthis.name"onSelect" "onDropMenuAction" );
      
thiso.catcheventthis.name"onMouseLeave""onDropDestroy" );
      
clearrows();
    }
  }
  if ( 
obj == ETControl_TextList1 ) {
    
ETDropMenu.addrow0"Run Event" );
    
ETDropMenu.addrow( -1"-" );
    
ETDropMenu.addrow1"Add to favorites" );
    
ETDropMenu.addrow2"Remove from favorites" );
  }
  else {
    
ETDropMenu.addrow0"Set as Winner" );
    
ETDropMenu.addrow1"Add player to event" );
    
ETDropMenu.addrow2"Disqualify player" );
    
ETDropMenu.addrow( -1"-" );
    
ETDropMenu.addrow3"Summon Player" );
    
ETDropMenu.addrow4"Warp to Player" );
    
ETDropMenu.addrow5"Freeze Player" );
    
ETDropMenu.addrow6"Unfreeze Player" );
  } 
  
ETDropMenu.setselectedrow( -);

Reply With Quote