Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 76d441e409 | |||
| 7c5fb74e20 |
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user