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:
1x Castbars/Castbars.lua:1344: attempt to index global 'UIPARENT_MANAGED_FRAME_POSITIONS' (a nil value)
[string "@Castbars/Castbars.lua"]:1344: in function <Castbars/Castbars.lua:1243>
[string "=[C]"]: ?
[string "@BlizzMove/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <BlizzMove/Libs/AceAddon-3.0/AceAddon-3.0.lua:61>
[string "@BlizzMove/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:494: in function `InitializeAddon'
[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:
-- Prevent the UIParent from moving the CastingBarFrame around
UIPARENT_MANAGED_FRAME_POSITIONS["CastingBarFrame"] = nil;
-- Reset player and pet casting bars in case another addon have
-- messed with them before this addons loads
CastingBarFrame_OnLoad(CastingBarFrame, "player", true, false);
PetCastingBarFrame_OnLoad(PetCastingBarFrame);
-- Create target casting bar
CreateFrame("StatusBar", "TargetCastingBarFrame", UIParent, "CastingBarFrameTemplate");
TargetCastingBarFrame:RegisterEvent("PLAYER_TARGET_CHANGED");
CastingBarFrame_OnLoad(TargetCastingBarFrame, "target", false, true);
-- Create focus casting bar
CreateFrame("StatusBar", "FocusCastingBarFrame", UIParent, "CastingBarFrameTemplate");
FocusCastingBarFrame:RegisterEvent("PLAYER_FOCUS_CHANGED");
CastingBarFrame_OnLoad(FocusCastingBarFrame, "focus", false, true);
-- Register additional events on CastingBarFrame
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_SENT");
CastingBarFrame:RegisterEvent("ACTIONBAR_UPDATE_COOLDOWN");
-- Setup table with all frames
self.frames = {CastingBarFrame, PetCastingBarFrame, TargetCastingBarFrame, FocusCastingBarFrame, MirrorTimer1, MirrorTimer2, MirrorTimer3};
-- Customize the bars
self:FrameCustomizeAll();