View Single Post
05/26/19, 11:38 AM   #1
xTG
AddOn Author - Click to view addons
Join Date: Feb 2015
Posts: 14
Texture size Versus Resolution size

Hello,

I am looking to how customize the size of a texture relating of the resolution of the user.
Is it possible ?

Actually i generate a texture with a static size, but i will need to cover with multiples textures the HUD.

Code:
            <Controls>
               <Texture name="xTG_SearchIcon" textureFile="xTG_ImmersiveInterface/blood_2.dds" alpha="1">
                   <Dimensions x="600" y="600" />
                   <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="0" offsetY="3" />
                   <TextureCoords left="0" right="1" top="0" bottom="1" />
               </Texture>
            </Controls>
Here i apply a texture of 600x600 on top left, but 600x600 is not great if the user play in 1024x768.
Any ideas ?
  Reply With Quote