2007-09-10, 13:59
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:
instead of this:
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?
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?