2014-04-27, 17:51
In an image control I can't get them to work.
Do percentages only work for labels?
Thanks.
Do percentages only work for labels?
Thanks.
<control type="group">
<left>0</left>
<top>0</top>
<width>1920</width>
<height>1080</height>
<!-- Dialog background image -->
<control type="image">
<centerleft>50%</centerleft>
<centertop>50%</centertop>
<width>50%</width>
<height>50%</height>
<texture border="10">dialogs/DialogBackgroundImage.png</texture>
</control>
</control>
(2014-04-28, 10:22)jmarshall Wrote: Make sure that <left> and <top> aren't defined in defaults.xml. That's usually the cause.Not in any of my defaults.
In the meantime, I'll do up a fix for <width>50%</width>
(2014-04-28, 10:39)jmarshall Wrote: Fixed in master - that'll get backported to Gotham.For the <width>50%</width> problem?
(2014-04-29, 23:05)jmarshall Wrote: Neat
Hadn't considered others, but there's no reason we couldn't. The problem I guess is what they reference? Would they always reference the parent size? If so, what is the parent size of the layout - the size of the container or the size of the group the container is in? Once we sort that it'd be pretty easy to hook it up (you'd also get the 50r stuff for free, though I suspect it doesn't make much sense in most cases!)
(And yeah, nightlies are coming from Gotham branch, so won't include it until I backport - will do so this evening).