Welcome, Guest
Please Login or Register.    Lost Password?

Change the variables by Scripts
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Change the variables by Scripts
#6867
Change the variables by Scripts 6 Years, 3 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
ericsu9168
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6871
Re:Change the variables by Scripts 6 Years, 3 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: 5991
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6882
Re:Change the variables by Scripts 6 Years, 3 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
ericsu9168
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6887
Re:Change the variables by Scripts 6 Years, 3 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: 5991
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6892
Re:Change the variables by Scripts 6 Years, 3 Months ago  
Anyway, Thanks very much!!

Eric Su
ericsu9168
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop