Support and General Use > Theming and Appearance Customization
Using Viewports with Alternating lines
[Saint]:
There's different ways to do this though, I'm not sure why you can't see that viewport c is true all of the time and will be constantly displayed but just drawn over by whatever is in viewport d.
This can, and should be avoided to prevent update issues.
You should really have separate %?C<|> statements inside viewports a and b
I'll need to look at the code to make sure that's correct though.
[St.]
audio-i:
--- Quote from: [St.] on November 07, 2010, 05:58:41 PM ---I'm not sure why you can't see that viewport c is true all of the time and will be constantly displayed but just drawn over by whatever is in viewport d.
--- End quote ---
--- Quote ---%?C<%t(10)%Vd(a)%Vd(c)|%t(5)%Vd(b)%Vd(c)>;%t(10)%Vd(d)
--- End quote ---
Viewport d is in an alternating subline sequence, preceded by ";" and "%t(10)". I think the theme author's intention is:
AA present: display 10 secs viewports a and c, display 10 secs viewport d
AA not present: display 5 secs viewports d and c, display 10 secs viewport d
[Saint]:
--- Quote from: audio-i on November 07, 2010, 06:15:40 PM ---Viewport d is in an alternating subline sequence, preceded by ";" and "%t(10)". I think the theme author's intention is:
AA present: display 10 secs viewports a and c, display 10 secs viewport d
AA not present: display 5 secs viewports d and c, display 10 secs viewport d
--- End quote ---
I can see that, but what *really* happens is that viewport c is drawn 100% of the time, and viewport d I assume covers it up.
If none of those viewports a, b or d are supposed to cover up c either in part or in full, then there's no point in c being in a conditional statement at all...which is why I assume the intent is to cover the viewport from view instead of simply not displaying it in the time that it's not needed.
Probably written when viewports weren't cleared correctly.
I guess I'll need to look at the code if I want to show a way this can be done with conditional statements that work.
EDIT:
Argh! Right...the penny dropped with me, yes...it is on a conditional subline but I'm not sure it it will be being cleared properly or not?
I'll try map out the way I'd do it if I get a chance to later on.
I'm hoping it'll be easier to understand, and even work if I'm lucky, once I get to looking at the code finally.
[St.]
robin0800:
audio-i is correct this is what I wanted and used to work.
Note to St
viewport "a" draws album art viewport "b" draws no album art in the same viewport
Viewport "c" draws all the rest of the viewports for that screen.
Viewport "d" should draw different viewports on a new screen
Edit
Can someone confirm whether the alternate line problem is a bug? if so I will post it as such.
Navigation
[0] Message Index
[*] Previous page
Go to full version