Compare commits
4 Commits
edf8a12865
...
1168876dcc
Author | SHA1 | Date | |
---|---|---|---|
1168876dcc | |||
bdf5afe436 | |||
85ff907f05 | |||
7ae9db030b |
@@ -542,12 +542,6 @@ loadedFrame:SetScript("OnEvent", function(self, event, addonName)
|
||||
if addonName == addonname then init() end
|
||||
end)
|
||||
|
||||
local loadedFrame = CreateFrame("Frame")
|
||||
loadedFrame:RegisterEvent("ADDON_LOADED")
|
||||
loadedFrame:SetScript("OnEvent", function(self, event, addonName)
|
||||
if addonName == addonname then init() end
|
||||
end)
|
||||
|
||||
-- Create the import/export frame
|
||||
local ccpFrame = CreateFrame("Frame", "CCPFrame", UIParent)
|
||||
ccpFrame:SetSize(512 * 1.5, 512 * 1.5)
|
||||
|
@@ -46,29 +46,29 @@ shared.Messenger = {
|
||||
|
||||
if not shared.messenger.ticker then
|
||||
local function DoMessage()
|
||||
if Heimdall_Data.config.messenger.debug then
|
||||
print(
|
||||
string.format(
|
||||
"[%s] Processing message queue - Size: %d",
|
||||
ModuleName,
|
||||
#shared.messenger.queue:get()
|
||||
)
|
||||
)
|
||||
end
|
||||
-- if Heimdall_Data.config.messenger.debug then
|
||||
-- print(
|
||||
-- string.format(
|
||||
-- "[%s] Processing message queue - Size: %d",
|
||||
-- ModuleName,
|
||||
-- #shared.messenger.queue:get()
|
||||
-- )
|
||||
-- )
|
||||
-- end
|
||||
|
||||
if not Heimdall_Data.config.messenger.enabled then
|
||||
if Heimdall_Data.config.messenger.debug then
|
||||
print(string.format("[%s] Module disabled, skipping message processing", ModuleName))
|
||||
end
|
||||
-- if Heimdall_Data.config.messenger.debug then
|
||||
-- print(string.format("[%s] Module disabled, skipping message processing", ModuleName))
|
||||
-- end
|
||||
return
|
||||
end
|
||||
|
||||
---@type Message
|
||||
local message = shared.messenger.queue:get()[1]
|
||||
local message = shared.messenger.queue[1]
|
||||
if not message then
|
||||
if Heimdall_Data.config.messenger.debug then
|
||||
print(string.format("[%s] Message queue empty", ModuleName))
|
||||
end
|
||||
-- if Heimdall_Data.config.messenger.debug then
|
||||
-- print(string.format("[%s] Message queue empty", ModuleName))
|
||||
-- end
|
||||
return
|
||||
end
|
||||
|
||||
@@ -159,9 +159,9 @@ shared.Messenger = {
|
||||
SendChatMessage(message.message, message.channel, nil, message.data)
|
||||
end
|
||||
local function Tick()
|
||||
if Heimdall_Data.config.messenger.debug then
|
||||
print(string.format("[%s] Tick - Queue size: %d", ModuleName, #shared.messenger.queue:get()))
|
||||
end
|
||||
-- if Heimdall_Data.config.messenger.debug then
|
||||
-- print(string.format("[%s] Tick - Queue size: %d", ModuleName, #shared.messenger.queue:get()))
|
||||
-- end
|
||||
DoMessage()
|
||||
shared.messenger.ticker = C_Timer.NewTimer(Heimdall_Data.config.messenger.interval, Tick, 1)
|
||||
end
|
||||
|
@@ -689,6 +689,7 @@ shared.Whoer = {
|
||||
print(
|
||||
string.format("[%s] Error: No WHO query found to run at index %d", ModuleName, whoQueryIdx)
|
||||
)
|
||||
whoQueryIdx = 1
|
||||
end
|
||||
return
|
||||
end
|
||||
@@ -724,8 +725,8 @@ shared.Whoer = {
|
||||
Tick()
|
||||
end
|
||||
local original_FriendsFrame_OnEvent = FriendsFrame_OnEvent
|
||||
local function my_FriendsFrame_OnEvent(event)
|
||||
if not (event == "WHO_LIST_UPDATE" and whoWaiting) then original_FriendsFrame_OnEvent() end
|
||||
local function my_FriendsFrame_OnEvent(self, event, ...)
|
||||
if not (event == "WHO_LIST_UPDATE" and whoWaiting) then original_FriendsFrame_OnEvent(self, event, ...) end
|
||||
end
|
||||
FriendsFrame_OnEvent = my_FriendsFrame_OnEvent
|
||||
|
||||
|
Reference in New Issue
Block a user