Xion Audio Player

repeat and random problem

Skinning Questions, Suggestions and Ideas

Postby Scarebear » February 15th, 2008, 7:38 am

Hopefully I'm doing something stupid. But I can't get the repeat and random buttons to work as I'd like. I'm using indi_repeat and indi_random. But you can't click them to turn random or repeat off.

Image

The offending buttons are always on with the standard buttons on and unclickable beneath.

EDIT: File removed. You can download the working version on a few sites now :)
Last edited by Scarebear on February 17th, 2008, 8:20 pm, edited 1 time in total.
Because skinning should be fun!
http://www.scarebear.org/
User avatar
Scarebear
Xion Supporter
 
Posts: 67
Joined: September 30th, 2006, 6:22 pm
Location: Ipswich, Australia

Postby Cliff Cawley » February 15th, 2008, 8:00 am

Scarebear Wrote:Hopefully I'm doing something stupid. But I can't get the repeat and random buttons to work as I'd like. I'm using indi_repeat and indi_random. But you can't click them to turn random or repeat off.

Image

The offending buttons are always on with the standard buttons on and unclickable beneath.

Grab the file here and let me know what I'm doing wrong. Thanks :)


indi_repeat and indi_random are both 'Indicators'. They don't have any clicking functions. You should use 'random' and 'repeat' that are from the buttons section.

If you want to then show and hide those buttons based on the state of random and repeat, then you add indi_random/indi_repeat keywords to those buttons.

For example: repeat_normal indi_repeat

However this will mean that the repeat button is invisible when repeat mode is off.

You need to use a 'fake' layer to show the state.

There are a few skins out there that use this, which you can use for reference.

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 Scarebear » February 15th, 2008, 8:22 am

Going by what you've said I've done the wrong thing, but using indi_random_passthrough seems to work. I worked that out just now. I'll try your way. Probably better ;)
Because skinning should be fun!
http://www.scarebear.org/
User avatar
Scarebear
Xion Supporter
 
Posts: 67
Joined: September 30th, 2006, 6:22 pm
Location: Ipswich, Australia

Postby Cliff Cawley » February 15th, 2008, 8:44 am

Scarebear Wrote:Going by what you've said I've done the wrong thing, but using indi_random_passthrough seems to work. I worked that out just now. I'll try your way. Probably better ;)


if you use indi_random passthrough, you'll have to make sure there is a random button below it, otherwise it won't trigger anything.

If this is what you have, then that should work just fine :)

Up to you really, both methods should work almost equally.

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 10 guests

cron