Originally Posted by venoabyss
Code:
<Button name="$parentButtonRoster" inherits="UIPanelButtonTemplate" text="Roster">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="12" y="16"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>GRShowRoster(); </OnClick>
</Scripts>
</Button>
|
I'm not seeing <Size> tags to define the width and height.
It's up to the programmer to decide which route to take when setting up buttons. XML and Lua methods are both viable. From a design standpoint, XML was made for static buttons and templates that are created on load and Lua was to offer a way to create UI objects dynamically as needed. As the Lua method is completely capable of phasing out the XML method entirely, many programmers now solely use Lua for creating these objects.