Thread Tools Display Modes
12-06-22, 08:10 AM   #1
Uitat
A Chromatic Dragonspawn
 
Uitat's Avatar
AddOn Author - Click to view addons
Join Date: May 2011
Posts: 162
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();
__________________
  Reply With Quote
12-06-22, 12:37 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,879
All the old default UI positioning was replaced by Edit Mode.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Uiparent_managed_frame_positions


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off