WIP: Temporary V35 Retail build #5
@@ -8,11 +8,15 @@ BINDING_HEADER_OUTLINE = "Outline"
|
|||||||
local frame = CreateFrame("Frame")
|
local frame = CreateFrame("Frame")
|
||||||
frame:RegisterEvent("ADDON_LOADED")
|
frame:RegisterEvent("ADDON_LOADED")
|
||||||
frame:RegisterEvent("PLAYER_LOGIN")
|
frame:RegisterEvent("PLAYER_LOGIN")
|
||||||
|
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
|
||||||
|
|
||||||
frame:SetScript("OnEvent", function()
|
frame:SetScript("OnEvent", function()
|
||||||
if event == "PLAYER_LOGIN" then
|
if event == "PLAYER_LOGIN" then
|
||||||
|
OutlineSyncTarget()
|
||||||
local on = OutlineCommand()
|
local on = OutlineCommand()
|
||||||
DEFAULT_CHAT_FRAME:AddMessage("|cff00ff00Outline|r v" .. OUTLINE_VERSION .. " loaded (" .. (on and "enabled" or "disabled") .. ")")
|
DEFAULT_CHAT_FRAME:AddMessage("|cff00ff00Outline|r v" .. OUTLINE_VERSION .. " loaded (" .. (on and "enabled" or "disabled") .. ")")
|
||||||
|
elseif event == "PLAYER_TARGET_CHANGED" then
|
||||||
|
OutlineSyncTarget()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user