-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClient.lua
More file actions
20 lines (17 loc) · 743 Bytes
/
Copy pathClient.lua
File metadata and controls
20 lines (17 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local ADDON_NAME, Addon = ...
local function IsRetailClient()
return WOW_PROJECT_MAINLINE ~= nil and WOW_PROJECT_ID == WOW_PROJECT_MAINLINE
end
function Addon.GetCapabilities()
local settingsAvailable = type(Settings) == "table"
and type(Settings.RegisterCanvasLayoutCategory) == "function"
and type(Settings.RegisterAddOnCategory) == "function"
and type(Settings.OpenToCategory) == "function"
return {
isRetail = IsRetailClient(),
hasSettings = not not settingsAvailable,
hasChatAPI = type(FCF_ResetChatWindows) == "function" and type(FCF_OpenNewWindow) == "function",
hasCVarSupport = type(SetCVar) == "function",
hasTimer = C_Timer and C_Timer.After,
}
end