mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- big giant options screen usability cleanup:
- colorized the FAQ and Module Settings description text to be more readable - removed custom coloring from certain options that didn't match the rest - hid a few debug-only settings - consolidated all the 'create custom module' buttons into a drop-down + create button - clarified description of some options so that their intent/purpose is more clear - moved around/cleaned up headers for consistency - doubled the width of long options so that they don't get cut off and ...'d
This commit is contained in:
@ -7,7 +7,7 @@ ComboPoints.prototype.comboSize = 20
|
||||
-- Constructor --
|
||||
function ComboPoints.prototype:init()
|
||||
ComboPoints.super.prototype.init(self, "ComboPoints")
|
||||
|
||||
|
||||
self:SetDefaultColor("ComboPoints", 1, 1, 0)
|
||||
self.scalingEnabled = true
|
||||
end
|
||||
@ -21,6 +21,12 @@ end
|
||||
function ComboPoints.prototype:GetOptions()
|
||||
local opts = ComboPoints.super.prototype.GetOptions(self)
|
||||
|
||||
opts["headerLookAndFeel"] = {
|
||||
type = 'header',
|
||||
name = 'Look and Feel',
|
||||
order = 29.9
|
||||
}
|
||||
|
||||
opts["vpos"] = {
|
||||
type = "range",
|
||||
name = "Vertical Position",
|
||||
@ -179,7 +185,7 @@ end
|
||||
-- OVERRIDE
|
||||
function ComboPoints.prototype:Redraw()
|
||||
ComboPoints.super.prototype.Redraw(self)
|
||||
|
||||
|
||||
self:CreateFrame()
|
||||
self:UpdateComboPoints()
|
||||
end
|
||||
@ -188,7 +194,7 @@ end
|
||||
-- OVERRIDE
|
||||
function ComboPoints.prototype:Enable(core)
|
||||
ComboPoints.super.prototype.Enable(self, core)
|
||||
|
||||
|
||||
self:RegisterEvent("PLAYER_TARGET_CHANGED", "UpdateComboPoints")
|
||||
if IceHUD.WowVer >= 30000 then
|
||||
self:RegisterEvent("UNIT_COMBO_POINTS", "UpdateComboPoints")
|
||||
@ -223,7 +229,7 @@ function ComboPoints.prototype:CreateFrame()
|
||||
end
|
||||
self.frame:ClearAllPoints()
|
||||
self.frame:SetPoint("TOP", self.parent, "BOTTOM", self.moduleSettings.hpos, self.moduleSettings.vpos)
|
||||
|
||||
|
||||
self:Show(true)
|
||||
|
||||
self:CreateComboFrame()
|
||||
@ -348,7 +354,7 @@ function ComboPoints.prototype:UpdateComboPoints()
|
||||
else
|
||||
self.frame.graphicalBG[i]:Hide()
|
||||
end
|
||||
|
||||
|
||||
if (points ~= nil and i <= points) then
|
||||
self.frame.graphical[i]:Show()
|
||||
else
|
||||
|
Reference in New Issue
Block a user