View Single Post
04-13-14, 08:50 AM   #1
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 325
Addon_action_blocked

I keep getting this error when out on the Timeless Isle:
Code:
26x [ADDON_ACTION_BLOCKED] AddOn "BasicUI" tried to call the protected function "OverrideActionBarButton1:Show()".
!BugGrabber-r198-release\BugGrabber.lua:552: in function <!BugGrabber\BugGrabber.lua:552>
<in C code>
FrameXML\ActionButton.lua:268: in function <FrameXML\ActionButton.lua:253>
<in C code>
FrameXML\ActionButton.lua:523: in function "ActionButton_OnEvent"
FrameXML\ActionButton.lua:124: in function <FrameXML\ActionButton.lua:117>

Locals:
nil
The only OverrideActionBar code I have in my addon is to move the vehicle bar above my datapanel.

Treeston from MMO Champions help me figure out a way to move it maybe it isn't correct.

So here is the code im currently using...
Lua Code:
  1. local bottom = function() end
  2.            
  3.             -- Main Menu Bar
  4.             MainMenuBar:ClearAllPoints()
  5.             MainMenuBar:SetPoint("BOTTOM", DataPanel, "TOP", 0, -3)
  6.             MainMenuBar.ClearAllPoints = bottom
  7.             MainMenuBar.SetPoint = bottom
  8.            
  9.             -- Vehicle Bar
  10.             OverrideActionBar:ClearAllPoints()
  11.             OverrideActionBar:SetPoint("BOTTOM", DataPanel, "TOP", 0, -3)
  12.             OverrideActionBar.ClearAllPoints = bottom
  13.             OverrideActionBar.SetPoint = bottom
  14.            
  15.             -- Pet Battle Bar
  16.             PetBattleFrame.BottomFrame:ClearAllPoints()
  17.             PetBattleFrame.BottomFrame:SetPoint("BOTTOM", DataPanel, "TOP", 0, -3)
  18.             PetBattleFrame.BottomFrame.ClearAllPoints = bottom
  19.             PetBattleFrame.BottomFrame.SetPoint = bottom

I'm wondering if it might need to be a secure hook or maybe I could hide my datapanel when any vehicle UI shows up.

Maybe something like:
Lua Code:
  1. hooksecurefunc('OverrideActionBar_SetDefaultAnchor', function(self)
  2.                 self:SetPoint(("BOTTOM", DataPanel, "TOP", 0, -3)
  3.             end)

Still learning so any help would be great.

Thanks
Coke
  Reply With Quote