Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: Avalon on August 05, 2010, 08:30:56 PM

Title: Have %it and %ia changed since r26753?
Post by: Avalon on August 05, 2010, 08:30:56 PM
I have run into a change in the %it and %ia functions between r26753 and r27166 which is causing a change in a theme SBS behavior.

Using r26753, these functions would work in the main menu, radio and record screens at all times.....the current track/artist cued to play using the Resume Playback selection on the main menu would be displayed.

Using r27166, these functions display blanks if in radio playback mode, on the radio screen or on the record screen.

I use the functions to display the next song to be played if I switch back via Resume Playback.  Without this, it is much more difficult to know what song you are switching back to prior to selecting Resume Playback.

Does anyone know if this a permanent change, an oversight or an error on my part?

If it is a change, can it be reversed so that %it and %ia work in all screens?

Title: Re: Have %it and %ia changed since r26753?
Post by: JdGordon on August 05, 2010, 08:50:35 PM
That behaviour wont be changed back.
LEt me think about it for a while, I might add a proper way to do this. maybe the %Vp tag would work here
Title: Re: Have %it and %ia changed since r26753?
Post by: Avalon on August 06, 2010, 01:51:34 AM
As the manual indicates, I do use conditionals.  If %it is not available I use %fn and if %ia is not available I use %d(2).

%fn and %d(2) do not display either, resulting in a blank line.  Unlike %it and %ia which are flagged in the manual as not always available.  I haven't seen any indication that %fn and %d(2) are not always available.

Is there a list of functions which do not always work in an SBS display or if in radio or record modes? 

It looks like some of the flexibility has been lost in SBS if many of the wps functions are not available. 

If this is the case, I will modify my themes to reflect that.

Thks for the reply...if there is a work around, please post.
Title: Re: Have %it and %ia changed since r26753?
Post by: [Saint] on August 06, 2010, 02:34:01 AM
This is indeed a bit of a shame, though I guess I need to thank this thread for saving me some trouble...
I have an idea for a theme kicking around in my head that I was holding off building untill the work with the skin format changeover was finished, but now I know it won't work its back to the drawing board.

A challenge isn't necessarily a bad thing though, just need to think of something else.



[St.]
Title: Re: Have %it and %ia changed since r26753?
Post by: JdGordon on August 06, 2010, 02:59:49 AM
the music system isnt running so there is no p[laylist active... its not a bug. If anything, it used to be a bug that these worked
Title: Re: Have %it and %ia changed since r26753?
Post by: Avalon on August 06, 2010, 04:38:31 AM
The playlist may not be active, but it is retained since Resume Playback resumes the last active playlist.

The %it and %ia functions provided a useful feature when they could be used to display the track and artist that would be played if the Resume Playback was selected.

If %Vp can display the same information in a single line format, then that would be great.  I haven't used %Vp so I do not know if it can be used.  I suspect that if the playlist is treated as inactive, then %Vp is probably not available in this case either.

Thank you very much for responding as this will save me a lot of effort in attempting to debug my themes.  They have gotten a little complicated and could do with a simplification.

If %Vp can be used or if there is another way to achieve the same result, please post.