Downloads
release
dev builds
extras
themes
Documentation
manual
wiki
device status
Support
forums
mailing lists
IRC
Development
bugs
patches
dev guide
Search
Donate
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Welcome to the Rockbox Technical Forums!
Rockbox Technical Forums
Support and General Use
Theming and Appearance Customization
Scrolling current title, with conditional dynamic info
« previous
next »
Print
Pages: [
1
]
Author
Topic: Scrolling current title, with conditional dynamic info (Read 3500 times)
shoe
Member
Posts: 97
Scrolling current title, with conditional dynamic info
«
on:
June 06, 2008, 04:25:05 PM »
I know you cant scroll dynamic info on the WPS (FS#7006 and
http://forums.rockbox.org/index.php?topic=12055.0
), but I want to use a conditional that either scrolls the current song title, or shows (does not scroll) the playback time, depending if there is album art for the song. So here is a simplified version of what I want:
%?C<%s%ac%it|%al%pc>
The problem is that the time does not update (even though it is not supposed to scroll). I tried using sublines to update every second but then when there is cover art the current title does not scroll, since it starts over every second. Does anybody have any clever ideas on this?
(By the way, I am using the Gigabeat F).
Logged
MarcGuay
Rockbox Expert
Member
Posts: 1065
Re: Scrolling current title, with conditional dynamic info
«
Reply #1 on:
June 06, 2008, 04:46:40 PM »
I'm racking my brain here but can't come up with a solution that doesn't involve conditional viewports.
Edit: Racking, not wracking. As in the medieval torture method.
«
Last Edit: June 06, 2008, 04:48:33 PM by MarcGuay
»
Logged
shoe
Member
Posts: 97
Re: Scrolling current title, with conditional dynamic info
«
Reply #2 on:
June 06, 2008, 05:16:48 PM »
It seems like a lot of work is being done these days on conditional viewports, so I'm guessing (hoping) it will be released soon. I suspect I'll just have to live without scrolling till then.
Logged
MarcGuay
Rockbox Expert
Member
Posts: 1065
Re: Scrolling current title, with conditional dynamic info
«
Reply #3 on:
June 06, 2008, 05:37:32 PM »
... although the CustomWPS wiki page doesn't really give the impression that your code shouldn't work:
"This tag (%s) can occur anywhere in a line, given that the text is displayed (see conditionals)."
It seems that your experiment concludes that if the %s tag appears anywhere in a line, the dynamic content won't update.
«
Last Edit: June 06, 2008, 06:11:00 PM by MarcGuay
»
Logged
spike66
Member
Posts: 59
Re: Scrolling current title, with conditional dynamic info
«
Reply #4 on:
June 06, 2008, 06:03:48 PM »
Conditional viewports will be great, but in the meantime it can be done using this two lines:
%?C<%s%ac%it|>
%?C<|%al%pc>
Logged
MarcGuay
Rockbox Expert
Member
Posts: 1065
Re: Scrolling current title, with conditional dynamic info
«
Reply #5 on:
June 06, 2008, 06:13:34 PM »
But won't that display the info on different lines?
Logged
spike66
Member
Posts: 59
Re: Scrolling current title, with conditional dynamic info
«
Reply #6 on:
June 06, 2008, 06:38:15 PM »
Good point, the only way I found to do it (it worked in my experiment) is to put both lines inside identical viewports; something like:
%V|9|28|100|109|1|ffffff|000000|
%?C<|%al%pc>
%V|9|28|100|109|1|ffffff|000000|
%?C<%s%ac%it|>
If the order is inverted, it won't work when the title is not long enough to scroll (the line won't be updated), but this way worked for me.
Logged
shoe
Member
Posts: 97
Re: Scrolling current title, with conditional dynamic info
«
Reply #7 on:
June 06, 2008, 07:29:22 PM »
Hooray it works!!! I thought about it a lot, but I never thought of trying that. Thanks Mr. Kit!
Logged
Print
Pages: [
1
]
« previous
next »
Rockbox Technical Forums
Support and General Use
Theming and Appearance Customization
Scrolling current title, with conditional dynamic info
SMF 2.0.19
|
SMF © 2021
,
Simple Machines
Rockbox Privacy Policy
XHTML
RSS
WAP2
Page created in 0.4 seconds with 22 queries.