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 04-10-2008, 09:33 PM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
Is this possible?

I'm making a little add/remove system for my events team admin. I'm doing it with gui scripts. I have a textlist box that lists all the ETs from a text file (or I will soon, I have not made it yet) and I was wondering if I could have a popup menu within the textlist. As in, you right click one of the accounts on the list, and a popup with a remove button will appear, click, and bam. removed.

Kind of like how the addcustommenuentry works with the scripted playerlist, but I'm not sure how to do it with GUIs, unless it's the same? I haven't tried yet and thought I would come here and get some feedback.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #2  
Old 04-11-2008, 05:32 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
http://wiki.graal.net/index.php/Crea...ontextMenuCtrl

It doesn't give an example or anything but you should note to not touch the x or y as it will cause problems. The x and y are set when you call open(x, y);
__________________
Do it with a DON!
Reply With Quote
  #3  
Old 04-11-2008, 09:03 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
There was some example in the GraalShop script from Jerret, something like that:
PHP Code:
temp.options = {"Line1","Line2","Line3"};

new 
GuiContextMenuCtrl("GraalShop_Context") {
  
profile GuiBlueScrollProfile;

  
clearRows();
  for (
temp.qtemp.options
    
addrow(0temp.q);

  
open(mousescreenxmousescreeny);

Reply With Quote
  #4  
Old 04-11-2008, 10:00 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
openatmouse();

I create the context menu ahead of time and when I detect a right click I use TheContextMenu.openAtMouse();
__________________
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 09:47 AM.


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