Compare commits
3 Commits
bb522a6298
...
4618f3630b
Author | SHA1 | Date | |
---|---|---|---|
4618f3630b | |||
588b70a7fb | |||
eb6bb8629b |
@@ -6,10 +6,11 @@ local debug = false
|
||||
|
||||
---@type Channel[]
|
||||
local channels = {
|
||||
{ name = "Horde", password = "garrosh" },
|
||||
{ name = "Horde", password = "garrosh" },
|
||||
{ name = "world_ru", password = nil },
|
||||
{ name = "Agent", password = "agents42" },
|
||||
{ name = "AgentRU", password = "42agents" },
|
||||
{ name = "Agent", password = "agents42" },
|
||||
{ name = "AgentRU", password = "42agents" },
|
||||
{ name = "EssenceAgent", password = nil },
|
||||
}
|
||||
---@type string
|
||||
---@type string[]
|
||||
@@ -26,13 +27,13 @@ local subscribedMessageGroups = {
|
||||
"BATTLEGROUND_LEADER",
|
||||
"INSTANCE_CHAT",
|
||||
"INSTANCE_CHAT_LEADER",
|
||||
"WHISPER"
|
||||
"WHISPER",
|
||||
}
|
||||
---@type string[]
|
||||
local subscribedChannels = {
|
||||
"Agent",
|
||||
"Horde",
|
||||
"Foobar"
|
||||
"Foobar",
|
||||
}
|
||||
|
||||
local function JoinChannels()
|
||||
@@ -45,7 +46,6 @@ local function JoinChannels()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
---@param chatFrameName string
|
||||
---@param groups string[]
|
||||
---@param channels string[]
|
||||
@@ -122,16 +122,14 @@ end
|
||||
|
||||
local function Configure()
|
||||
JoinChannels()
|
||||
--FindOrCreateChatFrame("Auto", subscribedMessageGroups, subscribedChannels)
|
||||
--FindOrCreateChatFrame("world_ru", {}, { "world_ru" })
|
||||
FindOrCreateChatFrame("Horde", {}, { "Horde" })
|
||||
FindOrCreateChatFrame("Auto", subscribedMessageGroups, subscribedChannels)
|
||||
FindOrCreateChatFrame("world_ru", {}, { "world_ru" })
|
||||
-- FindOrCreateChatFrame("Horde", {}, { "Horde" })
|
||||
FindOrCreateChatFrame("AgentRU", {}, { "AgentRU" })
|
||||
FindOrCreateChatFrame("Agent", {}, { "Agent" })
|
||||
-- FindOrCreateChatFrame("Agent", {}, { "Agent" })
|
||||
-- FindOrCreateChatFrame("Agent", {}, { "Agent" })
|
||||
Privjet("Horde")
|
||||
C_Timer.After(1, function()
|
||||
Privjet("Agent")
|
||||
end)
|
||||
C_Timer.After(1, function() Privjet("Agent") end)
|
||||
|
||||
for i = 1, NUM_CHAT_WINDOWS do
|
||||
SetChatWindowSize(i, 14)
|
||||
@@ -143,14 +141,10 @@ frame:RegisterEvent("PLAYER_LOGIN")
|
||||
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||
frame:SetScript("OnEvent", function(self, event, ...)
|
||||
Configure()
|
||||
C_Timer.After(1, function()
|
||||
Configure()
|
||||
end)
|
||||
C_Timer.After(1, function() Configure() end)
|
||||
end)
|
||||
--Configure()
|
||||
|
||||
SlashCmdList["CHANNELER"] = function(msg)
|
||||
Configure()
|
||||
end
|
||||
SlashCmdList["CHANNELER"] = function(msg) Configure() end
|
||||
SLASH_CHANNELER1 = "/fix"
|
||||
SLASH_CHANNELER2 = "/f"
|
||||
|
2
Meta
2
Meta
Submodule Meta updated: ef958d6385...8645a1e99e
1
stylua.toml
Symbolic link
1
stylua.toml
Symbolic link
@@ -0,0 +1 @@
|
||||
C:/Users/Administrator/Seafile/Games-WoW/Ruski/Interface/AddOns/Channeler/Meta/stylua.toml
|
Reference in New Issue
Block a user