Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GuiTextEditSliderCtrl (https://forums.graalonline.com/forums/showthread.php?t=134258105)

Switch 02-21-2010 02:33 AM

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?

xAndrewx 02-21-2010 11:09 AM

HTML Code:

  thiso.catchevent(this, "onReleaseSlider", "onYourFunctionHere");
or
HTML Code:

  thiso.catchevent(this, "onAction", "onYourFunctionHere");
Inside the GUI control :)

Switch 02-21-2010 11:47 PM

Quote:

Originally Posted by xAndrewx (Post 1557600)
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: http://wiki.graal.net/images/8/8d/Guicontrol_slider.png
GuiTextEditSliderCtrl: http://wiki.graal.net/images/2/23/Gu...editslider.png

Edit:
Nevermind, I figured I can use onMouseUp which is similar to onReleaseSlider.


All times are GMT +2. The time now is 05:46 AM.

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