Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
use a button control?
no need for separate images, you can use the 'border' tag to avoid distortion.
Posts: 201
Joined: May 2010
Reputation:
4
Yeah, but I guess what he wants is something like <width min="10" max="100>auto<width> for buttons and images.
As far as I know it only works for labels at the moment.
Posts: 133
Joined: Mar 2009
Reputation:
0
Thanks guys for replying. I'm still new to all this XBMC skinning stuff, but yes I think toolpunk's got the right idea. The text is a label with the image underneath. I don't have control over the content of the label hence the plan to stretch and squash the middle of the image.
I could use borders, but I create all images at 1080 but the code is 720 so borders does strange things I've found when moving between resolutions so if possible I'd like to avoid using them.
So sorry to sound stupid but are we saying its not going to be possible?
Posts: 133
Joined: Mar 2009
Reputation:
0
Or what about specifity a color for the background of the label control? That way I just have to add the two images, one at each end. Is that possible?
Posts: 17,383
Joined: Aug 2007
Reputation:
582
Hitcher
Team-Kodi Member
Posts: 17,383
Dynamically sized textures aren't possible yet.
Posts: 133
Joined: Mar 2009
Reputation:
0
Sorry to resurrect an old thread but I don't suppose that this has been implemented yet? If not could I please put in another request? Would be great to see it included.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
No, the autowidth stuff has not yet been implemented for buttons.