mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed an error when selecting the ArcHUD preset
- set the config to refresh itself when a new preset is selected so that the config screen is updated
This commit is contained in:
11
IceCore.lua
11
IceCore.lua
@ -20,6 +20,8 @@ IceCore.prototype.presets = {}
|
|||||||
IceCore.prototype.settingsHash = nil
|
IceCore.prototype.settingsHash = nil
|
||||||
IceCore.prototype.bConfigMode = false
|
IceCore.prototype.bConfigMode = false
|
||||||
|
|
||||||
|
local waterfall = AceLibrary("Waterfall-1.0")
|
||||||
|
|
||||||
-- Constructor --
|
-- Constructor --
|
||||||
function IceCore.prototype:init()
|
function IceCore.prototype:init()
|
||||||
IceCore.super.prototype.init(self)
|
IceCore.super.prototype.init(self)
|
||||||
@ -55,7 +57,10 @@ function IceCore.prototype:init()
|
|||||||
barTexture = "Bar",
|
barTexture = "Bar",
|
||||||
barPreset = defaultPreset,
|
barPreset = defaultPreset,
|
||||||
fontFamily = "Arial Narrow",
|
fontFamily = "Arial Narrow",
|
||||||
debug = false
|
debug = false,
|
||||||
|
|
||||||
|
barBlendMode = "BLEND",
|
||||||
|
barBgBlendMode = "BLEND",
|
||||||
}
|
}
|
||||||
|
|
||||||
self:LoadPresets()
|
self:LoadPresets()
|
||||||
@ -375,6 +380,8 @@ function IceCore.prototype:ChangePreset(value)
|
|||||||
self:SetBarProportion(self.presets[value].barProportion)
|
self:SetBarProportion(self.presets[value].barProportion)
|
||||||
self:SetBarBlendMode(self.presets[value].barBlendMode)
|
self:SetBarBlendMode(self.presets[value].barBlendMode)
|
||||||
self:SetBarBgBlendMode(self.presets[value].barBgBlendMode)
|
self:SetBarBgBlendMode(self.presets[value].barBgBlendMode)
|
||||||
|
|
||||||
|
waterfall:Refresh("IceHUD")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -532,6 +539,8 @@ function IceCore.prototype:LoadPresets()
|
|||||||
barHeight = 300,
|
barHeight = 300,
|
||||||
barProportion = 0.15,
|
barProportion = 0.15,
|
||||||
barSpace = 3,
|
barSpace = 3,
|
||||||
|
barBlendMode = "BLEND",
|
||||||
|
barBgBlendMode = "BLEND",
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user