Skip to content

Commit 35dbed0

Browse files
committed
Misc fixes
1 parent 991580e commit 35dbed0

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/Classes/Control.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ local rect = {
3535
--]]
3636

3737
---@class Control
38+
---@field enabled boolean | fun(...: any): boolean
39+
---@field onFocusGained? fun()
40+
---@field onFocusLost? fun()
3841
local ControlClass = newClass("Control")
3942

4043
---@alias ControlAnchor [AnchorPoint, Control|ControlHost, AnchorPoint, number|nil]

src/Classes/GemSelectControl.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ local imbuedTooltipText = "\"Socketed in\" item must be set in order to add an i
1717
---@class GemSelectControl: EditControl
1818
local GemSelectClass = newClass("GemSelectControl", "EditControl")
1919

20+
---@param anchor ControlAnchor
21+
---@param rect ControlRect
22+
---@param skillsTab SkillsTab
23+
---@param index integer
24+
---@param changeFunc fun(...)
25+
---@param forceTooltip boolean
26+
---@param imbued boolean
2027
function GemSelectClass:GemSelectControl(anchor, rect, skillsTab, index, changeFunc, forceTooltip, imbued)
2128
self.EditControl(anchor, rect, nil, nil, "^ %a':-")
2229
self.controls.scrollBar = new("ScrollBarControl", { "TOPRIGHT", self, "TOPRIGHT" }, {-1, 0, 18, 0}, (self.height - 4) * 4)
@@ -489,7 +496,7 @@ function GemSelectClass:Draw(viewPort, noTooltip)
489496
SetViewport()
490497
self:DrawControls(viewPort, (noTooltip and not self.forceTooltip) and self)
491498
if self.hoverSel then
492-
local calcFunc, calcBase = self.skillsTab.build.calcsTab:GetMiscCalculator(self.build)
499+
local calcFunc, calcBase = self.skillsTab.build.calcsTab:GetMiscCalculator()
493500
if calcFunc then
494501
self.tooltip:Clear()
495502
local gemData = self.gems[self.list[self.hoverSel]]

src/Modules/Data.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ end
103103
-- Remaining Item Data and uniques
104104
----------------------------------------
105105

106+
---@diagnostic disable-next-line: lowercase-global
106107
data = { }
107108

108109
-- Misc data tables

0 commit comments

Comments
 (0)