mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- added user-requested per-bar vertical offsets and setup pet and focus bars to fit within the vertical center of the hud
This commit is contained in:
@ -87,6 +87,7 @@ function IceBarElement.prototype:GetDefaultSettings()
|
||||
settings["myTagVersion"] = 2
|
||||
settings["widthModifier"] = 0
|
||||
settings["usesDogTagStrings"] = true
|
||||
settings["barVerticalOffset"] = 0
|
||||
|
||||
return settings
|
||||
end
|
||||
@ -264,6 +265,26 @@ function IceBarElement.prototype:GetOptions()
|
||||
end
|
||||
}
|
||||
|
||||
opts["barVerticalOffset"] =
|
||||
{
|
||||
type='range',
|
||||
name = '|c' .. self.configColor .. 'Bar vertical offset|r',
|
||||
desc = 'Adjust the vertical placement of this bar',
|
||||
min = -100,
|
||||
max = 100,
|
||||
step = 1,
|
||||
get = function()
|
||||
return self.moduleSettings.barVerticalOffset
|
||||
end,
|
||||
set = function(v)
|
||||
self.moduleSettings.barVerticalOffset = v
|
||||
self:Redraw()
|
||||
end,
|
||||
disabled = function()
|
||||
return not self.moduleSettings.enabled
|
||||
end
|
||||
}
|
||||
|
||||
opts["textSettings"] =
|
||||
{
|
||||
type = 'group',
|
||||
@ -515,7 +536,7 @@ function IceBarElement.prototype:CreateBackground()
|
||||
end
|
||||
|
||||
self.frame:ClearAllPoints()
|
||||
self.frame:SetPoint("BOTTOM"..ownPoint, self.parent, "BOTTOM"..self.moduleSettings.side, offx, 0)
|
||||
self.frame:SetPoint("BOTTOM"..ownPoint, self.parent, "BOTTOM"..self.moduleSettings.side, offx, self.moduleSettings.barVerticalOffset)
|
||||
end
|
||||
|
||||
|
||||
|
@ -36,6 +36,7 @@ function FocusHealth.prototype:GetDefaultSettings()
|
||||
settings["raidIconYOffset"] = 0
|
||||
settings["lockIconAlpha"] = false
|
||||
settings["abbreviateHealth"] = true
|
||||
settings["barVerticalOffset"] = 35
|
||||
|
||||
return settings
|
||||
end
|
||||
|
@ -23,6 +23,7 @@ function FocusMana.prototype:GetDefaultSettings()
|
||||
settings["scale"] = 0.7
|
||||
settings["upperText"] = "[PercentMP:Round]"
|
||||
settings["lowerText"] = ""
|
||||
settings["barVerticalOffset"] = 35
|
||||
|
||||
return settings
|
||||
end
|
||||
|
@ -27,6 +27,7 @@ function PetHealth.prototype:GetDefaultSettings()
|
||||
settings["textVerticalOffset"] = 4
|
||||
settings["upperText"] = "[PercentHP:Round]"
|
||||
settings["lowerText"] = ""
|
||||
settings["barVerticalOffset"] = 35
|
||||
|
||||
return settings
|
||||
end
|
||||
|
@ -25,6 +25,7 @@ function PetMana.prototype:GetDefaultSettings()
|
||||
settings["textVerticalOffset"] = 4
|
||||
settings["upperText"] = "[PercentMP:Round]"
|
||||
settings["lowerText"] = ""
|
||||
settings["barVerticalOffset"] = 35
|
||||
|
||||
return settings
|
||||
end
|
||||
|
Reference in New Issue
Block a user