2018-03-08, 23:18
Is it possible to have an auto width button that is aligned to the right, so that the right edge is always in the same place and it will stick out further to the left if the label is longer?
My code is..
...but this just displays it with the left edge always in the same place.
If I change the width to fixed number then it works fine but with 'auto' it always reverts back to aligning to the left.
Thanks,
My code is..
Code:
<control type="button">
<right>100</right>
<width max="500">auto</width>
<height>100</height>
<texturenofocus colordiffuse="Music">colors/white.png</texturenofocus>
<label>$INFO[Player.Title]</label>
<font>Con.28</font>
<align>right</align>
<textoffsetx>25</textoffsetx>
</control>
If I change the width to fixed number then it works fine but with 'auto' it always reverts back to aligning to the left.
Thanks,