forked from Cidan/BetterBags
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathannotations.lua
More file actions
227 lines (176 loc) · 6.14 KB
/
annotations.lua
File metadata and controls
227 lines (176 loc) · 6.14 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
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
---@meta
---@class ItemButton: Button
---@field bagID number
---@field NewItemTexture Texture
---@field minDisplayCount number
---@field NormalTexture Texture
---@field PushedTexture Texture
---@field HighlightTexture Texture
---@field BattlepayItemTexture Texture
local itemButton = {}
---@param bagid number
function itemButton:SetBagID(bagid) end
---@param hasItem string|number|boolean
function itemButton:UpdateCooldown(hasItem) end
---@param texture string|number
function itemButton:SetItemButtonTexture(texture) end
---@param hasItem string|number|boolean
function itemButton:SetHasItem(hasItem) end
function itemButton:UpdateExtended() end
function itemButton:UpdateQuestItem(isQuestItem, questID, isActive) end
function itemButton:UpdateNewItem(quality) end
function itemButton:UpdateJunkItem(quality, noValue) end
function itemButton:UpdateItemContextMatching() end
function itemButton:SetReadable(readable) end
function itemButton:CheckUpdateTooltip(tooltipOwner) end
function itemButton:SetMatchesSearch(matchesSearch) end
function itemButton:SetItemButtonQuality(quality) end
function itemButton:HasItem() end
---@class Button
local Button = {}
function Button:RegisterForClicks(...) end
---@return Texture
function itemButton:GetHighlightTexture() end
---@class ContinuableContainer
ContinuableContainer = {}
---@class MasqueGroup
MasqueGroup = {}
function MasqueGroup:AddButton(group, button) end
function MasqueGroup:RemoveButton(group, button) end
---@class Masque
Masque = {}
---@param name string
---@param group string
---@return MasqueGroup
function Masque:Group(name, group) end
---@class LibWindow-1.1
Window = {}
function Window.RegisterConfig(frame, config) end
function Window.SavePosition(frame) end
function Window.RestorePosition(frame) end
---@class ContainerFrameCombinedBags: Frame
ContainerFrameCombinedBags = {}
---@class BankFrame: Frame
BankFrame = {}
---@class BagsBar: Frame
BagsBar = {}
---@class MainMenuBarBackpackButton: Button
MainMenuBarBackpackButton = {}
---@class BagBarExpandToggle: Button
BagBarExpandToggle = {}
---@class DLAPI
DLAPI = {}
function DLAPI.RegisterFormat(name, format) end
function DLAPI.SetFormat(name, format) end
function DLAPI.DebugLog(category, message) end
---@param createFunc fun(): any
---@param resetFunc fun(any)
---@return ObjectPool
function CreateObjectPool(createFunc, resetFunc) end
---@class ObjectPool
local ObjectPool = {}
---@return any
function ObjectPool:Acquire() end
function ObjectPool:Release(o) end
function ObjectPool:SetResetDisallowedIfNew() end
---@class LibUIDropDownMenu-4.0
local LibUIDropDownMenu = {}
---@param name string
---@param parent Frame
---@return frame
function LibUIDropDownMenu:Create_UIDropDownMenu(name, parent) end
function LibUIDropDownMenu:EasyMenu_Initialize(frame, level, menuList, anchor, x, y, displayMode, autoHideDelay) end
function LibUIDropDownMenu:EasyMenu(menuList, frame, anchor, x, y, displayMode, autoHideDelay) end
function LibUIDropDownMenu:HideDropDownMenu(level) end
---@class SearchBox: EditBox
---@field Instructions FontString
local SearchBox = {}
---@class BetterBagsBagPortraitTemplate
---@field Bg Texture
---@field PortraitContainer Frame
---@field CloseButton Button
---@field SearchBox SearchBox
local BetterBagsBagPortraitTemplate = {}
function BetterBagsBagPortraitTemplate:SetPortraitToAsset(texture) end
function BetterBagsBagPortraitTemplate:SetPortraitTextureSizeAndOffset(size, offsetX, offsetY) end
function BetterBagsBagPortraitTemplate:SetTitle(title) end
---@class FontString
local FontString = {}
function FontString:SetScript(event, func) end
---@class WowScrollBox: Frame
local WowScrollBox = {}
function WowScrollBox:SetInterpolateScroll(interpolate) end
function WowScrollBox:ScrollInDirection(percent, direction) end
function WowScrollBox:FullUpdate() end
function WowScrollBox:OnMouseWheel(delta) end
---@class Frame
---@field scrollable boolean
local frameProto = {}
---@class MinimalScrollBar: Frame
local MinimalScrollBar = {}
function MinimalScrollBar:SetInterpolateScroll(interpolate) end
---@class EventFrame
local EventFrame = {}
---@param location number
---@return boolean, boolean, boolean, boolean, number, number
function EquipmentManager_UnpackLocation(location) end
-- ItemInfo is the information about an item that is returned by GetItemInfo.
---@class (exact) ExpandedItemInfo
---@field itemID number
---@field itemGUID string
---@field itemName string
---@field itemLink string
---@field itemQuality Enum.ItemQuality
---@field itemLevel number
---@field itemMinLevel number
---@field itemType string
---@field itemSubType string
---@field itemStackCount number
---@field itemEquipLoc string
---@field itemTexture number
---@field sellPrice number
---@field classID Enum.ItemClass
---@field subclassID number
---@field bindType Enum.ItemBind
---@field expacID ExpansionType
---@field setID number
---@field isCraftingReagent boolean
---@field effectiveIlvl number
---@field isPreview boolean
---@field baseIlvl number
---@field itemIcon? number
---@field isBound boolean
---@field isLocked boolean
---@field isNewItem boolean
---@field currentItemCount number
---@field category string
---@field currentItemLevel number
---@field equipmentSet string|nil
---@return Frame
function CreateScrollBoxLinearView() end
---@param itemLink string
---@return number, boolean, number
function GetDetailedItemLevelInfo(itemLink) end
_G.LE_EXPANSION_CLASSIC = 0
_G.LE_EXPANSION_BURNING_CRUSADE = 1
_G.LE_EXPANSION_WRATH_OF_THE_LICH_KING = 2
_G.LE_EXPANSION_CATACLYSM = 3
_G.LE_EXPANSION_MISTS_OF_PANDARIA = 4
_G.LE_EXPANSION_WARLORDS_OF_DRAENOR = 5
_G.LE_EXPANSION_LEGION = 6
_G.LE_EXPANSION_BATTLE_FOR_AZEROTH = 7
_G.LE_EXPANSION_SHADOWLANDS = 8
_G.LE_EXPANSION_DRAGONFLIGHT = 9
-- Write out all the expansion names.
_G.EXPANSION_NAME0 = "Classic"
_G.EXPANSION_NAME1 = "The Burning Crusade"
_G.EXPANSION_NAME2 = "Wrath of the Lich King"
_G.EXPANSION_NAME3 = "Cataclysm"
_G.EXPANSION_NAME4 = "Mists of Pandaria"
_G.EXPANSION_NAME5 = "Warlords of Draenor"
_G.EXPANSION_NAME6 = "Legion"
_G.EXPANSION_NAME7 = "Battle for Azeroth"
_G.EXPANSION_NAME8 = "Shadowlands"
_G.EXPANSION_NAME9 = "Dragonflight"
_G.BANK_BAG_PURCHASE = "Purchasable Bag Slot"
_G.COSTS_LABEL = "Cost:"