-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtypes.lua
More file actions
58 lines (51 loc) · 2.51 KB
/
types.lua
File metadata and controls
58 lines (51 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---@meta
-- Type definitions for LuaLS (lua-language-server)
-- This file is NOT loaded by WoW - it's only used for type checking during development
-- WoW API types (stubs with commonly used methods)
---@class Frame
---@field Show fun(self: Frame)
---@field Hide fun(self: Frame)
---@field IsShown fun(self: Frame): boolean
---@field SetPoint fun(self: Frame, point: string, relativeTo?: any, relativePoint?: string|number, x?: number, y?: number)
---@field GetParent fun(self: Frame): Frame?
---@field GetWidth fun(self: Frame): number
---@field GetHeight fun(self: Frame): number
---@field CreateFontString fun(self: Frame, name?: string, layer?: string, inherits?: string): FontString
---@class Button: Frame
---@class Texture
---@field SetAllPoints fun(self: Texture, target?: any)
---@field SetTexCoord fun(self: Texture, left: number, right: number, top: number, bottom: number)
---@field SetTexture fun(self: Texture, texture: number|string)
---@field SetAtlas fun(self: Texture, atlas: string)
---@field SetSize fun(self: Texture, width: number, height: number)
---@field Show fun(self: Texture)
---@field Hide fun(self: Texture)
---@class FontString
---@field SetFont fun(self: FontString, font: string, size: number, flags?: string)
---@field SetText fun(self: FontString, text: string)
---@field SetTextColor fun(self: FontString, r: number, g: number, b: number, a?: number)
---@field ClearAllPoints fun(self: FontString)
---@field SetPoint fun(self: FontString, point: string, relativeTo?: any, relativePoint?: string, x?: number, y?: number)
---@field GetParent fun(self: FontString): Frame?
---@field Show fun(self: FontString)
---@field Hide fun(self: FontString)
---@class AnimationGroup
---@alias TooltipText {title: string, desc?: string}
---@alias SpellID number|number[]
---@alias ClassName "WARRIOR"|"PALADIN"|"HUNTER"|"ROGUE"|"PRIEST"|"DEATHKNIGHT"|"SHAMAN"|"MAGE"|"WARLOCK"|"MONK"|"DRUID"|"DEMONHUNTER"|"EVOKER"
---@alias RoleType "TANK"|"HEALER"|"DAMAGER"
---@alias SpecID number
---@alias BuffBeneficiaries table<string, table<ClassName, boolean>>
---@alias SpecBeneficiaries table<string, table<SpecID, boolean>>
---@class LoadConditions
---@field openWorld? boolean
---@field dungeon? boolean
---@field scenario? boolean
---@field raid? boolean
---@field housing? boolean
---@field pvp? boolean
---@field readyCheckOnly? boolean
---@field levelFilter? "maxLevel"|"belowMaxLevel"
---@field scenarioDifficulty? table<string, boolean>
---@field dungeonDifficulty? table<string, boolean>
---@field raidDifficulty? table<string, boolean>