Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: niloc on July 02, 2007, 03:27:31 AM

Title: Text formatting tags revamp?
Post by: niloc on July 02, 2007, 03:27:31 AM
Well, I went on a foray into the world of WPS creation, and I was wondering of the plausibility of one of the ideas I had, text load tags, similar to image load tags.  It would turn text from being randomly spaced around a file into a more programing "const string" of sorts in the format of %tl|text id|Text|x|y to be rendered with %tdn where n is the text id.
For example:
Code: [Select]
%tl|a|"Next Song:"|10|150
%?fm<%tda|>
would show "Next Song:" at (10,150) if there's still a song coming up next or
Code: [Select]
%tl|b|%cH:%cM:%cS
%tlb #display on line
%tlb|10|170 #display in specific pixel
could shorten WPS length if certain text was reused often, in this example, a specific formating of text.  It would be a bit confusing with %t1 and such but the %t space isn't very cluttered.
Edit: I didn't know brackets would be edited off.