Page 1 of 1

repeat and random problem

PostPosted: February 15th, 2008, 7:38 am
by Scarebear
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 :)

Re: repeat and random problem

PostPosted: February 15th, 2008, 8:00 am
by Cliff Cawley
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 :)

PostPosted: February 15th, 2008, 8:22 am
by Scarebear
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 ;)

PostPosted: February 15th, 2008, 8:44 am
by Cliff Cawley
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 :)