2 Commits

2 changed files with 7 additions and 1 deletions
@@ -199,7 +199,7 @@ local function Constructor()
button:SetScript("OnKeyDown", Keybinding_OnKeyDown)
button:SetScript("OnMouseDown", Keybinding_OnMouseDown)
button:SetScript("OnMouseWheel", Keybinding_OnMouseWheel)
button:SetScript("OnGamePadButtonDown", Keybinding_OnKeyDown)
pcall(button.SetScript, button, "OnGamePadButtonDown", Keybinding_OnKeyDown)
button:SetPoint("BOTTOMLEFT")
button:SetPoint("BOTTOMRIGHT")
button:SetHeight(24)
+6
View File
@@ -110,6 +110,12 @@ end
-- Receiver
-- ---------------------------------------------------------------------------
-- Register the prefix so CHAT_MSG_ADDON fires for our messages on 3.3.5.
-- Without this, incoming OMSYNC packets are silently discarded by the client.
if RegisterAddonMessagePrefix then
RegisterAddonMessagePrefix(PREFIX)
end
local f = CreateFrame("Frame")
f:RegisterEvent("CHAT_MSG_ADDON")
f:RegisterEvent("PLAYER_LEAVING_WORLD")