Add a bunch of globals relating to chat frames
This commit is contained in:
56
Globals.lua
56
Globals.lua
@@ -1,5 +1,4 @@
|
|||||||
---@meta
|
---@meta
|
||||||
|
|
||||||
---@type Frame
|
---@type Frame
|
||||||
UIParent = {}
|
UIParent = {}
|
||||||
|
|
||||||
@@ -14,3 +13,58 @@ BattlefieldMinimapBackground = {}
|
|||||||
BattlefieldMinimapCloseButton = {}
|
BattlefieldMinimapCloseButton = {}
|
||||||
---@type Frame
|
---@type Frame
|
||||||
BattlefieldMinimapCorner = {}
|
BattlefieldMinimapCorner = {}
|
||||||
|
|
||||||
|
---@type number
|
||||||
|
NUM_CHAT_WINDOWS = 0
|
||||||
|
|
||||||
|
---@param frame Frame
|
||||||
|
---@return boolean
|
||||||
|
FCF_IsValidChatFrame = function(frame) end
|
||||||
|
|
||||||
|
---@param name string
|
||||||
|
---@return boolean
|
||||||
|
FCF_OpenNewWindow = function(name) end
|
||||||
|
|
||||||
|
---@param name string
|
||||||
|
---@return boolean
|
||||||
|
FCF_OpenToChatFrame = function(name) end
|
||||||
|
|
||||||
|
---@param frame Frame
|
||||||
|
---@param messageGroup string
|
||||||
|
---@return nil
|
||||||
|
ChatFrame_AddMessageGroup = function(frame, messageGroup) end
|
||||||
|
|
||||||
|
---@param frame Frame
|
||||||
|
---@param messageGroup string
|
||||||
|
---@return nil
|
||||||
|
ChatFrame_RemoveMessageGroup = function(frame, messageGroup) end
|
||||||
|
|
||||||
|
---@param frame Frame
|
||||||
|
---@return nil
|
||||||
|
ChatFrame_RemoveAllMessageGroups = function(frame) end
|
||||||
|
|
||||||
|
---@param frame Frame
|
||||||
|
---@param channel string
|
||||||
|
---@return nil
|
||||||
|
ChatFrame_AddChannel = function(frame, channel) end
|
||||||
|
|
||||||
|
---@param frame Frame
|
||||||
|
---@param channel string
|
||||||
|
---@return nil
|
||||||
|
ChatFrame_RemoveChannel = function(frame, channel) end
|
||||||
|
|
||||||
|
---@param frame Frame
|
||||||
|
---@return nil
|
||||||
|
ChatFrame_RemoveAllChannels = function(frame) end
|
||||||
|
|
||||||
|
-- Just simply chat frames, global variables
|
||||||
|
---@type Frame
|
||||||
|
ChatFrame1 = {}
|
||||||
|
---@type Frame
|
||||||
|
ChatFrame2 = {}
|
||||||
|
---@type Frame
|
||||||
|
ChatFrame3 = {}
|
||||||
|
---@type Frame
|
||||||
|
ChatFrame4 = {}
|
||||||
|
---@type Frame
|
||||||
|
ChatFrame5 = {}
|
||||||
|
@@ -19,5 +19,5 @@
|
|||||||
---@param chatType channel
|
---@param chatType channel
|
||||||
---Sends a chat message
|
---Sends a chat message
|
||||||
---@overload fun(text: string, chatType: channel, languageIndex: number|nil)
|
---@overload fun(text: string, chatType: channel, languageIndex: number|nil)
|
||||||
---@overload fun(text: string, chatType: channel, languageIndex: number|nil, channel: string)
|
---@overload fun(text: string, chatType: channel, languageIndex: number|nil, channel: number)
|
||||||
function SendChatMessage(text, chatType, languageIndex, channel) end
|
function SendChatMessage(text, chatType, languageIndex, channel) end
|
||||||
|
Reference in New Issue
Block a user