zOMG .XML bugs!? button grid wrapping
In my attempt to break the XML as much as possible to improve customizability and all that good stuff, as well as thanks to Turbinia for making me get into an epic e-peen battle with him (lol) I noticed a rather goofy bug!
Please note I'll be using simplified code and perdy images to emphasize the point.
Code:
<element type="customWindow">
<attributes>
...
</attributes>
<element type="actionbuttongrid">
<attributes>
<int name="ElementCount" value="20" />
...
</attributes>
<element type="actionbutton">
<attributes>
...
</attributes>
</element>
</element>
</element>
Which looks like this in game:
Attachment:
buttonWrap_1.jpg
When resized it works great at wrapping the buttons to the next line:
Attachment:
buttonWrap_2.jpg
The BUG is: This wrapping
only works when the buttons are lined up with the left edge of your monitor! If you move the element away from the edge, it will no longer wrap!
I have included an .XML sample you can play with to try it out for yourself!
http://dl.dropbox.com/u/30755480/TROLOLOL.xml