Highlight Navigation Relative to Session Box

1.29K viewsCSS Questions
0

I think I can use Reactions to do this, but is there not a simpler (more elegant) way to highlight eg the first track of the session box?

Barring that, how would I do this using reaction?

Basically
‘Listen’ to the select-relative-to-session button1
Highlight Track x, where x is track one IN the session box.

admin Changed status to publish May 22, 2024
Attached Files:
0

Thanks so much Joihn!!!

I wasn’t sure if ‘offset’ would work – because you can also set the ‘offset’ of the box, so I did need that bit of code.

I’m VERY stingy with Modifiers, because they’re so versatile, so I was loathe to use up 8 just for this. I skipped them and did it by adding reactions for the ‘select’ buttons where – when the button is pressed –

SelectSessionTrack1: self.set_highlighted_track(self.get_sessbox_track_offset())
SelectSessionTrack2: self.set_highlighted_track(self.get_sessbox_track_offset()+1)

etc.

It’s actually more elegant as it avoids tracking the session box (since the offset is a stable environment variable.)

admin Changed status to publish May 22, 2024
Attached Files:
You are viewing 1 out of 16 answers, click here to view all answers.