2004-09-06, 16:05
2004-09-06, 16:54
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.
edit: yes, there was a bug - try cvs now.
2004-09-07, 05:30
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
and a button from myprograms.xml.
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.
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.
2004-09-07, 13:00
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
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