2006-01-31, 04:42
<onfocus> - yes, that should be doable. one example use is in the new mc60 skin in development - you move right onto a button (the "blade") and it automatically loads the next window.
you could use this to show/hide a bunch of controls to get a settings screen exactly like settingcategory.xml, yes.
i don't think i'll do the color label thing - i would rather have a better method (if possible) for doing the multiple label. i don't like the current system (it is not obvious to code for the skinner, is not very "xml"-like, and is time consuming as it must be parsed at render time).
for instance:
<info color="ffff00ff">musicplayer.title</info>
<label> / </label>
<info color="ff00ffff">musicplayer.album</info>
could be used. they'd all be displayed after each other unless line breaks were added. the only problem with this method is that if a piece of information is not present the "separator" labels won't be removed (eg if the album has no info, it will display "title / "). we could perhaps get around this by specifying the "separator" in a specific way:
<info color="ffff00ff">musicplayer.title</info>
<separator> / </separator>
<info color="ff00ffff">musicplayer.album</info>
that way the <separator> piece will only be shown if there is valid info immediately before it or valid info immediately after it.
this doesn't handle the case where you want the year in brackets though - perhaps this:
<info color="ffff00ff" prefix=" (" postfix=")">musicplayer.year</info>
could be used rather than the separators? this will allow the brackets to not be shown when the year info isn't present. it doesn't allow for different colours for the separators though.
this all seems kinda messy to me - anyone else have any ideas?
cheers,
jonathan
you could use this to show/hide a bunch of controls to get a settings screen exactly like settingcategory.xml, yes.
i don't think i'll do the color label thing - i would rather have a better method (if possible) for doing the multiple label. i don't like the current system (it is not obvious to code for the skinner, is not very "xml"-like, and is time consuming as it must be parsed at render time).
for instance:
<info color="ffff00ff">musicplayer.title</info>
<label> / </label>
<info color="ff00ffff">musicplayer.album</info>
could be used. they'd all be displayed after each other unless line breaks were added. the only problem with this method is that if a piece of information is not present the "separator" labels won't be removed (eg if the album has no info, it will display "title / "). we could perhaps get around this by specifying the "separator" in a specific way:
<info color="ffff00ff">musicplayer.title</info>
<separator> / </separator>
<info color="ff00ffff">musicplayer.album</info>
that way the <separator> piece will only be shown if there is valid info immediately before it or valid info immediately after it.
this doesn't handle the case where you want the year in brackets though - perhaps this:
<info color="ffff00ff" prefix=" (" postfix=")">musicplayer.year</info>
could be used rather than the separators? this will allow the brackets to not be shown when the year info isn't present. it doesn't allow for different colours for the separators though.
this all seems kinda messy to me - anyone else have any ideas?
cheers,
jonathan