Thread Tools Display Modes
06-30-14, 08:58 AM   #1
mich125
A Fallenroot Satyr
Join Date: Jan 2010
Posts: 27
Move micromenu after exiting override actionbar vehicle

I have this code to have micromenu moved to a different position, it works fine.
But after i exit some types of "vehicles" it changes back to the original position.

Like for example Golden lotus quest Roll Club: Serpent's Spine:

http://www.youtube.com/watch?v=MjfSHRmM-vM#t=18

I think its called OVERRIDE_ACTIONBAR this type of bar in this quest. Anyway i have no idea how to fix it, maybe someone can

local function MoveMicroMenu()
CharacterMicroButton:ClearAllPoints()
CharacterMicroButton:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 794, 2)
end

MoveMicroMenu()

local MicroMenuMove = CreateFrame("FRAME")
MicroMenuMove:RegisterEvent("UNIT_EXITED_VEHICLE")
MicroMenuMove:SetScript("OnEvent", MoveMicroMenu)

Last edited by mich125 : 06-30-14 at 09:08 AM.
  Reply With Quote
06-30-14, 05:31 PM   #2
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Add this into your code:

Lua Code:
  1. -- Dont use this
  2. hooksecurefunc(CharacterMicroButton, "SetPoint", function(self)
  3.     self:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 794, 2)
  4. end)

Note, dont use this on other especially protected frames, else you might get taints.

Last edited by Resike : 07-01-14 at 05:17 AM.
  Reply With Quote
06-30-14, 08:20 PM   #3
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
That's probably an infinite loop, and if you don't call ClearAllPoints first you might end up with unexpected results.
  Reply With Quote
07-01-14, 12:01 AM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Avoid infinite loops, and "action blocked in combat" errors:

Code:
local moving

hooksecurefunc(CharacterMicroButton, "SetPoint", function(self)
	if moving or InCombatLockdown() then return end
	moving = true
	self:ClearAllPoints()
	self:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 794, 2)
	moving = nil
end)
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
07-01-14, 03:14 AM   #5
mich125
A Fallenroot Satyr
Join Date: Jan 2010
Posts: 27
So now i have this, and it works fine, but while in this quest vehicle micromenu is moved also there, before it wasnt moved at all while in it.
local function MoveMicroMenu()
CharacterMicroButton:ClearAllPoints()
CharacterMicroButton:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 794, 2)
end

MoveMicroMenu()

local MicroMenuMove = CreateFrame("FRAME")
MicroMenuMove:RegisterEvent("UNIT_EXITED_VEHICLE")
MicroMenuMove:SetScript("OnEvent", MoveMicroMenu)

hooksecurefunc(CharacterMicroButton, "SetPoint", function(self)
if moving or InCombatLockdown() then return end
moving = true
self:ClearAllPoints()
self:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 794, 2)
moving = nil
end)

Last edited by mich125 : 07-01-14 at 03:49 AM.
  Reply With Quote
07-01-14, 05:10 AM   #6
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Then remove the last one and try this one:

Lua Code:
  1. local children = {
  2.     CharacterMicroButton,
  3.     SpellbookMicroButton,
  4.     TalentMicroButton,
  5.     AchievementMicroButton,
  6.     QuestLogMicroButton,
  7.     GuildMicroButton,
  8.     PVPMicroButton,
  9.     LFDMicroButton,
  10.     CompanionsMicroButton,
  11.     EJMicroButton,
  12.     StoreMicroButton,
  13.     MainMenuMicroButton
  14. }
  15.  
  16. OverrideActionBar:HookScript("OnShow", function(self)
  17.     for i = 1, #children, 1 do
  18.         children[i]:ClearAllPoints()
  19.         if i == 1 then
  20.             children[i]:SetPoint("LEFT", OverrideActionBarLeaveFrame, "LEFT", - 165, 20)
  21.         elseif children[i] == PVPMicroButton then
  22.             children[i]:SetPoint("LEFT", CharacterMicroButton, "LEFT", 0, - 34)
  23.         else
  24.             children[i]:SetPoint("LEFT", children[i - 1], "RIGHT", - 3, 0)
  25.         end
  26.     end
  27. end)
  28.  
  29. OverrideActionBar:HookScript("OnHide", function(self)
  30.     for i = 1, #children, 1 do
  31.         children[i]:ClearAllPoints()
  32.         if i == 1 then
  33.             -- This is the original position
  34.             --children[i]:SetPoint("BOTTOMLEFT", "MainMenuBarArtFrame", "BOTTOMLEFT", 550, 2)
  35.             -- This is your modified position
  36.             children[i]:SetPoint( "BOTTOMLEFT", UIParent, "BOTTOMLEFT", 794, 2)
  37.         else
  38.             children[i]:SetPoint("LEFT", children[i - 1], "RIGHT", - 3, 0)
  39.         end
  40.     end
  41. end)

Last edited by Resike : 07-01-14 at 05:16 AM.
  Reply With Quote
07-01-14, 05:18 AM   #7
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Phanx View Post
Avoid infinite loops, and "action blocked in combat" errors:

Code:
local moving

hooksecurefunc(CharacterMicroButton, "SetPoint", function(self)
	if moving or InCombatLockdown() then return end
	moving = true
	self:ClearAllPoints()
	self:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 794, 2)
	moving = nil
end)
Actually those frames are not protected so you can freely move them in combat too.
  Reply With Quote
07-01-14, 05:30 AM   #8
mich125
A Fallenroot Satyr
Join Date: Jan 2010
Posts: 27
Now its ok when i login, ok when in override bar, but when go out position moves to original blizzard cords, after reloadui it moves to my position.
---------- // Micro Menu // ----------

local function MoveMicroMenu()
CharacterMicroButton:ClearAllPoints()
CharacterMicroButton:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 794, 2)
end

MoveMicroMenu()

local MicroMenuMove = CreateFrame("FRAME")
MicroMenuMove:RegisterEvent("UNIT_EXITED_VEHICLE")
MicroMenuMove:SetScript("OnEvent", MoveMicroMenu)

local moving

local children = {
CharacterMicroButton,
SpellbookMicroButton,
TalentMicroButton,
AchievementMicroButton,
QuestLogMicroButton,
GuildMicroButton,
PVPMicroButton,
LFDMicroButton,
CompanionsMicroButton,
EJMicroButton,
StoreMicroButton,
MainMenuMicroButton
}

OverrideActionBar:HookScript("OnShow", function(self)
for i = 1, #children, 1 do
children[i]:ClearAllPoints()
if i == 1 then
children[i]:SetPoint("LEFT", OverrideActionBarLeaveFrame, "LEFT", - 165, 20)
elseif children[i] == PVPMicroButton then
children[i]:SetPoint("LEFT", CharacterMicroButton, "LEFT", 0, - 34)
else
children[i]:SetPoint("LEFT", children[i - 1], "RIGHT", - 3, 0)
end
end
end)

OverrideActionBar:HookScript("OnHide", function(self)
for i = 1, #children, 1 do
children[i]:ClearAllPoints()
if i == 1 then
-- This is the original position
--children[i]:SetPoint("BOTTOMLEFT", "MainMenuBarArtFrame", "BOTTOMLEFT", 550, 2)
-- This is your modified position
children[i]:SetPoint( "BOTTOMLEFT", UIParent, "BOTTOMLEFT", 794, 2)
else
children[i]:SetPoint("LEFT", children[i - 1], "RIGHT", - 3, 0)
end
end
end)
  Reply With Quote
07-01-14, 05:40 AM   #9
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
What do you mean by go out?
  Reply With Quote
07-01-14, 05:41 AM   #10
mich125
A Fallenroot Satyr
Join Date: Jan 2010
Posts: 27
leave vehicle with override bar
  Reply With Quote
07-01-14, 06:33 AM   #11
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Hmm it should work, not sure what the issue, try to modify it like this (Full code):

Lua Code:
  1. local function SetPoint(frame)
  2.     if frame.lockPoint then
  3.         local p = frame.lockPoint
  4.         frame.lockPoint = nil
  5.         frame:ClearAllPoints()
  6.         frame:SetPoint(unpack(p))
  7.         frame.lockPoint = p
  8.     end
  9. end
  10.  
  11. local function LockPoint(frame)
  12.     if not frame.lockPoint then
  13.         if not frame.lockPointHook then
  14.             hooksecurefunc(frame, "SetPoint", function(self)
  15.                 SetPoint(self)
  16.             end)
  17.             frame.lockPointHook = true
  18.         end
  19.         frame.lockPoint = {frame:GetPoint(1)}
  20.     end
  21. end
  22.  
  23. local function UnlockPoint(frame)
  24.     frame.lockPoint = nil
  25. end
  26.  
  27. local children = {
  28.     CharacterMicroButton,
  29.     SpellbookMicroButton,
  30.     TalentMicroButton,
  31.     AchievementMicroButton,
  32.     QuestLogMicroButton,
  33.     GuildMicroButton,
  34.     PVPMicroButton,
  35.     LFDMicroButton,
  36.     CompanionsMicroButton,
  37.     EJMicroButton,
  38.     StoreMicroButton,
  39.     MainMenuMicroButton
  40. }
  41.  
  42. CharacterMicroButton:ClearAllPoints()
  43. CharacterMicroButton:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 794, 2)
  44.  
  45. for i = 1, #children, 1 do
  46.     LockPoint(children[i])
  47. end
  48.  
  49. OverrideActionBar:HookScript("OnShow", function(self)
  50.     for i = 1, #children, 1 do
  51.         UnlockPoint(children[i])
  52.         children[i]:ClearAllPoints()
  53.         if i == 1 then
  54.             children[i]:SetPoint("LEFT", OverrideActionBarLeaveFrame, "LEFT", - 165, 20)
  55.         elseif children[i] == PVPMicroButton then
  56.             children[i]:SetPoint("LEFT", CharacterMicroButton, "LEFT", 0, - 34)
  57.         else
  58.             children[i]:SetPoint("LEFT", children[i - 1], "RIGHT", - 3, 0)
  59.         end
  60.         LockPoint(children[i])
  61.     end
  62. end)
  63.  
  64. OverrideActionBar:HookScript("OnHide", function(self)
  65.     for i = 1, #children, 1 do
  66.         UnlockPoint(children[i])
  67.         children[i]:ClearAllPoints()
  68.         if i == 1 then
  69.             -- This is the original position
  70.             --children[i]:SetPoint("BOTTOMLEFT", "MainMenuBarArtFrame", "BOTTOMLEFT", 550, 2)
  71.             -- This is your modified position
  72.             children[i]:SetPoint( "BOTTOMLEFT", UIParent, "BOTTOMLEFT", 794, 2)
  73.         else
  74.             children[i]:SetPoint("LEFT", children[i - 1], "RIGHT", - 3, 0)
  75.         end
  76.         LockPoint(children[i])
  77.     end
  78. end)

Last edited by Resike : 07-01-14 at 07:19 AM.
  Reply With Quote
07-01-14, 07:34 AM   #12
mich125
A Fallenroot Satyr
Join Date: Jan 2010
Posts: 27
WoW it works now, <3 you man, big thanks;p

Maybe you can help me with 1 more thing, i have this part:
---------- // Frame's Positions/Hide // ----------

MainMenuBarTexture0:Hide()
MainMenuBarTexture1:Hide()
MainMenuBarTexture2:Hide()
MainMenuBarTexture3:Hide()
MainMenuBarMaxLevelBar:SetAlpha(0)
ActionBarUpButton:Hide()
ActionBarDownButton:Hide()
MainMenuBarPageNumber:Hide()
MainMenuBarLeftEndCap:Hide()
MainMenuBarRightEndCap:Hide()
MainMenuBarMaxLevelBar:Hide()

ReputationWatchStatusBar:Hide()
ReputationWatchBar:Hide()
ReputationWatchBarOverlayFrame:Hide()

ConsolidatedBuffs:SetScale(1.1)

TargetFrameSpellBar.showShield = true;
FocusFrameSpellBar.showShield = true;

PlayerFrame:ClearAllPoints()
PlayerFrame:SetPoint("CENTER", UIParent, "CENTER", 223, 117)
PlayerFrame:SetScale(1.1)
PlayerFrame.SetPoint = function() end

CastingBarFrame:ClearAllPoints()
CastingBarFrame:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 364)
CastingBarFrame:SetScale(1)
CastingBarFrame.SetPoint = function() end

TargetFrame:ClearAllPoints()
TargetFrame:SetPoint("CENTER", UIParent, "CENTER", 225, 117)
TargetFrame:SetScale(1.1)
TargetFrame.SetPoint = function() end

FocusFrame:ClearAllPoints()
FocusFrame:SetPoint("CENTER", UIParent, "CENTER", 212.5, 52)
FocusFrame:SetScale(1.2)
FocusFrame.SetPoint = function() end

FocusFrameSpellBar:ClearAllPoints()
FocusFrameSpellBar:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 257, 370)
FocusFrameSpellBar:SetScale(1.25)
FocusFrameSpellBar.SetPoint = function() end

MainMenuExpBar:ClearAllPoints()
MainMenuExpBar:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 265, 87)
MainMenuExpBar:SetScale(1)
MainMenuExpBar.SetPoint = function() end

StanceBarFrame:ClearAllPoints()
StanceBarFrame:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 375, 100)
StanceBarFrame:SetScale(1)
StanceBarFrame.SetPoint = function() end

MultiBarBottomLeft:ClearAllPoints()
MultiBarBottomLeft:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 272, 45)
MultiBarBottomLeft:SetScale(1)
MultiBarBottomLeft.SetPoint = function() end

MultiBarBottomRight:ClearAllPoints()
MultiBarBottomRight:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 784, 45)
MultiBarBottomRight:SetScale(1)
MultiBarBottomRight.SetPoint = function() end

PetActionBarFrame:ClearAllPoints()
PetActionBarFrame:SetPoint("BOTTOM", UIParent, "BOTTOM", -159, 90)
PetActionBarFrame:SetScale(1)
PetActionBarFrame.SetPoint = function() end
And most of it doesnt work when i start wow, it starts to work when i reloadui after i login, any idea why and how to fix it? Like gryphons are shown, and player frames scale is default etc., but after reloadui it works fine

Last edited by mich125 : 07-01-14 at 01:14 PM.
  Reply With Quote
07-01-14, 08:27 AM   #13
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
You could try to check out my ongoing development build of this addon, you can move, scale, hide, alphachange frames and textures in it already:

http://www.wowinterface.com/forums/s...ad.php?t=49385

Prolly gonna make a showcase video about how does it work when i'll have some time.

Edit: Have you tried to run that part on PLAYER_ENTERING_WORLD event?

Last edited by Resike : 07-01-14 at 08:48 AM.
  Reply With Quote
07-01-14, 11:56 AM   #14
mich125
A Fallenroot Satyr
Join Date: Jan 2010
Posts: 27
I did it like that, but same thing, isnt this supposed to work? its pretty simple stuff i think, but im not rly good with coding etc, just trying to build ui, and i dont wanna use moveanything, i wanna have something that will work on different accounts/chars instantly, it shouldnt be that hard, maybe someone can help
Lua Code:
  1. local main = function()
  2.  
  3. MainMenuBarTexture0:Hide()
  4. MainMenuBarTexture1:Hide()
  5. MainMenuBarTexture2:Hide()
  6. MainMenuBarTexture3:Hide()
  7. MainMenuBarMaxLevelBar:SetAlpha(0)
  8. ActionBarUpButton:Hide()
  9. ActionBarDownButton:Hide()
  10. MainMenuBarPageNumber:Hide()
  11. MainMenuBarLeftEndCap:Hide()
  12. MainMenuBarRightEndCap:Hide()
  13. MainMenuBarMaxLevelBar:Hide()
  14.  
  15. ReputationWatchStatusBar:Hide()
  16. ReputationWatchBar:Hide()
  17. ReputationWatchBarOverlayFrame:Hide()
  18.  
  19. BuffFrame:SetScale(1.2)
  20. ConsolidatedBuffs:SetScale(1.1)
  21.  
  22. TargetFrameSpellBar.showShield = true;
  23. FocusFrameSpellBar.showShield = true;
  24.  
  25. PlayerFrame:ClearAllPoints()
  26. PlayerFrame:SetPoint("CENTER", UIParent, "CENTER", 225, 117)
  27. PlayerFrame:SetScale(1.1)
  28. PlayerFrame.SetPoint = function() end
  29.  
  30. CastingBarFrame:ClearAllPoints()
  31. CastingBarFrame:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 364)
  32. CastingBarFrame:SetScale(1)
  33. CastingBarFrame.SetPoint = function() end
  34.  
  35. TargetFrame:ClearAllPoints()
  36. TargetFrame:SetPoint("CENTER", UIParent, "CENTER", 225, -117)
  37. TargetFrame:SetScale(1.1)
  38. TargetFrame.SetPoint = function() end
  39.  
  40. FocusFrame:ClearAllPoints()
  41. FocusFrame:SetPoint("CENTER", UIParent, "CENTER", 212.5, 52)
  42. FocusFrame:SetScale(1.2)
  43. FocusFrame.SetPoint = function() end
  44.  
  45. FocusFrameSpellBar:ClearAllPoints()
  46. FocusFrameSpellBar:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 257, 370)
  47. FocusFrameSpellBar:SetScale(1.25)
  48. FocusFrameSpellBar.SetPoint = function() end
  49.  
  50. MainMenuExpBar:ClearAllPoints()
  51. MainMenuExpBar:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 265, 87)
  52. MainMenuExpBar:SetScale(1)
  53. MainMenuExpBar.SetPoint = function() end
  54.  
  55. StanceBarFrame:ClearAllPoints()
  56. StanceBarFrame:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 375, 100)
  57. StanceBarFrame:SetScale(1)
  58. StanceBarFrame.SetPoint = function() end
  59.  
  60. MultiBarBottomLeft:ClearAllPoints()
  61. MultiBarBottomLeft:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 272, 45)
  62. MultiBarBottomLeft:SetScale(1)
  63. MultiBarBottomLeft.SetPoint = function() end
  64.  
  65. MultiBarBottomRight:ClearAllPoints()
  66. MultiBarBottomRight:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 784, 45)
  67. MultiBarBottomRight:SetScale(1)
  68. MultiBarBottomRight.SetPoint = function() end
  69.  
  70. PetActionBarFrame:ClearAllPoints()
  71. PetActionBarFrame:SetPoint("BOTTOM", UIParent, "BOTTOM", -159, 90)
  72. PetActionBarFrame:SetScale(1)
  73. PetActionBarFrame.SetPoint = function() end
  74.  
  75. end
  76.  
  77. local ef = CreateFrame("frame")
  78. ef:RegisterEvent("PLAYER_ENTERING_WORLD")
  79. ef:SetScript("OnEvent", function(self)
  80.  main()
  81.  main = nil
  82.  self:UnregisterEvent("PLAYER_ENTERING_WORLD")
  83.  self:SetScript("OnEvent", nil)
  84. end)

Last edited by mich125 : 07-01-14 at 12:04 PM.
  Reply With Quote
07-01-14, 12:28 PM   #15
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Whats not working? To be honest i tried it and it was set up on logon, however it broke the target frame for me for some reason.
  Reply With Quote
07-01-14, 12:38 PM   #16
mich125
A Fallenroot Satyr
Join Date: Jan 2010
Posts: 27
Omg i got it to work somehow Its all perfect now, this is what i did:

hooksecurefunc("PlayerFrame_ToPlayerArt", function(PlayerFrame)
PlayerFrame:ClearAllPoints()
PlayerFrame:SetPoint("BOTTOM", "UIParent","BOTTOM",-223,240)
PlayerFrame:SetScale(1.1)
TargetFrame:ClearAllPoints()
TargetFrame:SetPoint("BOTTOM", "UIParent","BOTTOM",225,240)
TargetFrame:SetScale(1.1)
FocusFrame:ClearAllPoints()
FocusFrame:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 317.5, -265)
FocusFrame:SetScale(1.2)
end)

local main = function()

MainMenuBarTexture0:Hide()
MainMenuBarTexture1:Hide()
MainMenuBarTexture2:Hide()
MainMenuBarTexture3:Hide()
MainMenuBarMaxLevelBar:SetAlpha(0)
ActionBarUpButton:Hide()
ActionBarDownButton:Hide()
MainMenuBarPageNumber:Hide()
MainMenuBarLeftEndCap:Hide()
MainMenuBarRightEndCap:Hide()
MainMenuBarMaxLevelBar:Hide()

ReputationWatchStatusBar:Hide()
ReputationWatchBar:Hide()
ReputationWatchBarOverlayFrame:Hide()

BuffFrame:SetScale(1.2)
ConsolidatedBuffs:SetScale(1.1)

TargetFrameSpellBar.showShield = true;
FocusFrameSpellBar.showShield = true;

CastingBarFrame:ClearAllPoints()
CastingBarFrame:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 364)
CastingBarFrame:SetScale(1)
CastingBarFrame.SetPoint = function() end

FocusFrameSpellBar:ClearAllPoints()
FocusFrameSpellBar:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 257, 370)
FocusFrameSpellBar:SetScale(1.25)
FocusFrameSpellBar.SetPoint = function() end

MainMenuExpBar:ClearAllPoints()
MainMenuExpBar:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 265, 87)
MainMenuExpBar:SetScale(1)
MainMenuExpBar.SetPoint = function() end

StanceBarFrame:ClearAllPoints()
StanceBarFrame:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 375, 100)
StanceBarFrame:SetScale(1)
StanceBarFrame.SetPoint = function() end

MultiBarBottomLeft:ClearAllPoints()
MultiBarBottomLeft:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 272, 45)
MultiBarBottomLeft:SetScale(1)
MultiBarBottomLeft.SetPoint = function() end

MultiBarBottomRight:ClearAllPoints()
MultiBarBottomRight:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 784, 45)
MultiBarBottomRight:SetScale(1)
MultiBarBottomRight.SetPoint = function() end

PetActionBarFrame:ClearAllPoints()
PetActionBarFrame:SetPoint("BOTTOM", UIParent, "BOTTOM", -159, 90)
PetActionBarFrame:SetScale(1)
PetActionBarFrame.SetPoint = function() end

end

local ef = CreateFrame("frame")
ef:RegisterEvent("PLAYER_ENTERING_WORLD")
ef:SetScript("OnEvent", function(self)
main()
main = nil
self:UnregisterEvent("PLAYER_ENTERING_WORLD")
self:SetScript("OnEvent", nil)
end)

Last edited by mich125 : 07-01-14 at 12:58 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Move micromenu after exiting override actionbar vehicle


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