Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-21-2010, 02:33 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
GuiTextEditSliderCtrl

I'm trying to use a GuiTextEditSliderCtrl to select layers for my Level Editor. To change a value to know which layer it's on, I need to know when one of the buttons (^v) are pressed, but onAction() doesn't seem to be the event that calls. What is it?
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #2  
Old 02-21-2010, 11:09 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
HTML Code:
  thiso.catchevent(this, "onReleaseSlider", "onYourFunctionHere");
or
HTML Code:
  thiso.catchevent(this, "onAction", "onYourFunctionHere");
Inside the GUI control
__________________
Reply With Quote
  #3  
Old 02-21-2010, 11:47 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Quote:
Originally Posted by xAndrewx View Post
HTML Code:
  thiso.catchevent(this, "onReleaseSlider", "onYourFunctionHere");
or
HTML Code:
  thiso.catchevent(this, "onAction", "onYourFunctionHere");
Inside the GUI control
I don't think you have the right control.
onReleaseSlider is for a GuiSliderCtrl, not a GuiTextEditSliderCtrl.
GuiSliderCtrl:
GuiTextEditSliderCtrl:

Edit:
Nevermind, I figured I can use onMouseUp which is similar to onReleaseSlider.
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.

Last edited by Switch; 02-22-2010 at 10:00 PM..
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 10:32 AM.


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