azinck3;192351 Wrote: 
> I'm a very happy user of your plugin, Greg -- have been using it for a
> year or so now and it's most helpful!  Thanks for all your hard work.
> 
> Yesterday I finally upgraded to the latest nightly (wanted to match my
> firmware to Squeezenetwork) so I also took the chance to upgrade to the
> latest release of your plugin.  This was the first I'd seen the icons
> and while I can appreciate their value to some users, they're not
> really my cup of tea (this is no knock on the design of the icons, I'm
> just not much of an icon guy and they're kinda hard to see from across
> the room).  I could live with them on my SB2 but I have 3 SB1/1g
> devices which don't, of course, support the new icons and on those
> devices the icon is simply missing so the second line of text no longer
> appears centered.  I'd like to return to the functionality of your
> earlier versions and simply have no icon and the bottom line of text
> horizontally aligned. 
> 
> I've poked around in the code and was excited to see the variables
> "showGraphics", "largeFontTimeIcon", "iconPreSpace", and
> "icon2PreSpace".  After playing around with them a bit I've managed to
> hide the graphics with "showGraphics" and get the 2nd-line text
> reasonably well-centered by just playing with "iconPreSpace" but the
> text is still technically left-aligned and just bumped over so it's not
> actually centered.  Any suggestions?  I must be missing something here.
> 
> I've done some searching for this but can't seem to sort it out, so I
> apologize if I'm duplicating a request.
Wow you were pretty resourceful!  Unfortunately SoftSqueeze doesnt let
me emulate older non-graphics displays so when I do my testing I kind
of neglect older units.  I have an extra unused SBG (not for sale) that
I really should hook up for testing purposes...

It's hard to anticipate how everyone uses the plugin and portions of
the code have gotten ugly to cover all the special cases people need
(large vs small fonts, centered or not, etc).  In the next version of
the plugin (for SlimServer 7) to clean up the code I allow users to
specify exactly how they want the screen to look.  As it stands if its
configured not to use icons or the 3line text it'll left justify
everything.  I think I'll update it to automatically center the text in
that case...  I should probably also make it configurable per-player
instead of server-wide...ugh...

I doubt you're using SS7 so that wont do you any good yet.  As a temp
fix, you just have to make one more change to your already modified
code to center the text (you'll also need to change the prespaceing to
0 which you already know how to do).

In 5.0.5 around line 5807:

CHANGE:

Code:
--------------------
    
        else {  #BASIC OR SLIDE
                if ($client->textSize() != 2) { #Not large text
                        if ($nowshowing{$client} == 0 && 
defined($btmLinePreSpace[$topNowShowing{$client}])) { #Time with special 
spacing                               
                        #$::d_plugins && msg("SuperDateTime: ***\n");
                        $hash = {
                                        'overlay' => [ $overlay . $status, 
undef ],
                                        'center'  => [ $displayLine1{$client}, 
undef ],
                                        'line'    => [ undef, 
$displayLine2{$client} ],                                             
                                };
                        }
  
--------------------

TO:

Code:
--------------------
    
        else {  #BASIC OR SLIDE
                if ($client->textSize() != 2) { #Not large text
                        if ($nowshowing{$client} == 0 && 
defined($btmLinePreSpace[$topNowShowing{$client}])) { #Time with special 
spacing                               
                        #$::d_plugins && msg("SuperDateTime: ***\n");
                        $hash = {
                                        'overlay' => [ $overlay . $status, 
undef ],
                                        'center'  => [ $displayLine1{$client}, 
$displayLine2{$client} ],                                            
                                };
                        }
  
--------------------

Basically the last line is removed and the second to last is modified.

This change will only impact showing the time with a two line font.

Lemme know if you have any issues!

-Greg


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

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

Reply via email to