Auto-sizing labels with background colour?
#1
Is it possible to have a solid block of colour behind an auto-sizing label which adopts the same width?
www: deadendthrills.com
follow on twitter for updates, etc: @deadendthrills
Reply
#2
Use a button control?
Reply
#3
Would the button resize to fit the label, though, rather than a texture?
www: deadendthrills.com
follow on twitter for updates, etc: @deadendthrills
Reply
#4
the label, but you can use textoffsetx/y to control the texture width/height.
Reply
#5
We use this for metacritic rating box. Although I fix it at 45 width, auto can be used to stretch it fine Smile

Code:
                    <control type="button">
                        <width>auto</width>
                        <height>45</height>
                        <textcolor>black</textcolor>
                        <textoffsetx>0</textoffsetx>
                        <label>$INFO[Window(Home).Property(SkinHelper.MetaCritic.Rating)]</label>
                        <font>TinyBold</font>
                        <aligny>center</aligny>
                        <align>center</align>
                        <texturefocus colordiffuse="$VAR[CommunityRatingColour]">metacritic_box.png</texturefocus>
                        <texturenofocus colordiffuse="$VAR[CommunityRatingColour]">metacritic_box.png</texturenofocus>
                        <visible>!IsEmpty(Window(Home).Property(SkinHelper.MetaCritic.Rating))</visible>
                        <visible>!String.IsEqual(Window(Home).Property(SkinHelper.MetaCritic.Rating),n/a)</visible>
                    </control>
Reply
#6
For the label is that all you have to do to get skin helper service to pull info? O do you have to run script somewhere and set the property... Becuase I have yet to figure out how to get skin helper to work.... I know I am a noob... But really is that all ?
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply
#7
(2017-01-15, 14:26)smitchell6879 Wrote: For the label is that all you have to do to get skin helper service to pull info? O do you have to run script somewhere and set the property... Becuase I have yet to figure out how to get skin helper to work.... I know I am a noob... But really is that all ?

I have the same question. I have that label but no information is pulled
Reply
#8
The window property names changed, check skin helper wiki.
Reply

Logout Mark Read Team Forum Stats Members Help
Auto-sizing labels with background colour?0