Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-15-2006, 02:52 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Rick
What's the problem? item_list.getselectednode() should return the selected node.
Can you add properties when you create the node? like:

temp.node = addnode("Test1");
temp.node.coolprop = "WeeEeeE";

then access the node.coolprop in .select() ?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #2  
Old 02-15-2006, 07:44 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Quote:
Originally Posted by ApothiX
Can you add properties when you create the node? like:

temp.node = addnode("Test1");
temp.node.coolprop = "WeeEeeE";

then access the node.coolprop in .select() ?
Yes. A node is GuiTreeViewNode.
Reply With Quote
  #3  
Old 02-16-2006, 01:23 AM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
hm i dont think my follow up question on the nodes was clear.
asking with a picture helped before, so i will do it again:

and Skyld, what was wrong with your menu? i was not looking to correct anything in your gui.

so: how do i detect that a node has been clicked? what does the event block look like, that will have item_desc_text.text="new text"; inside it?
where in relation to the gui creation should the 'click on a node' event detection go?
does it need to be in a timeout loop?
Attached Thumbnails
Click image for larger version

Name:	treev1.gif
Views:	174
Size:	32.2 KB
ID:	35584  
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 03:59 PM.


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