mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Moved some code that tied IceStackCounter more tightly to CustomCount than I had wanted into CustomCount itself.
This commit is contained in:
@ -99,7 +99,6 @@ function IceStackCounter_GetOptions(frame)
|
|||||||
v = 5
|
v = 5
|
||||||
end
|
end
|
||||||
frame.moduleSettings.maxCount = tonumber(v)
|
frame.moduleSettings.maxCount = tonumber(v)
|
||||||
frame:CreateCustomFrame(true)
|
|
||||||
frame:Redraw()
|
frame:Redraw()
|
||||||
end,
|
end,
|
||||||
disabled = function()
|
disabled = function()
|
||||||
|
@ -183,7 +183,6 @@ function IceCustomCount.prototype:GetOptions()
|
|||||||
end,
|
end,
|
||||||
set = function(info, v)
|
set = function(info, v)
|
||||||
self.moduleSettings.countMode = info.option.values[v]
|
self.moduleSettings.countMode = info.option.values[v]
|
||||||
self:CreateCustomFrame(true)
|
|
||||||
self:Redraw()
|
self:Redraw()
|
||||||
IceHUD:NotifyOptionsChange()
|
IceHUD:NotifyOptionsChange()
|
||||||
end,
|
end,
|
||||||
@ -289,6 +288,7 @@ function IceCustomCount.prototype:Redraw()
|
|||||||
IceCustomCount.super.prototype.Redraw(self)
|
IceCustomCount.super.prototype.Redraw(self)
|
||||||
|
|
||||||
self:CreateFrame()
|
self:CreateFrame()
|
||||||
|
self:CreateCustomFrame(true)
|
||||||
self:UpdateCustomCount()
|
self:UpdateCustomCount()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user