Trying to move CompactRaidFrameManager
Hi and sorry if recently I have posted a lot. This is the last issue I have till my UI should be finished.
I want to move the CompactRaidFrameManager window on the left as its in the way of my chat box as I have it at the top left corner instead. To move it I used the following code: Lua Code:
This works however if you click the "CompactRaidFrameManagerToggleButton" Button while in combat it resets its position. I have been looking for a solution and found the code below but it doesn't do anything, most likely because I'm using it wrong and not sure what to do with it. Lua Code:
Thought I might as well ask for help in case someone has encountered this issue before and knows a fix. Greatly appreciated! Thank you for reading :) |
I've tried using hooksecurefunction and hook script to try to get this to work but it all comes down to the issue where I'm in combat and I use the CompactRaidFrameManager button which then resets its position. I got fed up with this and used an OnUpdate handler (the code below) but even this will not work while I'm in combat which does not make any sense to me. Surely this OnUpdate function should work regardless of whether I'm in combat or not and then Blizzard Compact Raid Frame Manager code seems to mention nothing at all about being in combat so no idea whats blocking it.
Lua Code:
|
I've managed to get it to work while out of combat and I've just made it so that you cannot click the ToggleButton while in combat. That avoids it from moving location on its own. Very odd that I cannot alter it at all while in combat but will just have to settle for it.
|
Quote:
|
Quote:
|
Quote:
|
Yep. Blizzard's code is not subject to the same restrictions as addons. That's why they can call CastSpellByName, even though addons have been forbidden from calling that function since TBC.
|
I also have been playing this recently:
Lua Code:
"MovAny:IsModified(self)" determines if the frame's position is modified or it's in the default position. The moving functions should not be a problem, just don't let it move it in combat. The advantage of this, when you move the Manager to another position the toggle panel button will work perfectly on that spot too. |
long-standing issue, with the crumbs from this thread and DejaPRFader i've managed to consolidate the functionality.
for anyone interested, here it is. https://legacy.curseforge.com/wow/ad...idframemanager source code for people just wanting a quick understanding for their own implementations: Lua Code:
|
All times are GMT -6. The time now is 04:06 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI