|
Change the variables by Scripts 4 Years, 10 Months ago
|
|
|
Hi,
Would it be possible to use scripts (function) to change the variables' value?
I hope to use the value of variables to control to display some different pictures and change by the right/left button via script to change the variables value.
Please advise how to do. Thanks!!
Best regards,
Eric
|
|
|
|
|
|
|
Re:Change the variables by Scripts 4 Years, 10 Months ago
|
|
|
Yes, you can use the Rainlendar_SetVariable() to change a variable's value. However, note that the variables are evaluated only when the skin is loaded so if you want to change the image without the need to refresh everything you can use the Rainlendar_SetItemValue() to change the element the image item is using.
|
|
Rainy
Moderator
Posts: 5366
|
|
|
|
|
Re:Change the variables by Scripts 4 Years, 10 Months ago
|
|
|
Thank you very much!!
I got the samples from "Addons for Shadow4 skin", it's magical and useful.
Could you please advise where to find the built-in function we can use and how to use? Like Rainlendar_SetVariable(), Rainlendar_Download(), ... It will be useful for scripting.
Thanks very much!!
Eric Su
|
|
|
|
|
|
|
Re:Change the variables by Scripts 4 Years, 10 Months ago
|
|
|
The reference documentation for the scripting api is not yet ready but I'll try to get it finished before the 2.4 is released.
|
|
Rainy
Moderator
Posts: 5366
|
|
|
|
|
Re:Change the variables by Scripts 4 Years, 10 Months ago
|
|
|
Anyway, Thanks very much!!
Eric Su
|
|
|
|
|
|
|