It is currently April 27th, 2024, 7:16 pm

Buttons to set veriables?

Get help with creating, editing & fixing problems with skins
kennyist
Posts: 54
Joined: October 8th, 2011, 11:49 pm

Buttons to set veriables?

Post by kennyist »

Hi,

I know you can have it so you can let people type stuff in to change variables as i use it on some of my skins. But is there a way to have pre-set options as buttons that change variables? (on the same or different file)

Thanks.
User avatar
Mordasius
Posts: 1173
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Buttons to set veriables?

Post by Mordasius »

kennyist wrote:.. is there a way to have pre-set options as buttons that change variables? (on the same or different file)
Yes, you can use !WriteKeyValue or !SetVariable with a mouse click, with a Button meter or anywhere else you can use a !Bang. The variables can be in the same file or another file.
You can read about !WriteKeyValue and !SetVariable here.

Another way to change/set variables is with the InputText plugin which is a little more complicated but being used by an increasing number of authors crafting skins for distribution. You can read about the InputText plugin here.