Deprecated: Function set_magic_quotes_runtime() is deprecated in /customers/1/9/e/stein-ivar.net/httpd.www/textpattern/lib/txplib_db.php on line 14 Warning: Cannot modify header information - headers already sent by (output started at /customers/1/9/e/stein-ivar.net/httpd.www/textpattern/lib/txplib_db.php:14) in /customers/1/9/e/stein-ivar.net/httpd.www/textpattern/lib/txplib_misc.php on line 1625 Warning: Cannot modify header information - headers already sent by (output started at /customers/1/9/e/stein-ivar.net/httpd.www/textpattern/lib/txplib_db.php:14) in /customers/1/9/e/stein-ivar.net/httpd.www/textpattern/publish.php on line 477
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.