Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Armada Animations on April 21, 2012, 05:32:46 AM

Title: [SOLVED] style.Value what does it do?
Post by: Armada Animations on April 21, 2012, 05:32:46 AM
I have been working with Playmaker a little while and I really like it. I would love the javascript custom scripts to be supported, but apart from this it is great!

Regarding the GUI system I have found it easier to code my own scripts. When using the GUI actions I have come across the style.Value in the "GUI.actions". Style is defined as part of the GUI.Skin.

Playmaker seems to use is own values, and I don't seem to be able to change them with another action.

Does anyone know the answer to this problem. If I keep 'style.Value' in the action then I can only get black labels.  ??? If I remove it, it will use the color as set by the GUI.skin. I have subsequently removed it.  :-\

Thanks in advance.

David. ;D
Title: Re: style.Value what does it do?
Post by: jeanfabre on April 21, 2012, 02:57:23 PM
Hi,

 you can write actions in javascripts actually: http://hutonggames.com/playmakerforum/index.php?topic=1197.0 (http://hutonggames.com/playmakerforum/index.php?topic=1197.0)

the style value of the gui actions refers not to the guiskin but actually to the component of the guiskin ( box, label,button,etc etc).

 If you want to change the skin of a component, use the action "set gui skin", if you want a label to look like a button, simple put "button" in the "Style" property og the "GUILayout label" action

 Does that make sense?

 

 Bye,

 Jean