<textOffsetY> no longer works?
#1
it appears that somewhere between 09-03 and 09-06 the <textoffsety> tag stopped working.
specifically values specified in references.xml.

is this a bug, or is there a new method for defining the position of the text within a button?


screenshots:
Image
Reply
#2
hmmm - are you also using <aligny>center</aligny> as that will override the textoffsety tag? only for buttons though.

edit: yes, there was a bug - try cvs now.



Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
hmm.. still doesn't appear to be working.
the button text seems to default to a center vertical alignment even if i don't use the <aligny> tag.

here is the xml i'm using in case i'm missing something obvious. :p

default button in references.xml
Quote: <control>
<description>default button</description>
<type>button</type>
<id>1</id>
<posx>300</posx>
<posy>200</posy>
<width>190</width>
<height>32</height>
<texturefocus>button-focus.png</texturefocus>
<texturenofocus>button-nofocus.png</texturenofocus>
<textoffsetx>10</textoffsetx>
<textoffsety>5</textoffsety>
<font>font14</font>
<textcolor>ffffffff</textcolor>
<colordiffuse>ffffffff</colordiffuse>
<disabledcolor>60ffffff</disabledcolor>
</control>

and a button from myprograms.xml.
Quote: <control>
<description>bm button 2 (c)</description>
<type>button</type>
<id>101</id>
<posx>60</posx>
<posy>256</posy>
<label>103</label>
<onleft>101</onleft>
<onright>7</onright>
<onup>100</onup>
<ondown>102</ondown>
</control>

thanks for looking into it.

i think i'm just going to modify the button textures and take advantage of the new <aligny> tag.
it will most likely work better anyways. Smile
Reply
#4
hmmm - should be working. at least all buttons show up correctly for me. i'll have a further look at the code to check what the values default to (as perhaps it defaults to center).

edit: ahh that was it: it defaults to center. will fix now, as i don't think this should be the default behaviour.

edit2: fixed. let me know if it still doesn't work :p

cheers,
jonathan



Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
everythings working properly now Smile
Reply

Logout Mark Read Team Forum Stats Members Help
<textOffsetY> no longer works?0