erland;547589 Wrote: 
> I was thinking passing both "line1", "line2" as part of the hash
> together with all the specific hash attributes. This will make SDT work
> as it does today but if you use the Custom Clock to display the
> information you could configure it by either using the individual items
> or using the preconfigured "line1" and "line2" items.
> 
> In Custom Clock I use keywords like "%line1" to indicate that I want
> something to be replaced by the "line1" attribute value. Very easy to
> implement you just just iterate through all attributes in the hash and
> do a search and replace of "%<attribute name>" to the <attribute
> value>. If you decide to make third party configuration available
> through the SDT interface, maybe you could do the same, so you let the
> user configure what he like to shown on line1, for example: "%from
> %subject" in my mail scenario.
I like the idea.  I'll likely have to get there in baby steps. 
Attached is the first step.  I added a simple addCustomDisplayItemHash
sub.  It takes three arguments- group name (top key of miscData), item
ID (next level of miscData), and a hash ref of all the items.

I could have also just taken one big hash instead of three arguments,
but my other external subs operate per display item so I figured I'd be
consistent this way.

Per Mike's thoughts on sport game-level icons I added an optional
gameLogoURL key.  It's just like the home and away team logo URL keys. 
External plugins can specify whatever logo they wish by including
'gameLogoURL' with the other items when calling addCustomSportScore. 
If one isn't specified a blank image will be shown from the Jive Extras
menu.

For fun right now I'm showing the home team logo for MLB games.  I like
Mike's idea to have it show the winning team.  I'll look into that for
the next version, but would expect that logic to be applied (if
desired) by whatever plugin is adding the data in the first place.

Thanks
-Greg


+-------------------------------------------------------------------+
|Filename: SuperDateTime5-9-0B5.pdf                                 |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=9935|
+-------------------------------------------------------------------+

-- 
GoCubs
------------------------------------------------------------------------
GoCubs's Profile: http://forums.slimdevices.com/member.php?userid=312
View this thread: http://forums.slimdevices.com/showthread.php?t=77864

_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive

Reply via email to