View Single Post
08-23-18, 03:11 PM   #15
Drudatz
A Fallenroot Satyr
Join Date: Aug 2009
Posts: 20
Red face

Okay with Taudiers tip it works now
(even though I HAVE MultiBarRight enabled and visible).
I just react on PLAYER_CONTROL_GAINED and it works again.

Code:
		if event:match("PLAYER_CONTROL_GAINED") then
			CreateFrame("frame", nil, nil, "SecureHandlerBaseTemplate" ):WrapScript(ActionButton1, "OnShow", [[
				print("ACTION!")
				local MainMenuBarArtFrame = self:GetParent()
				local MainMenuBar = MainMenuBarArtFrame:GetParent()
				local UIParent = MainMenuBar:GetParent()
				MainMenuBar:SetPoint("CENTER", UIParent, "BOTTOM", 0, 40)
			]])
		end

Last edited by Drudatz : 08-23-18 at 03:28 PM.
  Reply With Quote