#Image Rendering Resolution on XML UI
1 messages · Page 1 of 1 (latest)
graphics settings i have in TTS are high
but if i turn down the settings, the image sucks
i know not everybody will be playing on high graphics settings, so, i need to make sure the image looks good for lower res players
@rugged gull scale down the element and scale up the size
<!-- more pixellated -->
<Panel>
<Image image="myImage" width="100" height="100"/>
</Panel>
<!-- less pixellated -->
<Panel scale="0.1 0.1 0.1">
<Image image="myImage" width="1000" height="1000"/>
</Panel>
huh. i can certainly try that. was not aware of a scale attribute
what does it mean to "scale a component around its pivot"?
or perhaps more precisely, what is a pivot point when talking about scale?
hmmm... not sure if i'm going to be able to get this method to work with my setup. I'm using a pretty detailed xml with multiple children in children in children, etc, all of which are using flexible width and height. no matter what i do to the elements with the image in it, they are ALWAYS scaled down too small (when setting the scale). i can't get them to be resized bigger
would it still work if i scaled down the highest parent, and resized that parent?
yes, i'm testing...
oof.. that looks worse
it's always possible, just scale up and down:
<Panel scale="0.1 0.1 0.1">
<Image image="myImage" width="1000" height="1000">
<Panel scale = "10 10 10">
<Text text="Same scale here as 1 1 1"/>
</Panel>
</Image>
</Panel>
oh, cool
ty, ill give that a whirl now too
nope. just doesn't work with flexible elements
I can't really answer why as I don't use flexible elements
ty though
most likely simply because flexible elements fill available space, and the space that is available is scaled down, so that is what it fills
can you remind me what font TTS uses for xml elements please? is it Arial?
I cannot
mmk