Changing size dependent on content?
#1
Is it possible to change the size of X dependent on Y?
I'd like the width of the bg image of a focused item in a list to match the lenght of the text.

e.g. if the |'s are the sides of a texture, I'd like a list to look like this:

Code:
| Desperate housewives |
| Doctor Who |
| Firefly |

instead of this:

Code:
| Desperate housewives |
| Doctor Who           |
| Firefly              |

But I cant seem to find a way to say something like:
[HTML]
<control type="list" id="50">
...
<itemlayout height="29">
<control type="label">
<posx>0</posx>
<posy>0</posy>
<width>LengthOfTheString</width>
<height>22</height>
<info>ListItem.Label</info>
</control>
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>WidthOFTheLabel</width>
<height>22</height>
<texture>atexture.png</texture>
</control>

[/HTML]

Can it be done?
Reply
#2
no not possible
Reply
#3
boo.

I'll go write a feature req. Wink
Reply

Logout Mark Read Team Forum Stats Members Help
Changing size dependent on content?0