2014-03-24, 22:28
Maybe this isn't supposed to work (yet), not sure so I thought I'd mention this here. Constants don't seem to be working with the <centertop>, <centerleft>, etc tag formatting
Using:
This puts the texture in question in the upper left corner of the screen, mostly off screen.
Of course I can just put 640 and 360 there, but using constants for it is just another couple of coordinates I don't have to adjust for other resolutions.
Using:
PHP Code:
<constant name="screen_Centerx">640</constant>
<constant name="screen_Centery">360</constant>
PHP Code:
<control type="image">
<centerleft>screen_Centerx</centerleft>
<centertop>screen_Centery</centertop>
<width>96</width>
<height>96</height>
<include>art_DefaultIcon</include>
</control>
This puts the texture in question in the upper left corner of the screen, mostly off screen.
Of course I can just put 640 and 360 there, but using constants for it is just another couple of coordinates I don't have to adjust for other resolutions.