JohnSwenson;609861 Wrote: > > Is it possible to do a single field that spans multiple lines so it > doesn't scroll? For instance if I were willing to just have the track > name (no artist, album etc) on screen could it be spread over three > lines with no scrolling? Of course then you have the issue of where to > make line breaks, but THATS a different issue. > I haven't seen any automatic support for doing line breaks, but it would definitely be possible to implement.
The question is just how the line breaking should work: - Line breaking between words is going to waste unnecessary space if there is a log word on the right side which doesn't fit on the upper row. - Line breaking in middle of word is going to look and work bad because your brain isn't going to recognize the word which is split upon two lines. Actually, there might already be line break support when I think about it because it's implemented for the rsstext item type in Custom Clock, I think that should work for all *text items, for example a "tracktext" item where you have set the "text" attribute to "TITLE". To make it work, the "scrolling" attribute needs to be set to false and the "linelength" attribute needs to have a value (number of pixel width of each line). Unfortunately, the "linelength" attribute currently doesn't exist in "tracktext" in the Custom Clock Helper configuration page, but it is supported in the applet. The easiest way to solve it, is probably just to add "lineheight" and "linelength" attributes to the Custom Clock Helper plugin. That way, you can configure a "tracktext" item as: - text: TITLE - fontsize: 60 - lineheight:80 - linelength: 400 - scrolling: false - posx: 10 - posy: 10 This should give you a multi line title with 80 pixels between the lines, a 60 pixel font and a line break after 400 pixels. You will have to experiment with the exact values, these are just examples. I've attached a patch which I think should add the necessary lineheight and linelength attributes to Custom Clock Helper if you like to try it. If you try the attached patch and it's usable, let me know and I'll include it in next Custom Clock Helper release. If you don't like to patch Custom Clock Helper, you can also modify the settings page on the Touch for Custom Clock clock using vi or similar tool. /etc/squeezeplay/userpath/settings/CustomClock.lua I think you need to reboot the Touch for the changes to take effect in this case. If you want to patch the standard SqueezePlay Now Playing screen to do line breaks, you will find the Custom Clock line breaking logic in the _wordwrap function in CustomClockApplet.lua. +-------------------------------------------------------------------+ |Filename: CustomClockHelper_linelength.patch | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=11336| +-------------------------------------------------------------------+ -- erland Erland Isaksson ('My homepage' (http://erland.isaksson.info)) (Developer of 'many plugins/applets' (http://wiki.slimdevices.com/index.php/User:Erland). If my answer helped you and you like to encourage future presence on this forum and/or third party plugin/applet development, 'donations are always appreciated' (http://erland.isaksson.info/donate)) ------------------------------------------------------------------------ erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=81777 _______________________________________________ Touch mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/touch
