View Single Post
03/06/21, 05:42 AM   #1
Pino
Join Date: Jul 2019
Posts: 1
How to hook virtual="true" controls?

Actually I am working on a patch and pixel-perfect Addon for the keyboard interface. (there are many bugs)
This means I only need to change minior bugs mostly in the xml files and dont want to hook whole functions.
Instead I am using the cool API Hooks like "RedirectTexture()" or "ApplyTemplateToControl()".

But how I can change small things of an xml Control that already has the virtual="true" status?
Mostly they are used directly in a lua function OR by other xml controls. Even if I hook into the lua function and replace the whole xml control there will be other controls who still use the original Control.
There are some premade API Hooking for that?

As example, how I can change TextureCoords in this Control? (Texture=its like an Control)
Code:
[esoui\ingame\playerattributebars\playerattributebartemplates.xml]
<Texture name="ZO_TargetAttributeFrameRightAngle_Keyboard_Template" textureFile="EsoUI/Art/UnitAttributeVisualizer/targetBar_dynamic_frame.dds" virtual="true">
    <Dimensions x="21" y="23" />
    <TextureCoords left="0.5546875" right="0.71875" top="0.328125" bottom="0.6875"/>
</Texture>
Thanks

Last edited by Pino : 03/06/21 at 05:45 AM.
  Reply With Quote