Confused about "-" value in tags
#1
I see tags in the examples with values of "-", for example: <label>-</label>
I can't for the life of me figure out what this does, or locate anything about it in the wiki. Specifically, I am looking at how Confluence displays the "Free Memory" on the SettingsSystemInformation screen. It does it like this:

Code:
    <control type="label" id="2">
                    <description>Label 2</description>
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>750</width>
                    <label>-</label>
                    <font>font13</font>
                </control>

This is really confusing me because it does not ever reference string 158 ("Free memory"), nor does it call System.memory(). Can anyone point me in the right direction?
Reply
#2
I figured out how the "Free Memory" gets displayed - it's magic Smile It turns out if your window ID is 7 (SettingsSystemInfo) then there are some labels pre-defined. They are labels 2 through 11, as sort of alluded to here:
http://wiki.xbmc.org/index.php?title=XBM...emInfo.xml

It turns out label 2 is the "Free Memory" line. I can't imagine why they aren't documented, unless there is an expectation of them changing.

Anyway, I'm still curious about the "-" values. Anyone know what they mean?
Reply
#3
they mean nothing. if the id has a "pre-defined" label, then the label tag will be ignored
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#4
Basically it's used for blanking if there is a default label our image defined in defaults.xml then a - well make it not show the default
Reply

Logout Mark Read Team Forum Stats Members Help
Confused about "-" value in tags0