WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Uiparent_managed_frame_positions (https://www.wowinterface.com/forums/showthread.php?t=59395)

Uitat 12-06-22 08:10 AM

Uiparent_managed_frame_positions
 
i am in the process of fixing Castbars, but i have encountered something i have not seen no can find any information on, i know its part of the default UI stuff, or used to be???..

i have already updated all the libraries just to be sure it was not an issue there

here is the error
Lua Code:
  1. 1x Castbars/Castbars.lua:1344: attempt to index global 'UIPARENT_MANAGED_FRAME_POSITIONS' (a nil value)
  2. [string "@Castbars/Castbars.lua"]:1344: in function <Castbars/Castbars.lua:1243>
  3. [string "=[C]"]: ?
  4. [string "@BlizzMove/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <BlizzMove/Libs/AceAddon-3.0/AceAddon-3.0.lua:61>
  5. [string "@BlizzMove/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:494: in function `InitializeAddon'
  6. [string "@BlizzMove/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:619: in function <BlizzMove/Libs/AceAddon-3.0/AceAddon-3.0.lua:611>
here is the offending code block, any info or suggestions is welcome at this point beating my head on a brick all on this one.

Lua Code:
  1. -- Prevent the UIParent from moving the CastingBarFrame around
  2.     UIPARENT_MANAGED_FRAME_POSITIONS["CastingBarFrame"] = nil;
  3.     -- Reset player and pet casting bars in case another addon have
  4.     -- messed with them before this addons loads
  5.     CastingBarFrame_OnLoad(CastingBarFrame, "player", true, false);
  6.     PetCastingBarFrame_OnLoad(PetCastingBarFrame);
  7.  
  8.     -- Create target casting bar
  9.     CreateFrame("StatusBar", "TargetCastingBarFrame", UIParent, "CastingBarFrameTemplate");
  10.     TargetCastingBarFrame:RegisterEvent("PLAYER_TARGET_CHANGED");
  11.     CastingBarFrame_OnLoad(TargetCastingBarFrame, "target", false, true);
  12.  
  13.     -- Create focus casting bar
  14.     CreateFrame("StatusBar", "FocusCastingBarFrame", UIParent, "CastingBarFrameTemplate");
  15.     FocusCastingBarFrame:RegisterEvent("PLAYER_FOCUS_CHANGED");
  16.     CastingBarFrame_OnLoad(FocusCastingBarFrame, "focus", false, true);
  17.  
  18.     -- Register additional events on CastingBarFrame
  19.     CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_SENT");
  20.     CastingBarFrame:RegisterEvent("ACTIONBAR_UPDATE_COOLDOWN");
  21.  
  22.     -- Setup table with all frames
  23.     self.frames = {CastingBarFrame, PetCastingBarFrame, TargetCastingBarFrame, FocusCastingBarFrame, MirrorTimer1, MirrorTimer2, MirrorTimer3};
  24.  
  25.     -- Customize the bars
  26.     self:FrameCustomizeAll();

Fizzlemizz 12-06-22 12:37 PM

All the old default UI positioning was replaced by Edit Mode.


All times are GMT -6. The time now is 12:26 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI