Page 1 of 1

Easy Colour Changer setup

PostPosted: October 8th, 2006, 9:59 am
by Cliff Cawley
So while adding a certain feature to Xion, I was doing some testing to make sure I could add it how I wanted without breaking anything and I came up with a simple way to make a Colour changer for a skin. This could be used for more than just changing the colour, it could change a background image or shadow type, etc. I think it has many uses.

It's nothing astronomical, but it actually gives you another way to do action_layer_switch without the mess of all the unique layer id's.

You can download the PSD here -> http://xion.r2.com.au/reference/EasyColorChanger.psd

When you click the black button, it tells the animation set to play. Each frame in the animation tells the animation to stop, so every click you do, makes the animation move forward by one frame and stop.

I've put the delay at 1 so that the transition happens as soon as you click and I've added 'fadebetween' so that you see it fade nicely between the frames.

Up to you really, Enjoy ;)

Cliff :)

PostPosted: October 8th, 2006, 12:14 pm
by Uninvited
nice job. I will definetly use that feature in the future.

PostPosted: October 8th, 2006, 8:31 pm
by SLoB
yea good idea Cliff, altho the workaround with the ids wasnt hard to do but it does mean more possible choices as you can only put so much in the text for the layer in ps
half of that string is taken up with the anim_layer_switch and the modify

did you check the feature request for colour change, i reckon thats an even better route to try for at least colour wise ;)

PostPosted: October 9th, 2006, 12:17 am
by SLoB
its also possible to use this as a toggle button to turn off VU :)

assumes you've already created your vu layersets

create a new layer set with name "animation animtype(0) id(togvu)" w/o quotes
add 4 layers, leave them invisible and the layerset invisible too

animation animtype(0) id(togvu)
name the layers:-
modify(vu1) action_anim_play passthrough
modify(togvu) action_anim_stop passthrough
modify(vu1) action_anim_stop passthrough
modify(togvu) action_anim_stop passthrough

add a button, you can also still use the 3 states too such as below:-
button_over modify(togvu) action_anim_play tooltip(Toggle Vis)
button_normal modify(togvu) action_anim_play tooltip(Toggle Vis)
button_down modify(togvu) action_anim_play tooltip(Toggle Vis)

both your VU layersets will have the same name "vu1", you could always put in 2 layers above to stop left/right but naming them the same will do the trick just aswell
change layer ids/names as you choose but make sure they correspond to the above

works a treat :)

posted in the skinning tricks thread also but its in the same context as the above workaround