2022-03-01, 22:08
Hello!!
Sorry if this have been asking before, but I really don't know how to search.
I have this buttom control:
When is clicked, open a dialog window where I can select a image.
after the image selected, this is show on the skin:
But, the <label2> is very long and will be scroll.
I know in label controls we can use the tag <haspath> to make a path short (eg. "../../../../pattern3.jpg")
Is there a way to make a equivalent in a button label? (already try to use <textwidth> but this tag will truncate both labels.)
Like this (this is a mockup):
thanks in advance!!!
Sorry if this have been asking before, but I really don't know how to search.
I have this buttom control:
Code:
<control type="button" id="603">
<label>$LOCALIZE[31177]</label>
<label2>$INFO[Skin.String(CustomHomeFanart)]</label2>
<include>DefaultSettingButton</include>
<onclick>Skin.SetString(background_overlay,0)</onclick>
<onclick>Skin.SetString(CustomHomeFanart,special://home/addons/skin.mediacenter/extras/backgrounds/)</onclick>
<onclick>Skin.SetImage(CustomHomeFanart)</onclick>
</control>
When is clicked, open a dialog window where I can select a image.
after the image selected, this is show on the skin:
But, the <label2> is very long and will be scroll.
I know in label controls we can use the tag <haspath> to make a path short (eg. "../../../../pattern3.jpg")
Is there a way to make a equivalent in a button label? (already try to use <textwidth> but this tag will truncate both labels.)
Like this (this is a mockup):
thanks in advance!!!