View Single Post
03/06/21, 11:24 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
If you talk about PerfectPixel: It is still maintained where needed, so please ask for help/fixes for compatibility in the addon comments instead of creating patches where you modify the files.
PP provides base possibilities to reanchor controls of standard ESO UI and other addons (based on scenes, fragments, controls, etc.) and there is a given structure of filenames and subfolders (scenes, eg.) to support this AND keep track of where was changed what.

Adding new files or modifying them only at some places will most likely fix it for your 1 addon but break 4 others the same time!
So better do the following please: Tell me in the addon comments what is miss placed/not working.
Provide the standard information like "what addons are enabled as it is shown wrong", "does it work if only 1 addon and PP is enabled?" -> so other addons break it, and "do you already know what to change so it will work for all addons in combination?".

You always have to have a look at the whole picture and as there are like 400+ UI changing addons this is not as easy as you think it will be

Thanks for your understanding AND doing the homework with the tests before trying to fix something that might break more than you know/think off. AND thank you as well for using the given ways PP changes other controls anchors/scenes/fragments/hooks, instead of changing the base virtual controls or changng the xml controls.

About your question:
A virtual control is a template. You cannot change it directly. You need to use inherits="theVirtualControl" and override="true" BUT then you will also need to override ALL following functions and related XML controls properly, or it might/will throw errors.
In your example you need to create your own <texture name="ZO_TargetAttributeFrameRightAngle_Keyboard_TemplateNew" inherits="ZO_TargetAttributeFrameRightAngle_Keyboard_Template" virtual="true" overwrite="true"...>
and then you'd be able to change the texture coordinates of it (maybe). But this would also need you to change other parameters and code AND assign this new template ZO_TargetAttributeFrameRightAngle_Keyboard_TemplateNew to the controls that normally used ZO_TargetAttributeFrameRightAngle_Keyboard_Template.
Maybe there is any easier way, but I do not know any so far.

PP therefor does not change these controls where not needed but just checks which addons are activated and reanchors them properly to the other controls.
This won't change the base, maybe creating multiple problems even in lua code, but just changes the visuals as they are shown/hidden.

Last edited by Baertram : 03/06/21 at 11:47 AM.
  Reply With Quote