-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
_ide_helper.lua
385 lines (270 loc) · 9.15 KB
/
_ide_helper.lua
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
GL = {} ---@type GL
GL.Interface = GL.Interface or {}; ---@type Interface
---@class AceGUIFrame
AceGUIFrame = {};
---@class AceGUISimpleGroup
AceGUISimpleGroup = {};
---@class AceGUIScrollFrame
AceGUIScrollFrame = {};
---@class AceGUIInlineGroup
AceGUIInlineGroup = {};
---@class AceGUILabel
AceGUILabel = {};
---@class AceGUIEditBox
AceGUIEditBox = {};
---@class AceGUICheckBox
AceGUICheckBox = {};
---@class AceGUIMultiLineEditBox
AceGUIMultiLineEditBox = {};
---@class AceGUIDropdown
AceGUIDropdown = {};
---@class AceGUIIcon
AceGUIIcon = {};
---@class AceGUIButton
AceGUIButton = {};
-- [[ GLOBAL ]]
---@param mixed any
function DevTools_Dump(mixed) end
-- [[ AceGUIFrame ]]
---@param value string
function AceGUIFrame:SetStatusText(value) end
---@param Child table
function AceGUIFrame:AddChild(Child) end
function AceGUIFrame:Hide() end
function AceGUIFrame:Show() end
function AceGUIFrame:PauseLayout() end
function AceGUIFrame:DoLayout() end
---@type Frame
AceGUIFrame.frame = Frame;
---@type AceGUISimpleGroup
AceGUIFrame.statustext = {};
-- [[ AceGUISimpleGroup ]]
---@param Child table
function AceGUISimpleGroup:AddChild(Child) end
function AceGUISimpleGroup:Hide() end
function AceGUISimpleGroup:Show() end
function AceGUIFrame:PauseLayout() end
function AceGUIFrame:DoLayout() end
-- [[ AceGUIScrollFrame ]]
---@param Child table
function AceGUIScrollFrame:AddChild(Child) end
function AceGUIScrollFrame:Hide() end
function AceGUIScrollFrame:Show() end
function AceGUIFrame:PauseLayout() end
function AceGUIFrame:DoLayout() end
---@return AceGUIFrame
function AceGUIScrollFrame:GetParent() end
-- [[ AceGUIInlineGroup ]]
---@param Child table
function AceGUIInlineGroup:AddChild(Child) end
function AceGUIInlineGroup:Hide() end
function AceGUIInlineGroup:Show() end
function AceGUIInlineGroup:PauseLayout() end
function AceGUIInlineGroup:DoLayout() end
---@param width number
function AceGUIInlineGroup:SetWidth(width); end
---@param height number
function AceGUIInlineGroup:SetHeight(height); end
---@param trueOrFalse boolean
function AceGUIInlineGroup:SetFullWidth(trueOrFalse); end
---@param trueOrFalse boolean
function AceGUIInlineGroup:SetFullHeight(trueOrFalse); end
---@return AceGUIFrame
function AceGUIInlineGroup:GetParent() end
-- [[ AceGUILabel ]]
---@param value string
function AceGUILabel:SetText(value) end
---@param FontObject table GameFontNormal GameFontNormalSmall GameFontNormalLarge GameFontHighlight GameFontHighlightSmall GameFontHighlightSmallOutline GameFontHighlightLarge GameFontDisable GameFontDisableSmall GameFontDisableLarge GameFontGreen GameFontGreenSmall GameFontGreenLarge GameFontRed GameFontRedSmall GameFontRedLarge GameFontWhite GameFontDarkGraySmall NumberFontNormalYellow NumberFontNormalSmallGray QuestFontNormalSmall DialogButtonHighlightText ErrorFont TextStatusBarText CombatLogFont function
function AceGUILabel:SetFontObject(FontObject) end
---@param trueOrFalse boolean
function AceGUILabel:SetFullWidth(trueOrFalse) end
---@return AceGUIFrame
function AceGUILabel:GetParent() end
function AceGUILabel:Hide() end
function AceGUILabel:Show() end
function AceGUILabel:ClearAllPoints(); end
---@type Frame
AceGUILabel.frame = Frame;
-- [[ AceGUIDropdown ]]
---@param trueOrFalse boolean
function AceGUIDropdown:SetDisabled(trueOrFalse); end
---@param option number
function AceGUIDropdown:SetValue(selectedOption) end;
---@param DropDownItems table
function AceGUIDropdown:SetList(DropDownItems); end
---@param selectedText string
function AceGUIDropdown:SetText(selectedText); end
---@param width number
function AceGUIDropdown:SetWidth(width); end
---@param trueOrFalse boolean
function AceGUIDropdown:SetFullWidth(trueOrFalse); end
---@param onselectDo function
function AceGUIDropdown:SetCallBack(onselectDo); end
function AceGUIDropdown:ClearAllPoints(); end
---@type Frame
AceGUIDropdown.frame = Frame;
--[[ AceGUIEditBox ]]
---@param trueOrFalse boolean
function AceGUIEditBox:SetFullWidth(trueOrFalse); end
---@param trueOrFalse boolean
function AceGUIEditBox:DisableButton(trueOrFalse); end
---@param trueOrFalse boolean
function AceGUIEditBox:SetDisabled(trueOrFalse); end
---@param width number
function AceGUIEditBox:SetWidth(width); end
---@param height number
function AceGUIEditBox:SetHeight(height); end
---@param selectedText string
function AceGUIEditBox:SetText(selectedText); end
---@return string
function AceGUIEditBox:GetText(); end
---@param onChangeDo function
function AceGUIEditBox:SetCallBack(onChangeDo); end
---@param label string
function AceGUIEditBox:SetLabel(label); end
---@param max number 0 = Limitless
function AceGUIEditBox:SetMaxLetters(max); end
function AceGUIEditBox:ClearAllPoints(); end
---@type Frame
AceGUIEditBox.frame = Frame;
--[[ AceGUICheckBox ]]
---@param trueOrFalse boolean
function AceGUICheckBox:SetDisabled(trueOrFalse); end
---@param value boolean
function AceGUICheckBox:SetValue(value); end
---@param onChangeDo function
function AceGUICheckBox:SetCallBack(onChangeDo); end
---@param label string
function AceGUICheckBox:SetLabel(label); end
---@type Frame
AceGUICheckBox.frame = Frame;
--[[ AceGUIMultiLineEditBox ]]
---@param trueOrFalse boolean
function AceGUIMultiLineEditBox:SetFullWidth(trueOrFalse); end
---@param trueOrFalse boolean
function AceGUIMultiLineEditBox:DisableButton(trueOrFalse); end
---@param width number
function AceGUIMultiLineEditBox:SetWidth(width); end
---@param height number
function AceGUIMultiLineEditBox:SetHeight(height); end
---@param selectedText string
function AceGUIMultiLineEditBox:SetText(selectedText); end
---@return string
function AceGUIMultiLineEditBox:GetText(); end
---@param onChangeDo function
function AceGUIMultiLineEditBox:SetCallBack(onChangeDo); end
---@param label string
function AceGUIMultiLineEditBox:SetLabel(label); end
---@param lines number
function AceGUIMultiLineEditBox:SetNumLines(lines); end
---@param max number 0 = Limitless
function AceGUIMultiLineEditBox:SetMaxLetters(max); end
function AceGUIMultiLineEditBox:ClearAllPoints(); end
---@type Frame
AceGUIMultiLineEditBox.frame = Frame;
--[[ AceGUIIcon ]]
---@param width number
function AceGUIIcon:SetWidth(width); end
---@param height number
function AceGUIIcon:SetHeight(height); end
---@param width number
---@param height number
function AceGUIIcon:SetImageSize(width, height); end
---@param location string
function AceGUIIcon:SetImage(location); end
function AceGUIIcon:ClearAllPoints(); end
---@type Frame
AceGUIIcon.frame = Frame;
---@type Frame
AceGUILabel.frame = {};
---@param min number
---@param max number|nil
function RandomRoll(min, max) end
---@param message string The message you'd like to send
---@param chatType string The type of message (SAY|EMOTE|YELL|PARTY|GUILD|OFFICER|RAID|RAID_WARNING|INSTANCE_CHAT|BATTLEGROUND|WHISPER|CHANNEL|AFK|DND)
---@param language string|nil The language of the message (COMMON|ORCISH|etc), if nil it's COMMON for Alliance and ORCISH for Horde
---@param channel string|nil The channel (numeric) or player (name string) receiving the message
function SendChatMessage(message, chatType, language, channel) end
---@param Table table
---@param value any
---@return void
function tinsert(Table, value) end
---@param str string
---@param chars string|nil The chars to trim (defaults to \t\r\n)
---@return string
function strtrim(str, chars) end
---@param Table table
---@param key string|number
---@return void
function tremove(Table, key) end
---@param delimiter string
---@param string string
---@param string2 string
---@param string3 string
---@return string
function strjoin(delimiter, string, string2, string3, ...) end
--- Returns the elements from the given table
---@param list table
---@return any
function unpack(list) end
---@param major string Name of the library
---@param silent boolean
---@return table
function LibStub(major, silent) end
--- Play one of a set of built-in sounds. Other players will not hear the sound.
---@param soundName string
---@param channel string
---@return void
function PlaySound(soundName, channel) end
--[[
Item
]]
---@class Item
Item = {};
---@param id number
---@return Item
function Item:CreateFromItemID(id) end
---@param link string
---@return Item
function Item:CreateFromItemLink(link) end
---@return boolean
function Item:IsItemEmpty() end
---@param callback function
---@return void
function Item:ContinueOnItemLoad(callback) end
--[[
TradeFrame
]]
---@class TradeFrame
TradeFrame = {};
---@return boolean
function TradeFrame:IsShown() end
--[[
GameTooltip
]]
---@class GameTooltip
GameTooltip = {};
--- Return the item name and item link connected to the tooltip
---@return string, string
function GameTooltip:GetItem() end
---@param event string
---@param callback function
---@return void
function GameTooltip:HookScript(event, callback) end
---@param frame table
---@param point string
---@return void
function GameTooltip:SetOwner(frame, point) end
---@param itemLink string
---@return void
function GameTooltip:SetHyperlink(itemLink) end
---@return void
function GameTooltip:Show() end
---@return void
function GameTooltip:Hide() end
---@param text string
---@return void
function GameTooltip:SetText(text) end
---@param line string
---@return void
function GameTooltip:AddLine(line) end