local g = getfenv(0)
local OnMouseDown = function(self) if(IsAltKeyDown()) then self:StartMoving() end end
local OnMouseUp = function(self) self:StopMovingOrSizing() end
-- [[ TotemFrame ]]
local tb = TotemFrame
tb.UnregisterEvent = function() end
tb.UnregisterAllEvents = function() end
tb.noomnicc = true
tb:SetMovable(true)
tb:SetUserPlaced(true)
tb:EnableMouse(true)
tb:RegisterForDrag("LeftButton")
tb:SetWidth(128)
tb:SetHeight(38)
tb:SetScript("OnMouseDown", OnMouseDown)
tb:SetScript("OnMouseUp", OnMouseUp)
tb:RegisterEvent"PLAYER_TOTEM_UPDATE"
tb:RegisterEvent"PLAYER_ENTERING_WORLD"
tb:SetParent(UIParent)
tb:ClearAllPoints()
tb:SetPoint("CENTER", UIParent, 0, 0)
for i = 1,4 do
g["TotemFrameTotem"..i.."IconCooldown"].noomnicc = true
end
This makes the default TotemBar in WoW show regardless of you using the default playerframe, it will also move it with pressing down alt while clicking on it. Will prolly clean up the code some and release it later on.