GoCubs;545312 Wrote:
> We should probably support icons too at least at the top key level and
> unique identifier levels. Perhaps at the line level too.
>
> Top key- {'CTABusTracker'}{'icon'} = *.png
> UniqueID- {'CTABusTracker'}{'22'} = *.png
>
> Lines- {'CTABusTracker'}{'22'}{'line1'}{icon} = *.png
> {'CTABusTracker'}{'22'}{'line2'}{icon} = *.png
>
>
Could we have unique keys on each level ?
For example:
Top key- {'CTABusTracker'}{'icon'} = *.png
UniqueID- {'CTABusTracker'}{'22'}{'uniqeIcon'} = *.png
Lines- {'CTABusTracker'}{'22'}{'line1'}{'line1icon'} = *.png
{'CTABusTracker'}{'22'}{'line2'}{'line2icon'} = *.png
The reason I'd like that is that I'll merge this into a single hash in
my code, that looks something like this:
Code:
--------------------
'22' => {
'type' => 'short',
'icon' => *.png -- CTA Bus Tracker logo
'uniqueIcon' => *.png -- Unique id logo
'line1Icon' => *.png -- Line 1 logo
'line2Icon' => *.png -- Line 2 logo
'line1' => 'CTA Bus Tracker',
'line2' => 'NB #8 Halsted - 19 min'
},
--------------------
My logic will be:
- The actual attribute names won't matter, anything works as this is
just a value which the user specifies in Custom Clock Helper. Unless we
deside on exact names, I'll just display an empty combo box for now. I
could probably read values from SDT and include anything that starts or
ends with the word "logo" or "icon".
- If the same attribute exists on several levels, I'll be using the one
on the lowest level
- If the attribute starts with "http" I'll presume it's a complete url,
else I'll read it from the local Service by prefixing it with
"http://ipaddress:port:/"
--
erland
Erland Isaksson
'My homepage' (http://erland.isaksson.info) (Install my plugins through
Extension Downloader)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan, Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=77864
_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive