I’m trying to write a simple addon that moves the Player and Target frames in relation to the casting bar.
I know how to do this in version 1.12.2, but can’t make it work in version 1.13.2 (Classic).
In the past I used…
PlayerFrame:ClearAllPoints();
PlayerFrame:SetFrame(“TOPRIGHT”, CastingBarFrame, “TOPLEFT”, 35, 120);
…but have no idea how to do it now having never created a mod in the modern client. Could someone please clue me in?
Or alternatively, might someone know of a current 1.13.2 FrameXML export that I could use for reference. If I had that I suspect I could answer a lot of my own questions.
For build 31650 you may have to extract it yourself -
1 Like
Okay, for anyone else struggling with this, please visit the WoWWiki fandom website for instructions on how to extract the interface (FrameXML) files. I was still trying to use the old Interface AddOn Kit, which clearly wasn’t getting me anywhere. A bit of a pain-in-the-rear, but I eventually got it to work. Also, if you decide to extract the artwork files, be prepared to wait a little bit. It took several minutes to complete on my PC, and I’ve got a decent one.
That all done, I’ve updated my code to the following, which executes during the PLAYER_LOGIN event…
PlayerFrame:SetUserPlaced(true);
PlayerFrame:ClearAllPoints();
PlayerFrame:SetFrame(“TOPRIGHT”, CastingBarFrame, “TOPLEFT”, 35, 120);
…and that isn’t working either. Might anyone have an idea of what I am missing?
EDIT And another question: In the past I used to use…
function tempMod_OnEvent(event)
if (event == “PLAYER_REGEN_DISABLED”) then
PlayerFrameTexture:SetTexture(“Interface\TargetingFrame\UI-TargetingFrame-Rare”);
else
PlayerFrameTexture:SetTexture(“Interface\TargetingFrame\UI-TargetingFrame”);
end
end
…but it doesn’t work in 1.13.2 Classic. Did they remove the ability to SetTexture during combat, or is there something else going on?
1 Like