mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- re-added "enabled" checkbox in the settings to allow users to completely enable/disable the mod (this seems to have been something we got for free with one of the ace2 libraries and is no longer present after the move to ace3)
This commit is contained in:
13
IceCore.lua
13
IceCore.lua
@ -39,6 +39,7 @@ function IceCore.prototype:SetupDefaults()
|
||||
local defaultPreset = "RoundBar"
|
||||
self.defaults = {
|
||||
profile = {
|
||||
enable = true,
|
||||
gap = 150,
|
||||
verticalPos = -110,
|
||||
horizontalPos = 0,
|
||||
@ -118,7 +119,11 @@ function IceCore.prototype:CheckDisplayUpdateMessage()
|
||||
end
|
||||
|
||||
|
||||
function IceCore.prototype:Enable()
|
||||
function IceCore.prototype:Enable(userToggle)
|
||||
if userToggle then
|
||||
self.settings.enable = true
|
||||
end
|
||||
|
||||
self:DrawFrame()
|
||||
|
||||
for i = 1, table.getn(self.elements) do
|
||||
@ -269,7 +274,11 @@ function IceCore.prototype:SetModuleDatabases()
|
||||
end
|
||||
|
||||
|
||||
function IceCore.prototype:Disable()
|
||||
function IceCore.prototype:Disable(userToggle)
|
||||
if userToggle then
|
||||
self.settings.enable = false
|
||||
end
|
||||
|
||||
self:ConfigModeToggle(false)
|
||||
|
||||
for i = 1, table.getn(self.elements) do
|
||||
|
Reference in New Issue
Block a user