constants and <centerleft>
#1
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:

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.
Reply
#2
https://github.com/xbmc/xbmc/pull/4473
Image
Reply
#3
Terrific, cheers Smile
Reply

Logout Mark Read Team Forum Stats Members Help
constants and <centerleft>0