Page 1 of 1

Play/Pause

PostPosted: September 10th, 2006, 3:42 pm
by skryingbreath
Hey,

Is there any way for the play button to double as a pause button? Some kind of hack of sorts?

Thanks,
skry

Re: Play/Pause

PostPosted: September 10th, 2006, 4:01 pm
by Cliff Cawley
skryingbreath Wrote:Is there any way for the play button to double as a pause button? Some kind of hack of sorts?


Couldn't you just paint it so that it looks like a play button, and then name it 'pause_normal' ?

This way it would act like a pause button, but look like a play button?

Cliff :)

PostPosted: September 10th, 2006, 4:07 pm
by skryingbreath
Hmm I think.

I guess what I'm trying to say is... is there a way when the player is playing a song and you hit the play button again it pauses the song and switches the play button image to a pause button image. When the song is paused and you hit the pause button image, it starts playing again and is now a play button image.
I can provide a diagram image if you don't know what I'm talking about.


Also, is there a way to 'reload' the skin instead of turning the application off and on. So that you can see small changes made to it etc..

Thanks for the fast response! :)

PostPosted: September 10th, 2006, 4:16 pm
by Cliff Cawley
Ah, now I understand what you want.

Yes this is most definately possible. Basically you would use the Indicator keywords. (You can view the layer reference here -> http://xion.r2.com.au/index.php?page=layerref

So at the end of the pause button keyword add 'indi_play', and at the end of the play button keyword add 'indi_pause'

For example: 'play_normal indi_pause' would be the layer name for the play button.

In this way, when the player is paused, it will show the play_normal layer. If you now add the pause button with 'pause_normal indi_play' as the layer name, it will only show the pause button when Xion is playing.

The end effect is that the pause button and play button swap themselves automatically, producing exactly the effect you are after :)

skryingbreath Wrote:Also, is there a way to 'reload' the skin instead of turning the application off and on. So that you can see small changes made to it etc..


There is no button or key that I have created yet (however I can add one). The easiest way to reload is to actually just drag and drop your .psd (or .zip/.xsf) file onto the interface.

Cliff :)

PostPosted: September 10th, 2006, 4:25 pm
by skryingbreath
That works! Very creative. :D
I will be using it for an upcomming skin.

Thanks for your time. :)

PostPosted: September 10th, 2006, 4:39 pm
by Cliff Cawley
No worries, I look forward to seeing your upcoming skin! ;)

Cliff :)

PostPosted: September 10th, 2006, 11:37 pm
by nicholass
When I used 'play_normal indi_pause' I noticed that if you press stop both pause and play disappears, 'play_normal indi_pause indi_stop' works good then :)

PostPosted: September 11th, 2006, 6:14 am
by Cliff Cawley
nicholass Wrote:When I used 'play_normal indi_pause' I noticed that if you press stop both pause and play disappears, 'play_normal indi_pause indi_stop' works good then :)


Yes, that's correct :) Indicators were originally added so that you could display some sort of icon to show that Xion was playing something, or that it was stopped, etc, however it comes in really handy when trying to show/hide a layer for pause/play buttons and as you have discovered, you can indeed combine the different indicator keywords to produce many different outcomes ;)

Cliff :)