Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-19-2009, 11:13 PM
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
Simple GUI question?

Hopefully it's simple anyways.
When you right click in the f7 playerlist menu, it comes up with a context menu. In the context menu there are horizontal rules which I'm trying to replicate.

In the past when I've used GuiMenuCtrl, I can just say addrow( -1, "-" ); and that creates the horizontal rule.
In a context menu like this though I can't get that same thing to work. I'm assuming it's because I'm using the wrong Gui Control (I'm creating a new GUI TextListCtrl to do it). So if it -is- that, what is the name of the actual GUI Control I should be using? If that's not the issue, does anyone know what is?
Reply With Quote
  #2  
Old 06-19-2009, 11:53 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
It should work, can you give an example of what's not working?
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #3  
Old 06-20-2009, 02:33 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Try GuiContextMenuCtrl.
__________________
Reply With Quote
  #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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.