Xion Audio Player

Play/Pause

Skinning Questions, Suggestions and Ideas

Postby skryingbreath » September 10th, 2006, 3:42 pm

Hey,

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

Thanks,
skry
User avatar
skryingbreath
Xion Admirer
 
Posts: 205
Joined: September 10th, 2006, 3:22 pm

Postby Cliff Cawley » September 10th, 2006, 4:01 pm

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 :)
Cliff Cawley
Creator of Xion
r2 Studios
http://www.r2.com.au
http://xion.r2.com.au
User avatar
Cliff Cawley
Creator of Xion
 
Posts: 1955
Joined: September 3rd, 2006, 11:33 am
Location: Brisbane, Australia

Postby skryingbreath » September 10th, 2006, 4:07 pm

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! :)
User avatar
skryingbreath
Xion Admirer
 
Posts: 205
Joined: September 10th, 2006, 3:22 pm

Postby Cliff Cawley » September 10th, 2006, 4:16 pm

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 :)
Cliff Cawley
Creator of Xion
r2 Studios
http://www.r2.com.au
http://xion.r2.com.au
User avatar
Cliff Cawley
Creator of Xion
 
Posts: 1955
Joined: September 3rd, 2006, 11:33 am
Location: Brisbane, Australia

Postby skryingbreath » September 10th, 2006, 4:25 pm

That works! Very creative. :D
I will be using it for an upcomming skin.

Thanks for your time. :)
User avatar
skryingbreath
Xion Admirer
 
Posts: 205
Joined: September 10th, 2006, 3:22 pm

Postby Cliff Cawley » September 10th, 2006, 4:39 pm

No worries, I look forward to seeing your upcoming skin! ;)

Cliff :)
Cliff Cawley
Creator of Xion
r2 Studios
http://www.r2.com.au
http://xion.r2.com.au
User avatar
Cliff Cawley
Creator of Xion
 
Posts: 1955
Joined: September 3rd, 2006, 11:33 am
Location: Brisbane, Australia

Postby nicholass » September 10th, 2006, 11:37 pm

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 :)
//Nicholas
User avatar
nicholass
Xion Supporter
 
Posts: 37
Joined: September 9th, 2006, 8:18 pm

Postby Cliff Cawley » September 11th, 2006, 6:14 am

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 :)
Cliff Cawley
Creator of Xion
r2 Studios
http://www.r2.com.au
http://xion.r2.com.au
User avatar
Cliff Cawley
Creator of Xion
 
Posts: 1955
Joined: September 3rd, 2006, 11:33 am
Location: Brisbane, Australia

Return to General Skin Discussion

Who is online

Users browsing this forum: No registered users and 7 guests

cron