Graal Forums

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

ffcmike 03-19-2012 11:30 PM

GuiShowImgCtrl Aniparams
 
Is it possible to create a GUI animation control, and then write parameters to it via the "aniparams" variable?

I've tried:

PHP Code:

new GuiShowImgCtrl(GUIName) {
  
ani "ganiname";
};

GUIName.aniparams = {11};

GUIName.actor.aniparams = {11}; 

which failed, and the capability doesn't appear to be listed within the GUI documentation on the Wiki.

If it's not possible, it would be nice if it was.

ffcmike 04-17-2012 11:38 PM

It turns out that to accomplish what I wanted I could just keep writing:

PHP Code:

GUI.ani "nameofgani," temp.params[0] @ "," temp.params[1]; 


Deas_Voice 04-24-2012 11:07 AM

could also do
PHP Code:

GUI.ani = {"nameofgani"params[0], params[1]}; 


Crow 04-24-2012 11:19 AM

Quote:

Originally Posted by Deas_Voice (Post 1692840)
could also do
PHP Code:

GUI.ani = {"nameofgani"params[0], params[1]}; 


That just works because the array is cast to a string internally.

Deas_Voice 04-24-2012 11:23 AM

Quote:

Originally Posted by Crow (Post 1692841)
That just works because the array is cast to a string internally.

yeah, but it saves you from doing "," @ stuff @ "," @ more stuff

Mark Sir Link 04-24-2012 07:26 PM

Quote:

Originally Posted by Crow (Post 1692841)
That just works because the array is cast to a string internally.

could probably abuse that and just do

ani = "aniname," @params;

Crow 04-24-2012 07:44 PM

Quote:

Originally Posted by Mark Sir Link (Post 1692871)
could probably abuse that and just do

ani = "aniname," @params;

I bet that'd work, yes.


All times are GMT +2. The time now is 04:06 PM.

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