sullemunk wrote: ↑Sat May 02, 2020 7:40 pm
try:
DynamicImageSetTextureOrientation("ImageName",true)
DynamicImageSetRotation("ImageName",180)
Thanks for the hints, I had a chance to look into this a bit more this evening. From the looks of it, the DynamicImageSetTextureOrientation() function does change the horizontal orientation of a texture when the second argument it accepts equals true. I will do a bit more research as I have been unable to use DynamicImageSetRotation() to effectively change anything. I saw it's used for the Slayer and Choppa career resource (sort of like a speedometer little thingy), so I may do some tests with it there to understand it better.
Code: Select all
/mnt/f/Games/Return Of Reckoning/Interface $ grep -r DynamicImageSetRotation .
./1.4.2/interface/default/ea_careerresourceswindow/source/choppa.lua: DynamicImageSetRotation( g_resource_window.."Needle", rotate )
./1.4.2/interface/default/ea_careerresourceswindow/source/slayer.lua: DynamicImageSetRotation( g_resource_window.."Needle", rotate )
So far this code does flip the texture horizontally, which is a good start. Thank you all!
Code: Select all
====== xml
<DynamicImage name="$parentApBarFrame" texture="EA_HUD_01" slice="Player-HealthBar-Frame" popable="false" handleinput="true" layer="overlay">
<!-- can also use mirrorTexCoords=true above to force horizontal flip from the XML definition -->
<Size>
<AbsPoint x="180" y="28" />
</Size>
<Anchors>
<Anchor point="bottomleft" relativePoint="topleft" relativeTo="$parentHealthBarFrame">
<AbsPoint x="0" y="0" />
</Anchor>
</Anchors>
</DynamicImage>
====== lua
DynamicImageSetTextureOrientation("PlayerWindowApBarFrame",true)