Having trouble with SetPoint (WoW Classic)
I can move the right action bars down above my bottom action bars when I manually put these in with /run in game, in order.
When I put the first command in it move both bars (like they are anchored to one another). Then the second line when manually put in move the other bar in place. When I have them together in this code it only loads the first command only and I need to manually put in the second command. This is my current code. Code:
local Frame = CreateFrame("Frame") Does anyone know why its stopping before the second one finished? It does run this portion, Code:
MultiBarLeft:SetWidth(509); MultiBarLeft:SetHeight(140); Code:
/run MultiBarLeft:ClearAllPoints(); MultiBarLeft:SetPoint("BOTTOMLEFT", relativeframe); |
Are you sure it is not running? It is probably moving and then other code is calling SetPoint to override your call. You could try delaying your code or hooking that bar's SetPoint method so that you will know when it has been moved and move it back again.
|
UIParent dynamically moves some frames around depending on what's shown or not. There are a few ways around this, each with their own issues.
All of these options carry the additional effect of having other managed frames position strangely based on visibility state. This is hard-coded, but may be mitigated by removing any occurrence of rightRight and rightActionBarsX from all entries in UIPARENT_MANAGED_FRAME_POSITIONS if taint isn't an issue. |
I got it working!
I legit just added Code:
Frame:RegisterEvent("PLAYER_ENTERING_WORLD") Thanks for your help guys. You got me thinking about it in a different way. Hopefully this helps someone. |
All times are GMT -6. The time now is 04:49 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI