- first shot at localization of all configuration settings in IceHUD using AceLocale. note that all of these conversions were generated programmatically so it's possible that something went awry...very casual testing seemed okay, however.

This commit is contained in:
Parnic
2010-09-26 05:14:42 +00:00
parent 4bf79adda5
commit 08861ecfe7
65 changed files with 856 additions and 746 deletions

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local DogTag = nil local DogTag = nil
IceBarElement = IceCore_CreateClass(IceElement) IceBarElement = IceCore_CreateClass(IceElement)
@ -120,14 +121,14 @@ function IceBarElement.prototype:GetOptions()
opts["headerLookAndFeel"] = { opts["headerLookAndFeel"] = {
type = 'header', type = 'header',
name = 'Look and Feel', name = L["Look and Feel"],
order = 29.9 order = 29.9
} }
opts["side"] = opts["side"] =
{ {
type = 'select', type = 'select',
name = 'Side|r', name = L["Side"],
desc = 'Side of the HUD where the bar appears', desc = L["Side of the HUD where the bar appears"],
get = function(info) get = function(info)
if (self.moduleSettings.side == IceCore.Side.Right) then if (self.moduleSettings.side == IceCore.Side.Right) then
return 2 return 2
@ -153,8 +154,8 @@ function IceBarElement.prototype:GetOptions()
opts["offset"] = opts["offset"] =
{ {
type = 'range', type = 'range',
name = 'Offset', name = L["Offset"],
desc = 'Offset of the bar', desc = L["Offset of the bar"],
min = -10, min = -10,
max = 15, max = 15,
step = 1, step = 1,
@ -174,8 +175,8 @@ function IceBarElement.prototype:GetOptions()
opts["scale"] = opts["scale"] =
{ {
type = 'range', type = 'range',
name = 'Scale', name = L["Scale"],
desc = 'Scale of the bar', desc = L["Scale of the bar"],
min = 0.1, min = 0.1,
max = 2, max = 2,
step = 0.05, step = 0.05,
@ -196,8 +197,8 @@ function IceBarElement.prototype:GetOptions()
opts["inverse"] = opts["inverse"] =
{ {
type = 'toggle', type = 'toggle',
name = 'Invert bar', name = L["Invert bar"],
desc = 'Controls which direction the bar fills up. With this checked, the bar will fill opposite from normal (e.g. for health: 0% at the top, 100% at the bottom).', desc = L["Controls which direction the bar fills up. With this checked, the bar will fill opposite from normal (e.g. for health: 0% at the top, 100% at the bottom)."],
get = function() get = function()
return self.moduleSettings.inverse return self.moduleSettings.inverse
end, end,
@ -215,8 +216,8 @@ function IceBarElement.prototype:GetOptions()
opts["reverse"] = opts["reverse"] =
{ {
type = 'toggle', type = 'toggle',
name = 'Reverse direction', name = L["Reverse direction"],
desc = "Controls what it means for the bar to be filled. A normal bar will grow larger as the value grows from 0% to 100%. A reversed bar will shrink as the value grows from 0% to 100%.", desc = L["Controls what it means for the bar to be filled. A normal bar will grow larger as the value grows from 0% to 100%. A reversed bar will shrink as the value grows from 0% to 100%."],
get = function() get = function()
return self.moduleSettings.reverse return self.moduleSettings.reverse
end, end,
@ -233,8 +234,8 @@ function IceBarElement.prototype:GetOptions()
opts["barVisible"] = { opts["barVisible"] = {
type = 'toggle', type = 'toggle',
name = 'Bar visible', name = L["Bar visible"],
desc = 'Toggle bar visibility', desc = L["Toggle bar visibility"],
get = function() get = function()
return self.moduleSettings.barVisible['bar'] return self.moduleSettings.barVisible['bar']
end, end,
@ -254,8 +255,8 @@ function IceBarElement.prototype:GetOptions()
opts["bgVisible"] = { opts["bgVisible"] = {
type = 'toggle', type = 'toggle',
name = 'Bar background visible', name = L["Bar background visible"],
desc = 'Toggle bar background visibility', desc = L["Toggle bar background visibility"],
get = function() get = function()
return self.moduleSettings.barVisible['bg'] return self.moduleSettings.barVisible['bg']
end, end,
@ -275,14 +276,14 @@ function IceBarElement.prototype:GetOptions()
if not self.moduleSettings.hideAnimationSettings then if not self.moduleSettings.hideAnimationSettings then
opts["headerAnimation"] = { opts["headerAnimation"] = {
type = 'header', type = 'header',
name = 'Animation Settings', name = L["Animation Settings"],
order = 110 order = 110
} }
opts["shouldAnimate"] = opts["shouldAnimate"] =
{ {
type = 'toggle', type = 'toggle',
name = 'Animate changes', name = L["Animate changes"],
desc = 'Whether or not to animate the bar falloffs/gains', desc = L["Whether or not to animate the bar falloffs/gains"],
get = function() get = function()
return self.moduleSettings.shouldAnimate return self.moduleSettings.shouldAnimate
end, end,
@ -299,8 +300,8 @@ if not self.moduleSettings.hideAnimationSettings then
opts["desiredLerpTime"] = opts["desiredLerpTime"] =
{ {
type = 'range', type = 'range',
name = 'Animation Duration', name = L["Animation Duration"],
desc = 'How long the animation should take to play', desc = L["How long the animation should take to play"],
min = 0, min = 0,
max = 2, max = 2,
step = 0.05, step = 0.05,
@ -320,8 +321,8 @@ end
opts["widthModifier"] = opts["widthModifier"] =
{ {
type = 'range', type = 'range',
name = 'Bar width modifier', name = L["Bar width modifier"],
desc = 'Make this bar wider or thinner than others', desc = L["Make this bar wider or thinner than others"],
min = -80, min = -80,
max = 80, max = 80,
step = 1, step = 1,
@ -341,8 +342,8 @@ end
opts["barVerticalOffset"] = opts["barVerticalOffset"] =
{ {
type='range', type='range',
name = 'Bar vertical offset', name = L["Bar vertical offset"],
desc = 'Adjust the vertical placement of this bar', desc = L["Adjust the vertical placement of this bar"],
min = -400, min = -400,
max = 600, max = 600,
step = 1, step = 1,
@ -362,8 +363,8 @@ end
opts["barHorizontalAdjust"] = opts["barHorizontalAdjust"] =
{ {
type='range', type='range',
name = 'Bar horizontal adjust', name = L["Bar horizontal adjust"],
desc = "This is a per-pixel horizontal adjustment. You should probably use the 'offset' setting above as it is designed to snap bars together. This may be used in the case of a horizontal bar needing to be positioned outside the normal bar locations.", desc = L["This is a per-pixel horizontal adjustment. You should probably use the 'offset' setting above as it is designed to snap bars together. This may be used in the case of a horizontal bar needing to be positioned outside the normal bar locations."],
min = -400, min = -400,
max = 600, max = 600,
step = 1, step = 1,
@ -383,8 +384,8 @@ end
opts["shouldUseOverride"] = opts["shouldUseOverride"] =
{ {
type = 'toggle', type = 'toggle',
name = 'Override global texture', name = L["Override global texture"],
desc = 'This will override the global bar texture setting for this bar with the one specified below.', desc = L["This will override the global bar texture setting for this bar with the one specified below."],
get = function() get = function()
return self.moduleSettings.shouldUseOverride return self.moduleSettings.shouldUseOverride
end, end,
@ -404,8 +405,8 @@ end
opts["barTextureOverride"] = opts["barTextureOverride"] =
{ {
type = 'select', type = 'select',
name = 'Bar Texture Override', name = L["Bar Texture Override"],
desc = 'This will override the global bar texture setting for this bar.', desc = L["This will override the global bar texture setting for this bar."],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.barTextureOverride) return IceHUD:GetSelectValue(info, self.moduleSettings.barTextureOverride)
end, end,
@ -424,8 +425,8 @@ end
opts["barRotate"] = opts["barRotate"] =
{ {
type = 'toggle', type = 'toggle',
name = 'Rotate 90 degrees', name = L["Rotate 90 degrees"],
desc = "This will rotate this module by 90 degrees to give a horizontal orientation.\n\nWARNING: This feature is brand new and a bit rough around the edges. You will need to greatly adjust the vertical and horizontal offset of this bar plus move the text around in order for it to look correct.\n\nAnd I mean greatly.", desc = L["This will rotate this module by 90 degrees to give a horizontal orientation.\n\nWARNING: This feature is brand new and a bit rough around the edges. You will need to greatly adjust the vertical and horizontal offset of this bar plus move the text around in order for it to look correct.\n\nAnd I mean greatly."],
get = function(info) get = function(info)
return self.moduleSettings.rotateBar return self.moduleSettings.rotateBar
end, end,
@ -446,8 +447,8 @@ end
opts["textSettings"] = opts["textSettings"] =
{ {
type = 'group', type = 'group',
name = '|c'..self.configColor..'Text Settings|r', name = "|c"..self.configColor..L["Text Settings"].."|r",
desc = 'Settings related to texts', desc = L["Settings related to texts"],
order = 32, order = 32,
disabled = function() disabled = function()
return not self.moduleSettings.enabled return not self.moduleSettings.enabled
@ -455,8 +456,8 @@ end
args = { args = {
fontsize = { fontsize = {
type = 'range', type = 'range',
name = 'Bar Font Size', name = L["Bar Font Size"],
desc = 'Bar Font Size', desc = L["Bar Font Size"],
get = function() get = function()
return self.moduleSettings.barFontSize return self.moduleSettings.barFontSize
end, end,
@ -472,8 +473,8 @@ end
lockUpperFontAlpha = { lockUpperFontAlpha = {
type = "toggle", type = "toggle",
name = "Lock Upper Text Alpha", name = L["Lock Upper Text Alpha"],
desc = "Locks upper text alpha to 100%", desc = L["Locks upper text alpha to 100%"],
get = function() get = function()
return self.moduleSettings.lockUpperTextAlpha return self.moduleSettings.lockUpperTextAlpha
end, end,
@ -486,8 +487,8 @@ end
lockLowerFontAlpha = { lockLowerFontAlpha = {
type = "toggle", type = "toggle",
name = "Lock Lower Text Alpha", name = L["Lock Lower Text Alpha"],
desc = "Locks lower text alpha to 100%", desc = L["Locks lower text alpha to 100%"],
get = function() get = function()
return self.moduleSettings.lockLowerTextAlpha return self.moduleSettings.lockLowerTextAlpha
end, end,
@ -500,8 +501,8 @@ end
upperTextVisible = { upperTextVisible = {
type = 'toggle', type = 'toggle',
name = 'Upper text visible', name = L["Upper text visible"],
desc = 'Toggle upper text visibility', desc = L["Toggle upper text visibility"],
get = function() get = function()
return self.moduleSettings.textVisible['upper'] return self.moduleSettings.textVisible['upper']
end, end,
@ -514,8 +515,8 @@ end
lowerTextVisible = { lowerTextVisible = {
type = 'toggle', type = 'toggle',
name = 'Lower text visible', name = L["Lower text visible"],
desc = 'Toggle lower text visibility', desc = L["Toggle lower text visibility"],
get = function() get = function()
return self.moduleSettings.textVisible['lower'] return self.moduleSettings.textVisible['lower']
end, end,
@ -528,8 +529,8 @@ end
upperTextString = { upperTextString = {
type = 'input', type = 'input',
name = 'Upper Text', name = L["Upper Text"],
desc = 'The upper text to display under this bar (accepts LibDogTag formatting)\n\nSee http://www.wowace.com/wiki/LibDogTag-2.0/ or type /dogtag for tag info.\n\nRemember to press ENTER after filling out this box or it will not save.', desc = L["The upper text to display under this bar (accepts LibDogTag formatting)\n\nSee http://www.wowace.com/wiki/LibDogTag-2.0/ or type /dogtag for tag info.\n\nRemember to press ENTER after filling out this box or it will not save."],
hidden = function() hidden = function()
return DogTag == nil or not self.moduleSettings.usesDogTagStrings return DogTag == nil or not self.moduleSettings.usesDogTagStrings
end, end,
@ -551,8 +552,8 @@ end
lowerTextString = { lowerTextString = {
type = 'input', type = 'input',
name = 'Lower Text', name = L["Lower Text"],
desc = 'The lower text to display under this bar (accepts LibDogTag formatting)\n\nSee http://www.wowace.com/wiki/LibDogTag-2.0/ or type /dogtag for tag info.\n\nRemember to press ENTER after filling out this box or it will not save.', desc = L["The lower text to display under this bar (accepts LibDogTag formatting)\n\nSee http://www.wowace.com/wiki/LibDogTag-2.0/ or type /dogtag for tag info.\n\nRemember to press ENTER after filling out this box or it will not save."],
hidden = function() hidden = function()
return DogTag == nil or not self.moduleSettings.usesDogTagStrings return DogTag == nil or not self.moduleSettings.usesDogTagStrings
end, end,
@ -574,8 +575,8 @@ end
forceJustifyText = { forceJustifyText = {
type = 'select', type = 'select',
name = 'Force Text Justification', name = L["Force Text Justification"],
desc = 'This sets the alignment for the text on this bar', desc = L["This sets the alignment for the text on this bar"],
get = function(info) get = function(info)
return self.moduleSettings.forceJustifyText return self.moduleSettings.forceJustifyText
end, end,
@ -591,8 +592,8 @@ end
textVerticalOffset = { textVerticalOffset = {
type = 'range', type = 'range',
name = 'Text Vertical Offset', name = L["Text Vertical Offset"],
desc = 'Offset of the text from the bar vertically (negative is farther below)', desc = L["Offset of the text from the bar vertically (negative is farther below)"],
min = -450, min = -450,
max = 350, max = 350,
step = 1, step = 1,
@ -610,8 +611,8 @@ end
textHorizontalOffset = { textHorizontalOffset = {
type = 'range', type = 'range',
name = 'Text Horizontal Offset', name = L["Text Horizontal Offset"],
desc = 'Offset of the text from the bar horizontally', desc = L["Offset of the text from the bar horizontally"],
min = -350, min = -350,
max = 350, max = 350,
step = 1, step = 1,
@ -632,8 +633,8 @@ if not self.moduleSettings.bHideMarkerSettings then
opts["markerSettings"] = opts["markerSettings"] =
{ {
type = 'group', type = 'group',
name = '|c'..self.configColor..'Marker Settings|r', name = "|c"..self.configColor..L["Marker Settings"].."|r",
desc = 'Create or remove markers at various points along the bar here', desc = L["Create or remove markers at various points along the bar here"],
order = 32, order = 32,
disabled = function() disabled = function()
return not self.moduleSettings.enabled return not self.moduleSettings.enabled
@ -644,8 +645,8 @@ if not self.moduleSettings.bHideMarkerSettings then
min = 0, min = 0,
max = 100, max = 100,
step = 1, step = 1,
name = "Position (percent)", name = L["Position (percent)"],
desc = "This specifies at what point along the bar this marker should be displayed. Remember to press ENTER when you are done typing.\n\nExample: if you wanted a marker at 40 energy and you have 100 total energy, then this would be 40. If you want it at 40 energy and you have 120 total energy, then this would be 33.", desc = L["This specifies at what point along the bar this marker should be displayed. Remember to press ENTER when you are done typing.\n\nExample: if you wanted a marker at 40 energy and you have 100 total energy, then this would be 40. If you want it at 40 energy and you have 120 total energy, then this would be 33."],
get = function() get = function()
return lastMarkerPosConfig return lastMarkerPosConfig
end, end,
@ -656,8 +657,8 @@ if not self.moduleSettings.bHideMarkerSettings then
}, },
markerColor = { markerColor = {
type = "color", type = "color",
name = "Color", name = L["Color"],
desc = "The color this marker should be.", desc = L["The color this marker should be."],
width = "half", width = "half",
get = function() get = function()
return lastMarkerColorConfig.r, lastMarkerColorConfig.g, lastMarkerColorConfig.b, lastMarkerColorConfig.a return lastMarkerColorConfig.r, lastMarkerColorConfig.g, lastMarkerColorConfig.b, lastMarkerColorConfig.a
@ -672,8 +673,8 @@ if not self.moduleSettings.bHideMarkerSettings then
min = 1, min = 1,
step = 1, step = 1,
max = self.settings.barHeight, max = self.settings.barHeight,
name = "Height", name = L["Height"],
desc = "The height of the marker on the bar.", desc = L["The height of the marker on the bar."],
get = function() get = function()
return lastMarkerHeightConfig return lastMarkerHeightConfig
end, end,
@ -684,8 +685,8 @@ if not self.moduleSettings.bHideMarkerSettings then
}, },
createMarker = { createMarker = {
type = "execute", type = "execute",
name = "Create marker", name = L["Create marker"],
desc = "Creates a new marker with the chosen settings.", desc = L["Creates a new marker with the chosen settings."],
width = "full", width = "full",
func = function() func = function()
self:AddNewMarker(lastMarkerPosConfig / 100, lastMarkerColorConfig, lastMarkerHeightConfig) self:AddNewMarker(lastMarkerPosConfig / 100, lastMarkerColorConfig, lastMarkerHeightConfig)
@ -694,8 +695,8 @@ if not self.moduleSettings.bHideMarkerSettings then
}, },
listMarkers = { listMarkers = {
type = "select", type = "select",
name = "Edit Marker", name = L["Edit Marker"],
desc = "Choose a marker to edit. This will place the marker's settings in the fields above here.", desc = L["Choose a marker to edit. This will place the marker's settings in the fields above here."],
values = function() values = function()
local retval = {} local retval = {}
if self.moduleSettings.markers then if self.moduleSettings.markers then
@ -719,8 +720,8 @@ if not self.moduleSettings.bHideMarkerSettings then
}, },
editMarker = { editMarker = {
type = "execute", type = "execute",
name = "Update", name = L["Update"],
desc = "This will update the marker selected in the 'edit marker' box with the values specified.", desc = L["This will update the marker selected in the 'edit marker' box with the values specified."],
func = function() func = function()
if self.moduleSettings.markers and lastEditMarkerConfig <= #self.moduleSettings.markers then if self.moduleSettings.markers and lastEditMarkerConfig <= #self.moduleSettings.markers then
self:EditMarker(lastEditMarkerConfig, lastMarkerPosConfig / 100, lastMarkerColorConfig, lastMarkerHeightConfig) self:EditMarker(lastEditMarkerConfig, lastMarkerPosConfig / 100, lastMarkerColorConfig, lastMarkerHeightConfig)
@ -730,8 +731,8 @@ if not self.moduleSettings.bHideMarkerSettings then
}, },
deleteMarker = { deleteMarker = {
type = "execute", type = "execute",
name = "Remove", name = L["Remove"],
desc = "This will remove the marker selected in the 'edit marker' box. This action is irreversible.", desc = L["This will remove the marker selected in the 'edit marker' box. This action is irreversible."],
func = function() func = function()
if self.moduleSettings.markers and lastEditMarkerConfig <= #self.moduleSettings.markers then if self.moduleSettings.markers and lastEditMarkerConfig <= #self.moduleSettings.markers then
self:RemoveMarker(lastEditMarkerConfig) self:RemoveMarker(lastEditMarkerConfig)

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceCastBar = IceCore_CreateClass(IceBarElement) IceCastBar = IceCore_CreateClass(IceBarElement)
@ -70,8 +71,8 @@ function IceCastBar.prototype:GetOptions()
opts["showCastTime"] = opts["showCastTime"] =
{ {
type = 'toggle', type = 'toggle',
name = 'Show spell cast time', name = L["Show spell cast time"],
desc = 'Whether or not to show the remaining cast time of a spell being cast.', desc = L["Whether or not to show the remaining cast time of a spell being cast."],
get = function() get = function()
return self.moduleSettings.showCastTime return self.moduleSettings.showCastTime
end, end,
@ -87,8 +88,8 @@ function IceCastBar.prototype:GetOptions()
opts["showSpellRank"] = opts["showSpellRank"] =
{ {
type = 'toggle', type = 'toggle',
name = 'Show spell rank', name = L["Show spell rank"],
desc = 'Whether or not to show the rank of a spell being cast.', desc = L["Whether or not to show the rank of a spell being cast."],
get = function() get = function()
return self.moduleSettings.showSpellRank return self.moduleSettings.showSpellRank
end, end,
@ -103,12 +104,12 @@ function IceCastBar.prototype:GetOptions()
opts["iconSettings"] = { opts["iconSettings"] = {
type = 'group', type = 'group',
name = '|c'..self.configColor..'Icon Settings|r', name = "|c"..self.configColor..L["Icon Settings"].."|r",
args = { args = {
displayAuraIcon = { displayAuraIcon = {
type = 'toggle', type = 'toggle',
name = "Display aura icon", name = L["Display aura icon"],
desc = "Whether or not to display an icon for the aura that this bar is tracking", desc = L["Whether or not to display an icon for the aura that this bar is tracking"],
get = function() get = function()
return self.moduleSettings.displayAuraIcon return self.moduleSettings.displayAuraIcon
end, end,
@ -133,8 +134,8 @@ function IceCastBar.prototype:GetOptions()
min = -250, min = -250,
max = 250, max = 250,
step = 1, step = 1,
name = "Aura icon horizontal offset", name = L["Aura icon horizontal offset"],
desc = "Adjust the horizontal position of the aura icon", desc = L["Adjust the horizontal position of the aura icon"],
get = function() get = function()
return self.moduleSettings.auraIconXOffset return self.moduleSettings.auraIconXOffset
end, end,
@ -153,8 +154,8 @@ function IceCastBar.prototype:GetOptions()
min = -250, min = -250,
max = 250, max = 250,
step = 1, step = 1,
name = "Aura icon vertical offset", name = L["Aura icon vertical offset"],
desc = "Adjust the vertical position of the aura icon", desc = L["Adjust the vertical position of the aura icon"],
get = function() get = function()
return self.moduleSettings.auraIconYOffset return self.moduleSettings.auraIconYOffset
end, end,
@ -173,8 +174,8 @@ function IceCastBar.prototype:GetOptions()
min = 0.1, min = 0.1,
max = 3.0, max = 3.0,
step = 0.05, step = 0.05,
name = 'Aura icon scale', name = L["Aura icon scale"],
desc = 'Adjusts the size of the aura icon for this bar', desc = L["Adjusts the size of the aura icon for this bar"],
get = function() get = function()
return self.moduleSettings.auraIconScale return self.moduleSettings.auraIconScale
end, end,
@ -192,8 +193,8 @@ function IceCastBar.prototype:GetOptions()
opts["reverseChannel"] = { opts["reverseChannel"] = {
type = 'toggle', type = 'toggle',
name = "Reverse channeling", name = L["Reverse channeling"],
desc = "Whether or not to reverse the direction of the cast bar when a spell is being channeled. For example, if a normal cast causes this bar to fill up, then checking this option will cause a channeled spell to empty the bar instead.", desc = L["Whether or not to reverse the direction of the cast bar when a spell is being channeled. For example, if a normal cast causes this bar to fill up, then checking this option will cause a channeled spell to empty the bar instead."],
get = function() get = function()
return self.moduleSettings.reverseChannel return self.moduleSettings.reverseChannel
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
function IceCore_CreateClass(parent) function IceCore_CreateClass(parent)
local class = { prototype = {} } local class = { prototype = {} }
if parent then if parent then
@ -336,7 +337,7 @@ function IceCore.prototype:GetModuleOptions()
options["aaaClickPlus"] = { options["aaaClickPlus"] = {
type = 'description', type = 'description',
fontSize = 'large', fontSize = 'large',
name = 'Click the + next to |cffffdc42Module Settings|r to see the available modules that you can tweak.\n\nAlso notice that some modules have a + next to them. This will open up additional settings such as text tweaks and icon tweaks on that module.', name = L["Click the + next to |cffffdc42Module Settings|r to see the available modules that you can tweak.\n\nAlso notice that some modules have a + next to them. This will open up additional settings such as text tweaks and icon tweaks on that module."],
order = 1 order = 1
} }
@ -345,7 +346,7 @@ function IceCore.prototype:GetModuleOptions()
local opt = self.elements[i]:GetOptions() local opt = self.elements[i]:GetOptions()
options[modName] = { options[modName] = {
type = 'group', type = 'group',
desc = 'Module options', desc = L["Module options"],
name = modName, name = modName,
args = opt args = opt
} }

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local SML = LibStub("LibSharedMedia-3.0") local SML = LibStub("LibSharedMedia-3.0")
IceElement = IceCore_CreateClass() IceElement = IceCore_CreateClass()
@ -118,8 +119,8 @@ function IceElement.prototype:GetOptions()
opts["enabled"] = { opts["enabled"] = {
type = "toggle", type = "toggle",
name = "Enabled", name = L["Enabled"],
desc = "Enable/disable module", desc = L["Enable/disable module"],
get = function() get = function()
return self.moduleSettings.enabled return self.moduleSettings.enabled
end, end,
@ -136,15 +137,15 @@ function IceElement.prototype:GetOptions()
opts["headerVisibility"] = { opts["headerVisibility"] = {
type = 'header', type = 'header',
name = 'Visibility Settings', name = L["Visibility Settings"],
order = 27 order = 27
} }
opts["scale"] = opts["scale"] =
{ {
type = 'range', type = 'range',
name = "Scale", name = L["Scale"],
desc = 'Scale of the element', desc = L["Scale of the element"],
min = 0.2, min = 0.2,
max = 2, max = 2,
step = 0.1, step = 0.1,
@ -166,8 +167,8 @@ function IceElement.prototype:GetOptions()
opts["alwaysFullAlpha"] = opts["alwaysFullAlpha"] =
{ {
type = 'toggle', type = 'toggle',
name = 'Always show at 100% alpha', name = L["Always show at 100% alpha"],
desc = 'Whether to always show this module at 100% alpha or not', desc = L["Whether to always show this module at 100% alpha or not"],
width = 'double', width = 'double',
get = function() get = function()
return self.moduleSettings.alwaysFullAlpha return self.moduleSettings.alwaysFullAlpha

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceHUD = LibStub("AceAddon-3.0"):NewAddon("IceHUD", "AceConsole-3.0") IceHUD = LibStub("AceAddon-3.0"):NewAddon("IceHUD", "AceConsole-3.0")
local SML = LibStub("LibSharedMedia-3.0") local SML = LibStub("LibSharedMedia-3.0")
@ -43,21 +44,21 @@ IceHUD.Location = "Interface\\AddOns\\IceHUD"
IceHUD.options = IceHUD.options =
{ {
type = 'group', type = 'group',
name = "IceHUD", name = L["IceHUD"],
desc = "IceHUD", desc = L["IceHUD"],
icon = "Interface\\Icons\\Spell_Frost_Frost", icon = "Interface\\Icons\\Spell_Frost_Frost",
args = args =
{ {
headerGeneral = { headerGeneral = {
type = 'header', type = 'header',
name = "General Settings", name = L["General Settings"],
order = 10 order = 10
}, },
faq = { faq = {
type = 'group', type = 'group',
name = 'FAQs', name = L["FAQs"],
desc = 'Answers to questions that are frequently asked.', desc = L["Answers to questions that are frequently asked."],
order = 1, order = 1,
args = { args = {
test = { test = {
@ -104,14 +105,14 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
positioningSettings = { positioningSettings = {
type = 'group', type = 'group',
name = 'Positioning Settings', name = L["Positioning Settings"],
desc = 'Settings related to positioning and alpha', desc = L["Settings related to positioning and alpha"],
order = 11, order = 11,
args = { args = {
vpos = { vpos = {
type = 'range', type = 'range',
name = 'Vertical position', name = L["Vertical position"],
desc = 'Vertical position', desc = L["Vertical position"],
get = function() get = function()
return IceHUD.IceCore:GetVerticalPos() return IceHUD.IceCore:GetVerticalPos()
end, end,
@ -126,8 +127,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
hpos = { hpos = {
type = 'range', type = 'range',
name = 'Horizontal position', name = L["Horizontal position"],
desc = 'Horizontal position (for you dual screen freaks)', desc = L["Horizontal position (for you dual screen freaks)"],
get = function() get = function()
return IceHUD.IceCore:GetHorizontalPos() return IceHUD.IceCore:GetHorizontalPos()
end, end,
@ -142,8 +143,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
gap = { gap = {
type = 'range', type = 'range',
name = 'Gap', name = L["Gap"],
desc = 'Distance between the left and right bars', desc = L["Distance between the left and right bars"],
get = function() get = function()
return IceHUD.IceCore:GetGap() return IceHUD.IceCore:GetGap()
end, end,
@ -158,8 +159,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
scale = { scale = {
type = 'range', type = 'range',
name = 'Scale', name = L["Scale"],
desc = 'HUD scale', desc = L["HUD scale"],
get = function() get = function()
return IceHUD.IceCore:GetScale() return IceHUD.IceCore:GetScale()
end, end,
@ -178,20 +179,20 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
alphaSettings = { alphaSettings = {
type = 'group', type = 'group',
name = 'Transparency Settings', name = L["Transparency Settings"],
desc = 'Settings for bar transparencies', desc = L["Settings for bar transparencies"],
order = 12, order = 12,
args = { args = {
headerAlpha = { headerAlpha = {
type = 'header', type = 'header',
name = "Bar Alpha", name = L["Bar Alpha"],
order = 10 order = 10
}, },
alphaic = { alphaic = {
type = 'range', type = 'range',
name = 'Alpha in combat', name = L["Alpha in combat"],
desc = 'Bar alpha In Combat', desc = L["Bar alpha In Combat"],
get = function() get = function()
return IceHUD.IceCore:GetAlpha("IC") return IceHUD.IceCore:GetAlpha("IC")
end, end,
@ -207,8 +208,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
alphaooc = { alphaooc = {
type = 'range', type = 'range',
name = 'Alpha out of combat', name = L["Alpha out of combat"],
desc = 'Bar alpha Out Of Combat without target', desc = L["Bar alpha Out Of Combat without target"],
get = function() get = function()
return IceHUD.IceCore:GetAlpha("OOC") return IceHUD.IceCore:GetAlpha("OOC")
end, end,
@ -224,8 +225,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
alphaTarget = { alphaTarget = {
type = 'range', type = 'range',
name = 'Alpha OOC and Target', name = L["Alpha OOC and Target"],
desc = 'Bar alpha Out Of Combat with target accuired (takes precedence over Not Full)', desc = L["Bar alpha Out Of Combat with target accuired (takes precedence over Not Full)"],
get = function() get = function()
return IceHUD.IceCore:GetAlpha("Target") return IceHUD.IceCore:GetAlpha("Target")
end, end,
@ -241,8 +242,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
alphaNotFull = { alphaNotFull = {
type = 'range', type = 'range',
name = 'Alpha OOC and not full', name = L["Alpha OOC and not full"],
desc = 'Bar alpha Out Of Combat with target accuired or bar not full (Target takes precedence over this)', desc = L["Bar alpha Out Of Combat with target accuired or bar not full (Target takes precedence over this)"],
get = function() get = function()
return IceHUD.IceCore:GetAlpha("NotFull") return IceHUD.IceCore:GetAlpha("NotFull")
end, end,
@ -259,14 +260,14 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
headerAlphaBackground = { headerAlphaBackground = {
type = 'header', type = 'header',
name = "Background Alpha", name = L["Background Alpha"],
order = 20 order = 20
}, },
alphaicbg = { alphaicbg = {
type = 'range', type = 'range',
name = 'BG Alpha in combat', name = L["BG Alpha in combat"],
desc = 'Background alpha for bars IC', desc = L["Background alpha for bars IC"],
get = function() get = function()
return IceHUD.IceCore:GetAlphaBG("IC") return IceHUD.IceCore:GetAlphaBG("IC")
end, end,
@ -282,8 +283,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
alphaoocbg = { alphaoocbg = {
type = 'range', type = 'range',
name = 'BG Alpha out of combat', name = L["BG Alpha out of combat"],
desc = 'Background alpha for bars OOC without target', desc = L["Background alpha for bars OOC without target"],
get = function() get = function()
return IceHUD.IceCore:GetAlphaBG("OOC") return IceHUD.IceCore:GetAlphaBG("OOC")
end, end,
@ -299,8 +300,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
alphaTargetbg = { alphaTargetbg = {
type = 'range', type = 'range',
name = 'BG Alpha OOC and Target', name = L["BG Alpha OOC and Target"],
desc = 'Background alpha for bars OOC and target accuired (takes precedence over Not Full)', desc = L["Background alpha for bars OOC and target accuired (takes precedence over Not Full)"],
get = function() get = function()
return IceHUD.IceCore:GetAlphaBG("Target") return IceHUD.IceCore:GetAlphaBG("Target")
end, end,
@ -316,8 +317,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
alphaNotFullbg = { alphaNotFullbg = {
type = 'range', type = 'range',
name = 'BG Alpha OOC and not Full', name = L["BG Alpha OOC and not Full"],
desc = 'Background alpha for bars OOC and bar not full (Target takes precedence over this)', desc = L["Background alpha for bars OOC and bar not full (Target takes precedence over this)"],
get = function() get = function()
return IceHUD.IceCore:GetAlphaBG("NotFull") return IceHUD.IceCore:GetAlphaBG("NotFull")
end, end,
@ -334,14 +335,14 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
headerBarAdvanced = { headerBarAdvanced = {
type = 'header', type = 'header',
name = "Other", name = L["Other"],
order = 30 order = 30
}, },
backgroundToggle = { backgroundToggle = {
type = "toggle", type = "toggle",
name = "Contextual Background", name = L["Contextual Background"],
desc = "Toggles contextual background coloring", desc = L["Toggles contextual background coloring"],
get = function() get = function()
return IceHUD.IceCore:GetBackgroundToggle() return IceHUD.IceCore:GetBackgroundToggle()
end, end,
@ -353,8 +354,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
backgroundColor = { backgroundColor = {
type = 'color', type = 'color',
name = 'Background Color', name = L["Background Color"],
desc = 'Background Color', desc = L["Background Color"],
get = function() get = function()
return IceHUD.IceCore:GetBackgroundColor() return IceHUD.IceCore:GetBackgroundColor()
end, end,
@ -369,8 +370,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
textSettings = { textSettings = {
type = 'select', type = 'select',
name = 'Font', name = L["Font"],
desc = 'IceHUD Font', desc = L["IceHUD Font"],
order = 19, order = 19,
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, IceHUD.IceCore:GetFontFamily()) return IceHUD:GetSelectValue(info, IceHUD.IceCore:GetFontFamily())
@ -384,14 +385,14 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
barSettings = { barSettings = {
type = 'group', type = 'group',
name = 'Bar Settings', name = L["Bar Settings"],
desc = 'Settings related to bars', desc = L["Settings related to bars"],
order = 20, order = 20,
args = { args = {
barPresets = { barPresets = {
type = 'select', type = 'select',
name = 'Presets', name = L["Presets"],
desc = 'Predefined settings for different bars', desc = L["Predefined settings for different bars"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, IceHUD.IceCore:GetBarPreset()) return IceHUD:GetSelectValue(info, IceHUD.IceCore:GetBarPreset())
end, end,
@ -405,14 +406,14 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
headerBarAdvanced = { headerBarAdvanced = {
type = 'header', type = 'header',
name = "Advanced Bar Settings", name = L["Advanced Bar Settings"],
order = 10 order = 10
}, },
barTexture = { barTexture = {
type = 'select', type = 'select',
name = 'Bar Texture', name = L["Bar Texture"],
desc = 'IceHUD Bar Texture', desc = L["IceHUD Bar Texture"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, IceHUD.IceCore:GetBarTexture()) return IceHUD:GetSelectValue(info, IceHUD.IceCore:GetBarTexture())
end, end,
@ -425,8 +426,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
barWidth = { barWidth = {
type = 'range', type = 'range',
name = 'Bar Width', name = L["Bar Width"],
desc = 'Bar texture width (not the actual bar!)', desc = L["Bar texture width (not the actual bar!)"],
get = function() get = function()
return IceHUD.IceCore:GetBarWidth() return IceHUD.IceCore:GetBarWidth()
end, end,
@ -441,8 +442,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
barHeight = { barHeight = {
type = 'range', type = 'range',
name = 'Bar Height', name = L["Bar Height"],
desc = 'Bar texture height (not the actual bar!)', desc = L["Bar texture height (not the actual bar!)"],
get = function() get = function()
return IceHUD.IceCore:GetBarHeight() return IceHUD.IceCore:GetBarHeight()
end, end,
@ -457,8 +458,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
barProportion = { barProportion = {
type = 'range', type = 'range',
name = 'Bar Proportion', name = L["Bar Proportion"],
desc = 'Determines the bar width compared to the whole texture width', desc = L["Determines the bar width compared to the whole texture width"],
get = function() get = function()
return IceHUD.IceCore:GetBarProportion() return IceHUD.IceCore:GetBarProportion()
end, end,
@ -474,8 +475,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
barSpace = { barSpace = {
type = 'range', type = 'range',
name = 'Bar Space', name = L["Bar Space"],
desc = 'Space between bars on the same side', desc = L["Space between bars on the same side"],
get = function() get = function()
return IceHUD.IceCore:GetBarSpace() return IceHUD.IceCore:GetBarSpace()
end, end,
@ -490,8 +491,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
bgBlendMode = { bgBlendMode = {
type = 'select', type = 'select',
name = 'Bar Background Blend Mode', name = L["Bar Background Blend Mode"],
desc = 'IceHUD Bar Background Blend mode', desc = L["IceHUD Bar Background Blend mode"],
get = function(info) get = function(info)
return IceHUD.IceCore:GetBarBgBlendMode() return IceHUD.IceCore:GetBarBgBlendMode()
end, end,
@ -504,8 +505,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
barBlendMode = { barBlendMode = {
type = 'select', type = 'select',
name = 'Bar Blend Mode', name = L["Bar Blend Mode"],
desc = 'IceHUD Bar Blend mode', desc = L["IceHUD Bar Blend mode"],
get = function(info) get = function(info)
return IceHUD.IceCore:GetBarBlendMode() return IceHUD.IceCore:GetBarBlendMode()
end, end,
@ -521,24 +522,24 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
modules = { modules = {
type='group', type='group',
desc = 'Module configuration options', desc = L["Module configuration options"],
name = 'Module Settings', name = L["Module Settings"],
args = {}, args = {},
order = 41 order = 41
}, },
colors = { colors = {
type='group', type='group',
desc = 'Module color configuration options', desc = L["Module color configuration options"],
name = 'Colors', name = L["Colors"],
args = {}, args = {},
order = 42 order = 42
}, },
enabled = { enabled = {
type = "toggle", type = "toggle",
name = "Enabled", name = L["Enabled"],
desc = "Enable/disable IceHUD", desc = L["Enable/disable IceHUD"],
get = function() get = function()
return IceHUD.IceCore:IsEnabled() return IceHUD.IceCore:IsEnabled()
end, end,
@ -554,8 +555,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
debug = { debug = {
type = "toggle", type = "toggle",
name = "Debugging", name = L["Debugging"],
desc = "Enable/disable debug messages", desc = L["Enable/disable debug messages"],
get = function() get = function()
return IceHUD.IceCore:GetDebug() return IceHUD.IceCore:GetDebug()
end, end,
@ -584,8 +585,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
customModuleSelect = { customModuleSelect = {
type = "select", type = "select",
name = "Create custom module", name = L["Create custom module"],
desc = "Select a custom module that you want to create here, then press the 'Create' button.", desc = L["Select a custom module that you want to create here, then press the 'Create' button."],
get = function(info) get = function(info)
return lastCustomModule return lastCustomModule
end, end,
@ -598,8 +599,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
customModuleCreate = { customModuleCreate = {
type = "execute", type = "execute",
name = "Create", name = L["Create"],
desc = "Creates the selected custom module", desc = L["Creates the selected custom module"],
func = function() func = function()
IceHUD:CreateCustomModuleAndNotify(lastCustomModule) IceHUD:CreateCustomModuleAndNotify(lastCustomModule)
end, end,
@ -608,8 +609,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
configMode = { configMode = {
type = 'toggle', type = 'toggle',
name = 'Configuration Mode', name = L["Configuration Mode"],
desc = "Makes all modules visible so you can see where they're placed and find any that are overlapping.", desc = L["Makes all modules visible so you can see where they're placed and find any that are overlapping."],
get = function() get = function()
return IceHUD.IceCore:IsInConfigMode() return IceHUD.IceCore:IsInConfigMode()
end, end,
@ -621,8 +622,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
useDogTags = { useDogTags = {
type = 'toggle', type = 'toggle',
name = 'Use Dog Tags', name = L["Use Dog Tags"],
desc = 'Whether or not the addon should use the DogTag library (this will increase the CPU usage of the mod). DogTag controls all text displayed around bars such as health or mana amounts. Type |cffffff78/dog|r to see all DogTag options.\n\nNOTE: after changing this option, you must reload the UI or else bad things happen', desc = L["Whether or not the addon should use the DogTag library (this will increase the CPU usage of the mod). DogTag controls all text displayed around bars such as health or mana amounts. Type |cffffff78/dog|r to see all DogTag options.\n\nNOTE: after changing this option, you must reload the UI or else bad things happen"],
get = function() get = function()
return IceHUD.IceCore:ShouldUseDogTags() return IceHUD.IceCore:ShouldUseDogTags()
end, end,
@ -638,8 +639,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
updatePeriod = { updatePeriod = {
type = 'range', type = 'range',
name = 'Update Period', name = L["Update Period"],
desc = 'Time between display updates in seconds', desc = L["Time between display updates in seconds"],
get = function() get = function()
return IceHUD.IceCore:UpdatePeriod() return IceHUD.IceCore:UpdatePeriod()
end, end,
@ -654,8 +655,8 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
showMinimap = { showMinimap = {
type = 'toggle', type = 'toggle',
name = "Show Minimap Icon", name = L["Show Minimap Icon"],
desc = "Whether or not to show an IceHUD icon on the minimap.", desc = L["Whether or not to show an IceHUD icon on the minimap."],
get = function(info) get = function(info)
return not IceHUD.db.profile.minimap.hide return not IceHUD.db.profile.minimap.hide
end, end,
@ -926,8 +927,8 @@ function IceHUD:SetupProfileImportButtons()
AceSerializer:Embed(self) AceSerializer:Embed(self)
self.options.args.profiles.args.export = { self.options.args.profiles.args.export = {
type = 'execute', type = 'execute',
name = 'Export profile', name = L["Export profile"],
desc = 'Exports your active profile to something you can copy and paste to another user or use on another account.', desc = L["Exports your active profile to something you can copy and paste to another user or use on another account."],
func = function() func = function()
local frame = AceGUI:Create("Frame") local frame = AceGUI:Create("Frame")
frame:SetTitle("Profile data") frame:SetTitle("Profile data")
@ -967,8 +968,8 @@ function IceHUD:SetupProfileImportButtons()
self.options.args.profiles.args.import = { self.options.args.profiles.args.import = {
type = 'execute', type = 'execute',
name = 'Import profile', name = L["Import profile"],
desc = "Imports a profile as exported from another user's IceHUD.", desc = L["Imports a profile as exported from another user's IceHUD."],
func = function() func = function()
local frame = AceGUI:Create("Frame") local frame = AceGUI:Create("Frame")
frame:SetTitle("Profile data") frame:SetTitle("Profile data")

View File

@ -15,6 +15,9 @@
embeds.xml embeds.xml
#@end-no-lib-strip@ #@end-no-lib-strip@
# Localization
loc\loc.xml
# IceHUD core functionality # IceHUD core functionality
IceCore.lua IceCore.lua
IceHUD.lua IceHUD.lua

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceUnitBar = IceCore_CreateClass(IceBarElement) IceUnitBar = IceCore_CreateClass(IceBarElement)
IceUnitBar.prototype.unit = nil IceUnitBar.prototype.unit = nil
@ -69,8 +70,8 @@ function IceUnitBar.prototype:GetOptions()
opts["lowThreshold"] = opts["lowThreshold"] =
{ {
type = 'range', type = 'range',
name = 'Low Threshold', name = L["Low Threshold"],
desc = 'Threshold of pulsing the bar (0 means never) (for player applies only to mana, not rage/energy/runic power)', desc = L["Threshold of pulsing the bar (0 means never) (for player applies only to mana, not rage/energy/runic power)"],
get = function() get = function()
return self.moduleSettings.lowThreshold return self.moduleSettings.lowThreshold
end, end,
@ -89,8 +90,8 @@ function IceUnitBar.prototype:GetOptions()
} }
opts["lowThresholdFlash"] = { opts["lowThresholdFlash"] = {
type = 'toggle', type = 'toggle',
name = 'Flash bar below Low Threshold', name = L["Flash bar below Low Threshold"],
desc = 'Flashes the bar when it is below the Low Threshold specified above', desc = L["Flashes the bar when it is below the Low Threshold specified above"],
width = 'double', width = 'double',
get = function() get = function()
return self.moduleSettings.lowThresholdFlash return self.moduleSettings.lowThresholdFlash
@ -105,8 +106,8 @@ function IceUnitBar.prototype:GetOptions()
} }
opts["lowThresholdColor"] = { opts["lowThresholdColor"] = {
type = "toggle", type = "toggle",
name = "Low Threshold color", name = L["Low Threshold color"],
desc = "Colors the bar minColor when % is < lowThreshold (requires scaleColor to be enabled)", desc = L["Colors the bar minColor when % is < lowThreshold (requires scaleColor to be enabled)"],
get = function() get = function()
return self.moduleSettings.lowThresholdColor return self.moduleSettings.lowThresholdColor
end, end,

View File

@ -9,6 +9,7 @@
<Include file="libs\AceTimer-3.0\AceTimer-3.0.xml"/> <Include file="libs\AceTimer-3.0\AceTimer-3.0.xml"/>
<Include file="libs\AceConsole-3.0\AceConsole-3.0.xml"/> <Include file="libs\AceConsole-3.0\AceConsole-3.0.xml"/>
<Include file="libs\AceAddon-3.0\AceAddon-3.0.xml"/> <Include file="libs\AceAddon-3.0\AceAddon-3.0.xml"/>
<Include file="libs\AceLocale-3.0\AceLocale-3.0.xml"/>
<Include file="libs\LibDogTag-3.0\lib.xml"/> <Include file="libs\LibDogTag-3.0\lib.xml"/>
<Include file="libs\LibDogTag-Unit-3.0\lib.xml"/> <Include file="libs\LibDogTag-Unit-3.0\lib.xml"/>
<Script file="libs\LibRangeCheck-2.0\LibRangeCheck-2.0.lua"/> <Script file="libs\LibRangeCheck-2.0\LibRangeCheck-2.0.lua"/>

4
loc/deDE.lua Normal file
View File

@ -0,0 +1,4 @@
local L = LibStub("AceLocale-3.0"):NewLocale("IceHUD", "deDE")
if not L then return end
--@localization(locale="deDE", format="lua_additive_table", handle-subnamespaces="concat", handle-unlocalized="english")@

8
loc/enUS.lua Normal file
View File

@ -0,0 +1,8 @@
local debug = false
--@debug@
debug = true
--@end-debug@
local L = LibStub("AceLocale-3.0"):NewLocale("IceHUD", "enUS", true, debug)
--@localization(locale="enUS", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@

4
loc/esES.lua Normal file
View File

@ -0,0 +1,4 @@
local L = LibStub("AceLocale-3.0"):NewLocale("IceHUD", "esES")
if not L then return end
--@localization(locale="esES", format="lua_additive_table", handle-subnamespaces="concat", handle-unlocalized="english")@

4
loc/esMX.lua Normal file
View File

@ -0,0 +1,4 @@
local L = LibStub("AceLocale-3.0"):NewLocale("IceHUD", "esMX")
if not L then return end
--@localization(locale="esMX", format="lua_additive_table", handle-subnamespaces="concat", handle-unlocalized="english")@

4
loc/frFR.lua Normal file
View File

@ -0,0 +1,4 @@
local L = LibStub("AceLocale-3.0"):NewLocale("IceHUD", "frFR")
if not L then return end
--@localization(locale="frFR", format="lua_additive_table", handle-subnamespaces="concat", handle-unlocalized="english")@

4
loc/koKR.lua Normal file
View File

@ -0,0 +1,4 @@
local L = LibStub("AceLocale-3.0"):NewLocale("IceHUD", "koKR")
if not L then return end
--@localization(locale="koKR", format="lua_additive_table", handle-subnamespaces="concat", handle-unlocalized="english")@

13
loc/loc.xml Normal file
View File

@ -0,0 +1,13 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
<Script file="enUS.lua"/>
<Script file="deDE.lua"/>
<Script file="esES.lua"/>
<Script file="esMX.lua"/>
<Script file="frFR.lua"/>
<Script file="koKR.lua"/>
<Script file="ruRU.lua"/>
<Script file="zhCN.lua"/>
<Script file="zhTW.lua"/>
</Ui>

4
loc/ruRU.lua Normal file
View File

@ -0,0 +1,4 @@
local L = LibStub("AceLocale-3.0"):NewLocale("IceHUD", "ruRU")
if not L then return end
--@localization(locale="ruRU", format="lua_additive_table", handle-subnamespaces="concat", handle-unlocalized="english")@

4
loc/zhCN.lua Normal file
View File

@ -0,0 +1,4 @@
local L = LibStub("AceLocale-3.0"):NewLocale("IceHUD", "zhCN")
if not L then return end
--@localization(locale="zhCN", format="lua_additive_table", handle-subnamespaces="concat", handle-unlocalized="english")@

4
loc/zhTW.lua Normal file
View File

@ -0,0 +1,4 @@
local L = LibStub("AceLocale-3.0"):NewLocale("IceHUD", "zhTW")
if not L then return end
--@localization(locale="zhTW", format="lua_additive_table", handle-subnamespaces="concat", handle-unlocalized="english")@

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local CastBar = IceCore_CreateClass(IceCastBar) local CastBar = IceCore_CreateClass(IceCastBar)
CastBar.prototype.lagBar = nil CastBar.prototype.lagBar = nil
@ -43,8 +44,8 @@ function CastBar.prototype:GetOptions()
opts["flashInstants"] = opts["flashInstants"] =
{ {
type = 'select', type = 'select',
name = "Flash Instant Spells", name = L["Flash Instant Spells"],
desc = "Defines when cast bar should flash on instant spells", desc = L["Defines when cast bar should flash on instant spells"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.flashInstants) return IceHUD:GetSelectValue(info, self.moduleSettings.flashInstants)
end, end,
@ -61,8 +62,8 @@ function CastBar.prototype:GetOptions()
opts["flashFailures"] = opts["flashFailures"] =
{ {
type = 'select', type = 'select',
name = "Flash on Spell Failures", name = L["Flash on Spell Failures"],
desc = "Defines when cast bar should flash on failed spells", desc = L["Defines when cast bar should flash on failed spells"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.flashFailures) return IceHUD:GetSelectValue(info, self.moduleSettings.flashFailures)
end, end,
@ -79,8 +80,8 @@ function CastBar.prototype:GetOptions()
opts["lagAlpha"] = opts["lagAlpha"] =
{ {
type = 'range', type = 'range',
name = 'Lag Indicator alpha', name = L["Lag Indicator alpha"],
desc = 'Lag indicator alpha (0 is disabled)', desc = L["Lag indicator alpha (0 is disabled)"],
min = 0, min = 0,
max = 1, max = 1,
step = 0.1, step = 0.1,
@ -100,8 +101,8 @@ function CastBar.prototype:GetOptions()
opts["showBlizzCast"] = opts["showBlizzCast"] =
{ {
type = 'toggle', type = 'toggle',
name = 'Show default cast bar', name = L["Show default cast bar"],
desc = 'Whether or not to show the default cast bar.', desc = L["Whether or not to show the default cast bar."],
get = function() get = function()
return self.moduleSettings.showBlizzCast return self.moduleSettings.showBlizzCast
end, end,
@ -117,8 +118,8 @@ function CastBar.prototype:GetOptions()
opts["barVisible"] = { opts["barVisible"] = {
type = 'toggle', type = 'toggle',
name = 'Bar visible', name = L["Bar visible"],
desc = 'Toggle bar visibility', desc = L["Toggle bar visibility"],
get = function() get = function()
return self.moduleSettings.barVisible['bar'] return self.moduleSettings.barVisible['bar']
end, end,
@ -138,8 +139,8 @@ function CastBar.prototype:GetOptions()
opts["bgVisible"] = { opts["bgVisible"] = {
type = 'toggle', type = 'toggle',
name = 'Bar background visible', name = L["Bar background visible"],
desc = 'Toggle bar background visibility', desc = L["Toggle bar background visibility"],
get = function() get = function()
return self.moduleSettings.barVisible['bg'] return self.moduleSettings.barVisible['bg']
end, end,
@ -159,8 +160,8 @@ function CastBar.prototype:GetOptions()
opts["rangeColor"] = { opts["rangeColor"] = {
type = 'toggle', type = 'toggle',
name = 'Change color when not in range', name = L["Change color when not in range"],
desc = 'Changes the bar color to the CastNotInRange color when the target goes out of range for the current spell.', desc = L["Changes the bar color to the CastNotInRange color when the target goes out of range for the current spell."],
width = 'double', width = 'double',
get = function() get = function()
return self.moduleSettings.rangeColor return self.moduleSettings.rangeColor
@ -177,8 +178,8 @@ function CastBar.prototype:GetOptions()
opts["textSettings"] = opts["textSettings"] =
{ {
type = 'group', type = 'group',
name = '|c' .. self.configColor .. 'Text Settings|r', name = "|c"..self.configColor..L["Text Settings"].."|r",
desc = 'Settings related to texts', desc = L["Settings related to texts"],
order = 32, order = 32,
disabled = function() disabled = function()
return not self.moduleSettings.enabled return not self.moduleSettings.enabled
@ -186,8 +187,8 @@ function CastBar.prototype:GetOptions()
args = { args = {
fontsize = { fontsize = {
type = 'range', type = 'range',
name = 'Bar Font Size', name = L["Bar Font Size"],
desc = 'Bar Font Size', desc = L["Bar Font Size"],
get = function() get = function()
return self.moduleSettings.barFontSize return self.moduleSettings.barFontSize
end, end,
@ -203,8 +204,8 @@ function CastBar.prototype:GetOptions()
lockFontAlpha = { lockFontAlpha = {
type = "toggle", type = "toggle",
name = "Lock Bar Text Alpha", name = L["Lock Bar Text Alpha"],
desc = "Locks text alpha to 100%", desc = L["Locks text alpha to 100%"],
get = function() get = function()
return self.moduleSettings.lockUpperTextAlpha return self.moduleSettings.lockUpperTextAlpha
end, end,
@ -217,8 +218,8 @@ function CastBar.prototype:GetOptions()
upperTextVisible = { upperTextVisible = {
type = 'toggle', type = 'toggle',
name = 'Spell cast text visible', name = L["Spell cast text visible"],
desc = 'Toggle spell cast text visibility', desc = L["Toggle spell cast text visibility"],
get = function() get = function()
return self.moduleSettings.textVisible['upper'] return self.moduleSettings.textVisible['upper']
end, end,
@ -231,8 +232,8 @@ function CastBar.prototype:GetOptions()
textVerticalOffset = { textVerticalOffset = {
type = 'range', type = 'range',
name = 'Text Vertical Offset', name = L["Text Vertical Offset"],
desc = 'Offset of the text from the bar vertically (negative is farther below)', desc = L["Offset of the text from the bar vertically (negative is farther below)"],
min = -250, min = -250,
max = 350, max = 350,
step = 1, step = 1,
@ -250,8 +251,8 @@ function CastBar.prototype:GetOptions()
textHorizontalOffset = { textHorizontalOffset = {
type = 'range', type = 'range',
name = 'Text Horizontal Offset', name = L["Text Horizontal Offset"],
desc = 'Offset of the text from the bar horizontally', desc = L["Offset of the text from the bar horizontally"],
min = -350, min = -350,
max = 350, max = 350,
step = 1, step = 1,
@ -269,8 +270,8 @@ function CastBar.prototype:GetOptions()
forceJustifyText = { forceJustifyText = {
type = 'select', type = 'select',
name = 'Force Text Justification', name = L["Force Text Justification"],
desc = 'This sets the alignment for the text on this bar', desc = L["This sets the alignment for the text on this bar"],
get = function() get = function()
return self.moduleSettings.forceJustifyText return self.moduleSettings.forceJustifyText
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceClassPowerCounter = IceCore_CreateClass(IceElement) IceClassPowerCounter = IceCore_CreateClass(IceElement)
IceClassPowerCounter.prototype.runeHeight = 22 IceClassPowerCounter.prototype.runeHeight = 22
@ -24,8 +25,8 @@ function IceClassPowerCounter.prototype:GetOptions()
opts["vpos"] = { opts["vpos"] = {
type = "range", type = "range",
name = "Vertical Position", name = L["Vertical Position"],
desc = "Vertical Position", desc = L["Vertical Position"],
get = function() get = function()
return self.moduleSettings.vpos return self.moduleSettings.vpos
end, end,
@ -44,8 +45,8 @@ function IceClassPowerCounter.prototype:GetOptions()
opts["hpos"] = { opts["hpos"] = {
type = "range", type = "range",
name = "Horizontal Position", name = L["Horizontal Position"],
desc = "Horizontal Position", desc = L["Horizontal Position"],
get = function() get = function()
return self.moduleSettings.hpos return self.moduleSettings.hpos
end, end,
@ -64,8 +65,8 @@ function IceClassPowerCounter.prototype:GetOptions()
opts["hideBlizz"] = { opts["hideBlizz"] = {
type = "toggle", type = "toggle",
name = "Hide Blizzard Frame", name = L["Hide Blizzard Frame"],
desc = "Hides Blizzard frame and disables all events related to it.\n\nNOTE: Blizzard attaches this UI to the player's unitframe, so if you have that hidden in PlayerHealth, then this won't do anything.", desc = L["Hides Blizzard frame and disables all events related to it.\n\nNOTE: Blizzard attaches this UI to the player's unitframe, so if you have that hidden in PlayerHealth, then this won't do anything."],
get = function() get = function()
return self.moduleSettings.hideBlizz return self.moduleSettings.hideBlizz
end, end,
@ -85,8 +86,8 @@ function IceClassPowerCounter.prototype:GetOptions()
opts["displayMode"] = { opts["displayMode"] = {
type = 'select', type = 'select',
name = 'Display mode', name = L["Display mode"],
desc = "Choose whether you'd like a graphical or numeric representation of the runes.\n\nNOTE: The color of 'Numeric' mode can be controlled by the HolyPowerNumeric color.", desc = L["Choose whether you'd like a graphical or numeric representation of the runes.\n\nNOTE: The color of 'Numeric' mode can be controlled by the HolyPowerNumeric color."],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.runeMode) return IceHUD:GetSelectValue(info, self.moduleSettings.runeMode)
end, end,
@ -104,8 +105,8 @@ function IceClassPowerCounter.prototype:GetOptions()
opts["runeGap"] = { opts["runeGap"] = {
type = 'range', type = 'range',
name = 'Rune gap', name = L["Rune gap"],
desc = 'Spacing between each rune (only works for graphical mode)', desc = L["Spacing between each rune (only works for graphical mode)"],
min = 0, min = 0,
max = 100, max = 100,
step = 1, step = 1,
@ -127,8 +128,8 @@ function IceClassPowerCounter.prototype:GetOptions()
opts["runeOrientation"] = { opts["runeOrientation"] = {
type = 'select', type = 'select',
name = 'Rune orientation', name = L["Rune orientation"],
desc = 'Whether the runes should draw side-by-side or on top of one another', desc = L["Whether the runes should draw side-by-side or on top of one another"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.displayMode) return IceHUD:GetSelectValue(info, self.moduleSettings.displayMode)
end, end,
@ -148,8 +149,8 @@ function IceClassPowerCounter.prototype:GetOptions()
opts["inactiveDisplayMode"] = { opts["inactiveDisplayMode"] = {
type = 'select', type = 'select',
name = 'Inactive mode', name = L["Inactive mode"],
desc = "This controls what happens to runes that are inactive. Darkened means they are visible but colored black, Hidden means they are not displayed.", desc = L["This controls what happens to runes that are inactive. Darkened means they are visible but colored black, Hidden means they are not displayed."],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.inactiveDisplayMode) return IceHUD:GetSelectValue(info, self.moduleSettings.inactiveDisplayMode)
end, end,
@ -170,8 +171,8 @@ function IceClassPowerCounter.prototype:GetOptions()
opts["flashWhenReady"] = { opts["flashWhenReady"] = {
type = "toggle", type = "toggle",
name = "Flash when ready", name = L["Flash when ready"],
desc = "Shows a flash behind each holy rune when it becomes available.", desc = L["Shows a flash behind each holy rune when it becomes available."],
get = function() get = function()
return self.moduleSettings.flashWhenBecomingReady return self.moduleSettings.flashWhenBecomingReady
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local ComboPoints = IceCore_CreateClass(IceElement) local ComboPoints = IceCore_CreateClass(IceElement)
ComboPoints.prototype.comboSize = 20 ComboPoints.prototype.comboSize = 20
@ -21,14 +22,14 @@ function ComboPoints.prototype:GetOptions()
opts["headerLookAndFeel"] = { opts["headerLookAndFeel"] = {
type = 'header', type = 'header',
name = 'Look and Feel', name = L["Look and Feel"],
order = 29.9 order = 29.9
} }
opts["vpos"] = { opts["vpos"] = {
type = "range", type = "range",
name = "Vertical Position", name = L["Vertical Position"],
desc = "Vertical Position", desc = L["Vertical Position"],
get = function() get = function()
return self.moduleSettings.vpos return self.moduleSettings.vpos
end, end,
@ -47,8 +48,8 @@ function ComboPoints.prototype:GetOptions()
opts["hpos"] = { opts["hpos"] = {
type = "range", type = "range",
name = "Horizontal Position", name = L["Horizontal Position"],
desc = "Horizontal Position", desc = L["Horizontal Position"],
get = function() get = function()
return self.moduleSettings.hpos return self.moduleSettings.hpos
end, end,
@ -67,8 +68,8 @@ function ComboPoints.prototype:GetOptions()
opts["comboFontSize"] = { opts["comboFontSize"] = {
type = "range", type = "range",
name = "Combo Points Font Size", name = L["Combo Points Font Size"],
desc = "Combo Points Font Size", desc = L["Combo Points Font Size"],
get = function() get = function()
return self.moduleSettings.comboFontSize return self.moduleSettings.comboFontSize
end, end,
@ -87,8 +88,8 @@ function ComboPoints.prototype:GetOptions()
opts["comboMode"] = { opts["comboMode"] = {
type = 'select', type = 'select',
name = "Display Mode", name = L["Display Mode"],
desc = "Show graphical or numeric combo points", desc = L["Show graphical or numeric combo points"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.comboMode) return IceHUD:GetSelectValue(info, self.moduleSettings.comboMode)
end, end,
@ -107,8 +108,8 @@ function ComboPoints.prototype:GetOptions()
opts["graphicalLayout"] = { opts["graphicalLayout"] = {
type = 'select', type = 'select',
name = 'Layout', name = L["Layout"],
desc = 'How the graphical combo points should be displayed', desc = L["How the graphical combo points should be displayed"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.graphicalLayout) return IceHUD:GetSelectValue(info, self.moduleSettings.graphicalLayout)
end, end,
@ -125,8 +126,8 @@ function ComboPoints.prototype:GetOptions()
opts["comboGap"] = { opts["comboGap"] = {
type = 'range', type = 'range',
name = 'Combo gap', name = L["Combo gap"],
desc = 'Spacing between each combo point (only works for graphical mode)', desc = L["Spacing between each combo point (only works for graphical mode)"],
min = 0, min = 0,
max = 100, max = 100,
step = 1, step = 1,
@ -145,8 +146,8 @@ function ComboPoints.prototype:GetOptions()
opts["gradient"] = { opts["gradient"] = {
type = "toggle", type = "toggle",
name = "Change color", name = L["Change color"],
desc = "1 combo point: yellow, 5 combo points: red", desc = L["1 combo point: yellow, 5 combo points: red"],
get = function() get = function()
return self.moduleSettings.gradient return self.moduleSettings.gradient
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local ComboPointsBar = IceCore_CreateClass(IceBarElement) local ComboPointsBar = IceCore_CreateClass(IceBarElement)
function ComboPointsBar.prototype:init() function ComboPointsBar.prototype:init()
@ -12,8 +13,8 @@ function ComboPointsBar.prototype:GetOptions()
opts["alwaysDisplay"] = { opts["alwaysDisplay"] = {
type = "toggle", type = "toggle",
name = "Always display bar", name = L["Always display bar"],
desc = "Whether this bar should hide when the player has 0 combo points or stay visible", desc = L["Whether this bar should hide when the player has 0 combo points or stay visible"],
get = function() get = function()
return self.moduleSettings.alwaysDisplay return self.moduleSettings.alwaysDisplay
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceCustomBar = IceCore_CreateClass(IceUnitBar) IceCustomBar = IceCore_CreateClass(IceUnitBar)
local validUnits = {"player", "target", "focus", "focustarget", "pet", "pettarget", "vehicle", "targettarget", "main hand weapon", "off hand weapon"} local validUnits = {"player", "target", "focus", "focustarget", "pet", "pettarget", "vehicle", "targettarget", "main hand weapon", "off hand weapon"}
@ -144,14 +145,14 @@ function IceCustomBar.prototype:GetOptions()
opts["customHeader"] = { opts["customHeader"] = {
type = 'header', type = 'header',
name = "Custom bar settings", name = L["Custom bar settings"],
order = 30.1, order = 30.1,
} }
opts["deleteme"] = { opts["deleteme"] = {
type = 'execute', type = 'execute',
name = 'Delete me', name = L["Delete me"],
desc = 'Deletes this custom module and all associated settings. Cannot be undone!', desc = L["Deletes this custom module and all associated settings. Cannot be undone!"],
func = function() func = function()
local dialog = StaticPopup_Show("ICEHUD_DELETE_CUSTOM_MODULE") local dialog = StaticPopup_Show("ICEHUD_DELETE_CUSTOM_MODULE")
if dialog then if dialog then
@ -163,8 +164,8 @@ function IceCustomBar.prototype:GetOptions()
opts["duplicateme"] = { opts["duplicateme"] = {
type = 'execute', type = 'execute',
name = 'Duplicate me', name = L["Duplicate me"],
desc = 'Creates a new module of this same type and with all the same settings.', desc = L["Creates a new module of this same type and with all the same settings."],
func = function() func = function()
IceHUD:CreateCustomModuleAndNotify(self.moduleSettings.customBarType, self.moduleSettings) IceHUD:CreateCustomModuleAndNotify(self.moduleSettings.customBarType, self.moduleSettings)
end, end,
@ -173,8 +174,8 @@ function IceCustomBar.prototype:GetOptions()
opts["name"] = { opts["name"] = {
type = 'input', type = 'input',
name = 'Bar name', name = L["Bar name"],
desc = 'The name of this bar (must be unique!).\n\nRemember to press ENTER after filling out this box with the name you want or it will not save.', desc = L["The name of this bar (must be unique!).\n\nRemember to press ENTER after filling out this box with the name you want or it will not save."],
get = function() get = function()
return self.elementName return self.elementName
end, end,
@ -193,8 +194,8 @@ function IceCustomBar.prototype:GetOptions()
opts["unitToTrack"] = { opts["unitToTrack"] = {
type = 'select', type = 'select',
values = validUnits, values = validUnits,
name = 'Unit to track', name = L["Unit to track"],
desc = 'Select which unit that this bar should be looking for buffs/debuffs on', desc = L["Select which unit that this bar should be looking for buffs/debuffs on"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.myUnit) return IceHUD:GetSelectValue(info, self.moduleSettings.myUnit)
end, end,
@ -215,8 +216,8 @@ function IceCustomBar.prototype:GetOptions()
opts["buffOrDebuff"] = { opts["buffOrDebuff"] = {
type = 'select', type = 'select',
values = buffOrDebuff, values = buffOrDebuff,
name = 'Buff or debuff?', name = L["Buff or debuff?"],
desc = 'Whether we are tracking a buff or debuff', desc = L["Whether we are tracking a buff or debuff"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.buffOrDebuff) return IceHUD:GetSelectValue(info, self.moduleSettings.buffOrDebuff)
end, end,
@ -233,8 +234,8 @@ function IceCustomBar.prototype:GetOptions()
opts["buffToTrack"] = { opts["buffToTrack"] = {
type = 'input', type = 'input',
name = "Aura to track", name = L["Aura to track"],
desc = "Which buff/debuff this bar will be tracking.\n\nRemember to press ENTER after filling out this box with the name you want or it will not save.", desc = L["Which buff/debuff this bar will be tracking.\n\nRemember to press ENTER after filling out this box with the name you want or it will not save."],
get = function() get = function()
return self.moduleSettings.buffToTrack return self.moduleSettings.buffToTrack
end, end,
@ -255,8 +256,8 @@ function IceCustomBar.prototype:GetOptions()
opts["exactMatch"] = { opts["exactMatch"] = {
type = 'toggle', type = 'toggle',
name = 'Exact match only', name = L["Exact match only"],
desc = 'If this is checked, then the buff name must be entered exactly as the full buff name. Otherwise, you can use only a portion of the name such as "Sting" to track all stings.', desc = L["If this is checked, then the buff name must be entered exactly as the full buff name. Otherwise, you can use only a portion of the name such as 'Sting' to track all stings."],
get = function() get = function()
return self.moduleSettings.exactMatch return self.moduleSettings.exactMatch
end, end,
@ -273,8 +274,8 @@ function IceCustomBar.prototype:GetOptions()
opts["trackOnlyMine"] = { opts["trackOnlyMine"] = {
type = 'toggle', type = 'toggle',
name = 'Only track auras by me', name = L["Only track auras by me"],
desc = 'Checking this means that only buffs or debuffs that the player applied will trigger this bar', desc = L["Checking this means that only buffs or debuffs that the player applied will trigger this bar"],
get = function() get = function()
return self.moduleSettings.trackOnlyMine return self.moduleSettings.trackOnlyMine
end, end,
@ -291,8 +292,8 @@ function IceCustomBar.prototype:GetOptions()
opts["barColor"] = { opts["barColor"] = {
type = 'color', type = 'color',
name = 'Bar color', name = L["Bar color"],
desc = 'The color for this bar', desc = L["The color for this bar"],
get = function() get = function()
return self:GetBarColor() return self:GetBarColor()
end, end,
@ -310,8 +311,8 @@ function IceCustomBar.prototype:GetOptions()
opts["displayWhenEmpty"] = { opts["displayWhenEmpty"] = {
type = 'toggle', type = 'toggle',
name = 'Display when empty', name = L["Display when empty"],
desc = 'Whether or not to display this bar even if the buff/debuff specified is not present.', desc = L["Whether or not to display this bar even if the buff/debuff specified is not present."],
get = function() get = function()
return self.moduleSettings.displayWhenEmpty return self.moduleSettings.displayWhenEmpty
end, end,
@ -327,8 +328,8 @@ function IceCustomBar.prototype:GetOptions()
opts["buffTimerDisplay"] = { opts["buffTimerDisplay"] = {
type = 'select', type = 'select',
name = 'Buff timer display', name = L["Buff timer display"],
desc = 'How to display the buff timer next to the name of the buff on the bar', desc = L["How to display the buff timer next to the name of the buff on the bar"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.buffTimerDisplay) return IceHUD:GetSelectValue(info, self.moduleSettings.buffTimerDisplay)
end, end,
@ -345,8 +346,8 @@ function IceCustomBar.prototype:GetOptions()
opts["maxDuration"] = { opts["maxDuration"] = {
type = 'input', type = 'input',
name = "Maximum duration", name = L["Maximum duration"],
desc = "Maximum Duration for the bar (the bar will remained full if it has longer than maximum remaining). Leave 0 for spell duration.\n\nRemember to press ENTER after filling out this box with the name you want or it will not save.", desc = L["Maximum Duration for the bar (the bar will remained full if it has longer than maximum remaining). Leave 0 for spell duration.\n\nRemember to press ENTER after filling out this box with the name you want or it will not save."],
get = function() get = function()
return self.moduleSettings.maxDuration return self.moduleSettings.maxDuration
end, end,
@ -366,12 +367,12 @@ function IceCustomBar.prototype:GetOptions()
opts["iconSettings"] = { opts["iconSettings"] = {
type = 'group', type = 'group',
name = '|c'..self.configColor..'Icon Settings|r', name = "|c"..self.configColor..L["Icon Settings"].."|r",
args = { args = {
displayAuraIcon = { displayAuraIcon = {
type = 'toggle', type = 'toggle',
name = "Display aura icon", name = L["Display aura icon"],
desc = "Whether or not to display an icon for the aura that this bar is tracking", desc = L["Whether or not to display an icon for the aura that this bar is tracking"],
get = function() get = function()
return self.moduleSettings.displayAuraIcon return self.moduleSettings.displayAuraIcon
end, end,
@ -396,8 +397,8 @@ function IceCustomBar.prototype:GetOptions()
min = -250, min = -250,
max = 250, max = 250,
step = 1, step = 1,
name = "Aura icon horizontal offset", name = L["Aura icon horizontal offset"],
desc = "Adjust the horizontal position of the aura icon", desc = L["Adjust the horizontal position of the aura icon"],
get = function() get = function()
return self.moduleSettings.auraIconXOffset return self.moduleSettings.auraIconXOffset
end, end,
@ -416,8 +417,8 @@ function IceCustomBar.prototype:GetOptions()
min = -250, min = -250,
max = 250, max = 250,
step = 1, step = 1,
name = "Aura icon vertical offset", name = L["Aura icon vertical offset"],
desc = "Adjust the vertical position of the aura icon", desc = L["Adjust the vertical position of the aura icon"],
get = function() get = function()
return self.moduleSettings.auraIconYOffset return self.moduleSettings.auraIconYOffset
end, end,
@ -436,8 +437,8 @@ function IceCustomBar.prototype:GetOptions()
min = 0.1, min = 0.1,
max = 3.0, max = 3.0,
step = 0.05, step = 0.05,
name = 'Aura icon scale', name = L["Aura icon scale"],
desc = 'Adjusts the size of the aura icon for this bar', desc = L["Adjusts the size of the aura icon for this bar"],
get = function() get = function()
return self.moduleSettings.auraIconScale return self.moduleSettings.auraIconScale
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceCustomCDBar = IceCore_CreateClass(IceUnitBar) IceCustomCDBar = IceCore_CreateClass(IceUnitBar)
@ -131,14 +132,14 @@ function IceCustomCDBar.prototype:GetOptions()
opts["customHeader"] = { opts["customHeader"] = {
type = 'header', type = 'header',
name = "Custom CD settings", name = L["Custom CD settings"],
order = 30.1, order = 30.1,
} }
opts["deleteme"] = { opts["deleteme"] = {
type = 'execute', type = 'execute',
name = 'Delete me', name = L["Delete me"],
desc = 'Deletes this custom module and all associated settings. Cannot be undone!', desc = L["Deletes this custom module and all associated settings. Cannot be undone!"],
func = function() func = function()
local dialog = StaticPopup_Show("ICEHUD_DELETE_CUSTOM_MODULE") local dialog = StaticPopup_Show("ICEHUD_DELETE_CUSTOM_MODULE")
if dialog then if dialog then
@ -150,8 +151,8 @@ function IceCustomCDBar.prototype:GetOptions()
opts["duplicateme"] = { opts["duplicateme"] = {
type = 'execute', type = 'execute',
name = 'Duplicate me', name = L["Duplicate me"],
desc = 'Creates a new module of this same type and with all the same settings.', desc = L["Creates a new module of this same type and with all the same settings."],
func = function() func = function()
IceHUD:CreateCustomModuleAndNotify(self.moduleSettings.customBarType, self.moduleSettings) IceHUD:CreateCustomModuleAndNotify(self.moduleSettings.customBarType, self.moduleSettings)
end, end,
@ -160,8 +161,8 @@ function IceCustomCDBar.prototype:GetOptions()
opts["name"] = { opts["name"] = {
type = 'input', type = 'input',
name = 'Bar name', name = L["Bar name"],
desc = 'The name of this bar (must be unique!).\n\nRemember to press ENTER after filling out this box with the name you want or it will not save.', desc = L["The name of this bar (must be unique!).\n\nRemember to press ENTER after filling out this box with the name you want or it will not save."],
get = function() get = function()
return self.elementName return self.elementName
end, end,
@ -179,8 +180,8 @@ function IceCustomCDBar.prototype:GetOptions()
opts["cooldownToTrack"] = { opts["cooldownToTrack"] = {
type = 'input', type = 'input',
name = "Spell to track", name = L["Spell to track"],
desc = "Which spell cooldown this bar will be tracking.\n\nRemember to press ENTER after filling out this box with the name you want or it will not save.", desc = L["Which spell cooldown this bar will be tracking.\n\nRemember to press ENTER after filling out this box with the name you want or it will not save."],
get = function() get = function()
return self.moduleSettings.cooldownToTrack return self.moduleSettings.cooldownToTrack
end, end,
@ -202,8 +203,8 @@ function IceCustomCDBar.prototype:GetOptions()
opts["barColor"] = { opts["barColor"] = {
type = 'color', type = 'color',
name = 'Bar color', name = L["Bar color"],
desc = 'The color for this bar', desc = L["The color for this bar"],
get = function() get = function()
return self:GetBarColor() return self:GetBarColor()
end, end,
@ -221,8 +222,8 @@ function IceCustomCDBar.prototype:GetOptions()
opts["displayMode"] = { opts["displayMode"] = {
type = 'select', type = 'select',
name = 'Display mode', name = L["Display mode"],
desc = 'When to display this bar.', desc = L["When to display this bar."],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.displayMode) return IceHUD:GetSelectValue(info, self.moduleSettings.displayMode)
end, end,
@ -239,8 +240,8 @@ function IceCustomCDBar.prototype:GetOptions()
opts["cooldownTimerDisplay"] = { opts["cooldownTimerDisplay"] = {
type = 'select', type = 'select',
name = 'Cooldown timer display', name = L["Cooldown timer display"],
desc = 'How to display the buff timer next to the name of the buff on the bar', desc = L["How to display the buff timer next to the name of the buff on the bar"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.cooldownTimerDisplay) return IceHUD:GetSelectValue(info, self.moduleSettings.cooldownTimerDisplay)
end, end,
@ -257,8 +258,8 @@ function IceCustomCDBar.prototype:GetOptions()
opts["maxDuration"] = { opts["maxDuration"] = {
type = 'input', type = 'input',
name = "Maximum duration", name = L["Maximum duration"],
desc = "Maximum Duration for the bar (the bar will remained full if it has longer than maximum remaining). Leave 0 for spell duration.\n\nRemember to press ENTER after filling out this box with the name you want or it will not save.", desc = L["Maximum Duration for the bar (the bar will remained full if it has longer than maximum remaining). Leave 0 for spell duration.\n\nRemember to press ENTER after filling out this box with the name you want or it will not save."],
get = function() get = function()
return self.moduleSettings.maxDuration return self.moduleSettings.maxDuration
end, end,
@ -278,12 +279,12 @@ function IceCustomCDBar.prototype:GetOptions()
opts["iconSettings"] = { opts["iconSettings"] = {
type = 'group', type = 'group',
name = '|c'..self.configColor..'Icon Settings|r', name = "|c"..self.configColor..L["Icon Settings"].."|r",
args = { args = {
displayAuraIcon = { displayAuraIcon = {
type = 'toggle', type = 'toggle',
name = "Display aura icon", name = L["Display aura icon"],
desc = "Whether or not to display an icon for the aura that this bar is tracking", desc = L["Whether or not to display an icon for the aura that this bar is tracking"],
get = function() get = function()
return self.moduleSettings.displayAuraIcon return self.moduleSettings.displayAuraIcon
end, end,
@ -302,8 +303,8 @@ function IceCustomCDBar.prototype:GetOptions()
min = -250, min = -250,
max = 250, max = 250,
step = 1, step = 1,
name = "Aura icon horizontal offset", name = L["Aura icon horizontal offset"],
desc = "Adjust the horizontal position of the aura icon", desc = L["Adjust the horizontal position of the aura icon"],
get = function() get = function()
return self.moduleSettings.auraIconXOffset return self.moduleSettings.auraIconXOffset
end, end,
@ -322,8 +323,8 @@ function IceCustomCDBar.prototype:GetOptions()
min = -250, min = -250,
max = 250, max = 250,
step = 1, step = 1,
name = "Aura icon vertical offset", name = L["Aura icon vertical offset"],
desc = "Adjust the vertical position of the aura icon", desc = L["Adjust the vertical position of the aura icon"],
get = function() get = function()
return self.moduleSettings.auraIconYOffset return self.moduleSettings.auraIconYOffset
end, end,
@ -342,8 +343,8 @@ function IceCustomCDBar.prototype:GetOptions()
min = 0.1, min = 0.1,
max = 3.0, max = 3.0,
step = 0.05, step = 0.05,
name = 'Aura icon scale', name = L["Aura icon scale"],
desc = 'Adjusts the size of the aura icon for this bar', desc = L["Adjusts the size of the aura icon for this bar"],
get = function() get = function()
return self.moduleSettings.auraIconScale return self.moduleSettings.auraIconScale
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceCustomCount = IceCore_CreateClass(IceElement) IceCustomCount = IceCore_CreateClass(IceElement)
IceCustomCount.prototype.countSize = 20 IceCustomCount.prototype.countSize = 20
@ -20,14 +21,14 @@ function IceCustomCount.prototype:GetOptions()
opts["customHeader"] = { opts["customHeader"] = {
type = 'header', type = 'header',
name = "Aura settings", name = L["Aura settings"],
order = 30.1, order = 30.1,
} }
opts["deleteme"] = { opts["deleteme"] = {
type = 'execute', type = 'execute',
name = 'Delete me', name = L["Delete me"],
desc = 'Deletes this custom module and all associated settings. Cannot be undone!', desc = L["Deletes this custom module and all associated settings. Cannot be undone!"],
func = function() func = function()
local dialog = StaticPopup_Show("ICEHUD_DELETE_CUSTOM_MODULE") local dialog = StaticPopup_Show("ICEHUD_DELETE_CUSTOM_MODULE")
if dialog then if dialog then
@ -39,8 +40,8 @@ function IceCustomCount.prototype:GetOptions()
opts["duplicateme"] = { opts["duplicateme"] = {
type = 'execute', type = 'execute',
name = 'Duplicate me', name = L["Duplicate me"],
desc = 'Creates a new module of this same type and with all the same settings.', desc = L["Creates a new module of this same type and with all the same settings."],
func = function() func = function()
IceHUD:CreateCustomModuleAndNotify(self.moduleSettings.customBarType, self.moduleSettings) IceHUD:CreateCustomModuleAndNotify(self.moduleSettings.customBarType, self.moduleSettings)
end, end,
@ -49,8 +50,8 @@ function IceCustomCount.prototype:GetOptions()
opts["name"] = { opts["name"] = {
type = 'input', type = 'input',
name = 'Counter name', name = L["Counter name"],
desc = 'The name of this counter (must be unique!). \n\nRemember to press ENTER after filling out this box with the name you want or it will not save.', desc = L["The name of this counter (must be unique!). \n\nRemember to press ENTER after filling out this box with the name you want or it will not save."],
get = function() get = function()
return self.elementName return self.elementName
end, end,
@ -69,8 +70,8 @@ function IceCustomCount.prototype:GetOptions()
opts["auraTarget"] = { opts["auraTarget"] = {
type = 'select', type = 'select',
values = validUnits, values = validUnits,
name = 'Unit to track', name = L["Unit to track"],
desc = 'Select which unit that this bar should be looking for buffs/debuffs on', desc = L["Select which unit that this bar should be looking for buffs/debuffs on"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.auraTarget) return IceHUD:GetSelectValue(info, self.moduleSettings.auraTarget)
end, end,
@ -89,8 +90,8 @@ function IceCustomCount.prototype:GetOptions()
opts["auraType"] = { opts["auraType"] = {
type = 'select', type = 'select',
values = buffOrDebuff, values = buffOrDebuff,
name = 'Buff or debuff?', name = L["Buff or debuff?"],
desc = 'Whether we are tracking a buff or debuff', desc = L["Whether we are tracking a buff or debuff"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.auraType) return IceHUD:GetSelectValue(info, self.moduleSettings.auraType)
end, end,
@ -106,8 +107,8 @@ function IceCustomCount.prototype:GetOptions()
opts["auraName"] = { opts["auraName"] = {
type = 'input', type = 'input',
name = "Aura to track", name = L["Aura to track"],
desc = "Which buff/debuff this counter will be tracking. \n\nRemember to press ENTER after filling out this box with the name you want or it will not save.", desc = L["Which buff/debuff this counter will be tracking. \n\nRemember to press ENTER after filling out this box with the name you want or it will not save."],
get = function() get = function()
return self.moduleSettings.auraName return self.moduleSettings.auraName
end, end,
@ -124,8 +125,8 @@ function IceCustomCount.prototype:GetOptions()
opts["trackOnlyMine"] = { opts["trackOnlyMine"] = {
type = 'toggle', type = 'toggle',
name = 'Only track auras by me', name = L["Only track auras by me"],
desc = 'Checking this means that only buffs or debuffs that the player applied will trigger this bar', desc = L["Checking this means that only buffs or debuffs that the player applied will trigger this bar"],
get = function() get = function()
return self.moduleSettings.onlyMine return self.moduleSettings.onlyMine
end, end,
@ -141,8 +142,8 @@ function IceCustomCount.prototype:GetOptions()
opts["countColor"] = { opts["countColor"] = {
type = 'color', type = 'color',
name = 'Count color', name = L["Count color"],
desc = 'The color for this counter', desc = L["The color for this counter"],
get = function() get = function()
return self:GetCustomColor() return self:GetCustomColor()
end, end,
@ -160,8 +161,8 @@ function IceCustomCount.prototype:GetOptions()
opts["countMinColor"] = { opts["countMinColor"] = {
type = 'color', type = 'color',
name = 'Count minimum color', name = L["Count minimum color"],
desc = 'The minimum color for this counter (only used if Change Color is enabled)', desc = L["The minimum color for this counter (only used if Change Color is enabled)"],
get = function() get = function()
return self:GetCustomMinColor() return self:GetCustomMinColor()
end, end,
@ -179,8 +180,8 @@ function IceCustomCount.prototype:GetOptions()
opts["maxCount"] = { opts["maxCount"] = {
type = 'input', type = 'input',
name = "Maximum applications", name = L["Maximum applications"],
desc = "How many total applications of this buff/debuff can be applied. For example, only 5 sunders can ever be on a target, so this would be set to 5 for tracking Sunder.\n\nRemember to press ENTER after filling out this box with the name you want or it will not save.", desc = L["How many total applications of this buff/debuff can be applied. For example, only 5 sunders can ever be on a target, so this would be set to 5 for tracking Sunder.\n\nRemember to press ENTER after filling out this box with the name you want or it will not save."],
get = function() get = function()
return self.moduleSettings.maxCount return self.moduleSettings.maxCount
end, end,
@ -200,14 +201,14 @@ function IceCustomCount.prototype:GetOptions()
opts["normalHeader"] = { opts["normalHeader"] = {
type = 'header', type = 'header',
name = "Counter look and feel", name = L["Counter look and feel"],
order = 31, order = 31,
} }
opts["vpos"] = { opts["vpos"] = {
type = "range", type = "range",
name = "Vertical Position", name = L["Vertical Position"],
desc = "Vertical Position", desc = L["Vertical Position"],
get = function() get = function()
return self.moduleSettings.vpos return self.moduleSettings.vpos
end, end,
@ -226,8 +227,8 @@ function IceCustomCount.prototype:GetOptions()
opts["hpos"] = { opts["hpos"] = {
type = "range", type = "range",
name = "Horizontal Position", name = L["Horizontal Position"],
desc = "Horizontal Position", desc = L["Horizontal Position"],
get = function() get = function()
return self.moduleSettings.hpos return self.moduleSettings.hpos
end, end,
@ -246,8 +247,8 @@ function IceCustomCount.prototype:GetOptions()
opts["CustomFontSize"] = { opts["CustomFontSize"] = {
type = "range", type = "range",
name = "Font Size", name = L["Font Size"],
desc = "Font Size", desc = L["Font Size"],
get = function() get = function()
return self.moduleSettings.countFontSize return self.moduleSettings.countFontSize
end, end,
@ -266,8 +267,8 @@ function IceCustomCount.prototype:GetOptions()
opts["CustomMode"] = { opts["CustomMode"] = {
type = 'select', type = 'select',
name = "Display Mode", name = L["Display Mode"],
desc = "Show graphical or numeric counts", desc = L["Show graphical or numeric counts"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.countMode) return IceHUD:GetSelectValue(info, self.moduleSettings.countMode)
end, end,
@ -286,8 +287,8 @@ function IceCustomCount.prototype:GetOptions()
opts["graphicalLayout"] = { opts["graphicalLayout"] = {
type = 'select', type = 'select',
name = 'Layout', name = L["Layout"],
desc = 'How the graphical counter should be displayed', desc = L["How the graphical counter should be displayed"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.graphicalLayout) return IceHUD:GetSelectValue(info, self.moduleSettings.graphicalLayout)
end, end,
@ -304,8 +305,8 @@ function IceCustomCount.prototype:GetOptions()
opts["countGap"] = { opts["countGap"] = {
type = 'range', type = 'range',
name = 'Icon gap', name = L["Icon gap"],
desc = 'Spacing between each icon (only works for graphical mode)', desc = L["Spacing between each icon (only works for graphical mode)"],
min = 0, min = 0,
max = 100, max = 100,
step = 1, step = 1,
@ -324,8 +325,8 @@ function IceCustomCount.prototype:GetOptions()
opts["gradient"] = { opts["gradient"] = {
type = "toggle", type = "toggle",
name = "Change color", name = L["Change color"],
desc = "This will fade the bars or numeric representation from the min color specified to the regular color\n\n(e.g. if the min color is yellow, the color is red, and there are 3 total applications, then the first would be yellow, second orange, and third red)", desc = L["This will fade the bars or numeric representation from the min color specified to the regular color\n\n(e.g. if the min color is yellow, the color is red, and there are 3 total applications, then the first would be yellow, second orange, and third red)"],
get = function() get = function()
return self.moduleSettings.gradient return self.moduleSettings.gradient
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceCustomHealth = IceCore_CreateClass(IceTargetHealth) IceCustomHealth = IceCore_CreateClass(IceTargetHealth)
IceCustomHealth.prototype.scheduledEvent = nil IceCustomHealth.prototype.scheduledEvent = nil
@ -35,14 +36,14 @@ function IceCustomHealth.prototype:GetOptions()
opts["customHeader"] = { opts["customHeader"] = {
type = 'header', type = 'header',
name = "Custom bar settings", name = L["Custom bar settings"],
order = 30.1, order = 30.1,
} }
opts["deleteme"] = { opts["deleteme"] = {
type = 'execute', type = 'execute',
name = 'Delete me', name = L["Delete me"],
desc = 'Deletes this custom module and all associated settings. Cannot be undone!', desc = L["Deletes this custom module and all associated settings. Cannot be undone!"],
func = function() func = function()
local dialog = StaticPopup_Show("ICEHUD_DELETE_CUSTOM_MODULE") local dialog = StaticPopup_Show("ICEHUD_DELETE_CUSTOM_MODULE")
if dialog then if dialog then
@ -54,8 +55,8 @@ function IceCustomHealth.prototype:GetOptions()
opts["duplicateme"] = { opts["duplicateme"] = {
type = 'execute', type = 'execute',
name = 'Duplicate me', name = L["Duplicate me"],
desc = 'Creates a new module of this same type and with all the same settings.', desc = L["Creates a new module of this same type and with all the same settings."],
func = function() func = function()
IceHUD:CreateCustomModuleAndNotify(self.moduleSettings.customBarType, self.moduleSettings) IceHUD:CreateCustomModuleAndNotify(self.moduleSettings.customBarType, self.moduleSettings)
end, end,
@ -64,8 +65,8 @@ function IceCustomHealth.prototype:GetOptions()
opts["name"] = { opts["name"] = {
type = 'input', type = 'input',
name = 'Bar name', name = L["Bar name"],
desc = 'The name of this bar (must be unique!).\n\nRemember to press ENTER after filling out this box with the name you want or it will not save.', desc = L["The name of this bar (must be unique!).\n\nRemember to press ENTER after filling out this box with the name you want or it will not save."],
get = function() get = function()
return self.elementName return self.elementName
end, end,
@ -83,8 +84,8 @@ function IceCustomHealth.prototype:GetOptions()
opts["unitToTrack"] = { opts["unitToTrack"] = {
type = 'input', type = 'input',
name = 'Unit to track', name = L["Unit to track"],
desc = 'Enter which unit that this bar should be monitoring the health of (e.g.: focustarget, pettarget, etc.)\n\nRemember to press ENTER after filling out this box with the name you want or it will not save.', desc = L["Enter which unit that this bar should be monitoring the health of (e.g.: focustarget, pettarget, etc.)\n\nRemember to press ENTER after filling out this box with the name you want or it will not save."],
get = function() get = function()
return self.moduleSettings.unitToTrack return self.moduleSettings.unitToTrack
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceCustomMana = IceCore_CreateClass(IceTargetMana) IceCustomMana = IceCore_CreateClass(IceTargetMana)
IceCustomMana.prototype.scheduledEvent = nil IceCustomMana.prototype.scheduledEvent = nil
@ -36,14 +37,14 @@ function IceCustomMana.prototype:GetOptions()
opts["customHeader"] = { opts["customHeader"] = {
type = 'header', type = 'header',
name = "Custom bar settings", name = L["Custom bar settings"],
order = 30.1, order = 30.1,
} }
opts["deleteme"] = { opts["deleteme"] = {
type = 'execute', type = 'execute',
name = 'Delete me', name = L["Delete me"],
desc = 'Deletes this custom module and all associated settings. Cannot be undone!', desc = L["Deletes this custom module and all associated settings. Cannot be undone!"],
func = function() func = function()
local dialog = StaticPopup_Show("ICEHUD_DELETE_CUSTOM_MODULE") local dialog = StaticPopup_Show("ICEHUD_DELETE_CUSTOM_MODULE")
if dialog then if dialog then
@ -55,8 +56,8 @@ function IceCustomMana.prototype:GetOptions()
opts["duplicateme"] = { opts["duplicateme"] = {
type = 'execute', type = 'execute',
name = 'Duplicate me', name = L["Duplicate me"],
desc = 'Creates a new module of this same type and with all the same settings.', desc = L["Creates a new module of this same type and with all the same settings."],
func = function() func = function()
IceHUD:CreateCustomModuleAndNotify(self.moduleSettings.customBarType, self.moduleSettings) IceHUD:CreateCustomModuleAndNotify(self.moduleSettings.customBarType, self.moduleSettings)
end, end,
@ -65,8 +66,8 @@ function IceCustomMana.prototype:GetOptions()
opts["name"] = { opts["name"] = {
type = 'input', type = 'input',
name = 'Bar name', name = L["Bar name"],
desc = 'The name of this bar (must be unique!).\n\nRemember to press ENTER after filling out this box with the name you want or it will not save.', desc = L["The name of this bar (must be unique!).\n\nRemember to press ENTER after filling out this box with the name you want or it will not save."],
get = function() get = function()
return self.elementName return self.elementName
end, end,
@ -84,8 +85,8 @@ function IceCustomMana.prototype:GetOptions()
opts["unitToTrack"] = { opts["unitToTrack"] = {
type = 'input', type = 'input',
name = 'Unit to track', name = L["Unit to track"],
desc = 'Enter which unit that this bar should be monitoring the mana of (e.g.: focustarget, pettarget, etc.)\n\nRemember to press ENTER after filling out this box with the name you want or it will not save.', desc = L["Enter which unit that this bar should be monitoring the mana of (e.g.: focustarget, pettarget, etc.)\n\nRemember to press ENTER after filling out this box with the name you want or it will not save."],
get = function() get = function()
return self.moduleSettings.unitToTrack return self.moduleSettings.unitToTrack
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local DruidMana = IceCore_CreateClass(IceUnitBar) local DruidMana = IceCore_CreateClass(IceUnitBar)
DruidMana.prototype.druidMana = nil DruidMana.prototype.druidMana = nil

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local EclipseBar = IceCore_CreateClass(IceBarElement) local EclipseBar = IceCore_CreateClass(IceBarElement)
EclipseBar.prototype.barUpdateColor = "EclipseLunar" EclipseBar.prototype.barUpdateColor = "EclipseLunar"

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
-- changed to inherit from the TargetCC bar since the only difference is the unit and the default placement -- changed to inherit from the TargetCC bar since the only difference is the unit and the default placement
-- helps keep changes in one place and we don't have to duplicate the CC spell tables and they don't have to be globals -- helps keep changes in one place and we don't have to duplicate the CC spell tables and they don't have to be globals
local FocusCC = IceCore_CreateClass(TargetCC) local FocusCC = IceCore_CreateClass(TargetCC)

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local FocusCast = IceCore_CreateClass(IceCastBar) local FocusCast = IceCore_CreateClass(IceCastBar)
-- Constructor -- -- Constructor --
@ -64,8 +65,8 @@ function FocusCast.prototype:GetOptions()
opts["barVisible"] = { opts["barVisible"] = {
type = 'toggle', type = 'toggle',
name = 'Bar visible', name = L["Bar visible"],
desc = 'Toggle bar visibility', desc = L["Toggle bar visibility"],
get = function() get = function()
return self.moduleSettings.barVisible['bar'] return self.moduleSettings.barVisible['bar']
end, end,
@ -85,8 +86,8 @@ function FocusCast.prototype:GetOptions()
opts["bgVisible"] = { opts["bgVisible"] = {
type = 'toggle', type = 'toggle',
name = 'Bar background visible', name = L["Bar background visible"],
desc = 'Toggle bar background visibility', desc = L["Toggle bar background visibility"],
get = function() get = function()
return self.moduleSettings.barVisible['bg'] return self.moduleSettings.barVisible['bg']
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local FocusHealth = IceCore_CreateClass(IceUnitBar) local FocusHealth = IceCore_CreateClass(IceUnitBar)
FocusHealth.prototype.color = nil FocusHealth.prototype.color = nil
@ -43,8 +44,8 @@ function FocusHealth.prototype:GetOptions()
opts["classColor"] = { opts["classColor"] = {
type = "toggle", type = "toggle",
name = "Class color bar", name = L["Class color bar"],
desc = "Use class color as the bar color instead of reaction color", desc = L["Use class color as the bar color instead of reaction color"],
get = function() get = function()
return self.moduleSettings.classColor return self.moduleSettings.classColor
end, end,
@ -60,8 +61,8 @@ function FocusHealth.prototype:GetOptions()
opts["hideBlizz"] = { opts["hideBlizz"] = {
type = "toggle", type = "toggle",
name = "Hide Blizzard Frame", name = L["Hide Blizzard Frame"],
desc = "Hides Blizzard Focus frame and disables all events related to it", desc = L["Hides Blizzard Focus frame and disables all events related to it"],
get = function() get = function()
return self.moduleSettings.hideBlizz return self.moduleSettings.hideBlizz
end, end,
@ -81,8 +82,8 @@ function FocusHealth.prototype:GetOptions()
opts["scaleHealthColor"] = { opts["scaleHealthColor"] = {
type = "toggle", type = "toggle",
name = "Color bar by health %", name = L["Color bar by health %"],
desc = "Colors the health bar from MaxHealthColor to MinHealthColor based on current health %", desc = L["Colors the health bar from MaxHealthColor to MinHealthColor based on current health %"],
get = function() get = function()
return self.moduleSettings.scaleHealthColor return self.moduleSettings.scaleHealthColor
end, end,
@ -98,12 +99,12 @@ function FocusHealth.prototype:GetOptions()
opts["iconSettings"] = { opts["iconSettings"] = {
type = 'group', type = 'group',
name = '|c'..self.configColor..'Icon Settings|r', name = "|c"..self.configColor..L["Icon Settings"].."|r",
args = { args = {
showRaidIcon = { showRaidIcon = {
type = "toggle", type = "toggle",
name = "Show Raid Icon", name = L["Show Raid Icon"],
desc = "Whether or not to show the raid icon above this bar", desc = L["Whether or not to show the raid icon above this bar"],
get = function() get = function()
return self.moduleSettings.showRaidIcon return self.moduleSettings.showRaidIcon
end, end,
@ -119,8 +120,8 @@ function FocusHealth.prototype:GetOptions()
lockIconAlpha = { lockIconAlpha = {
type = "toggle", type = "toggle",
name = "Lock raid icon to 100% alpha", name = L["Lock raid icon to 100% alpha"],
desc = "With this enabled, the raid icon is always 100% alpha, regardless of the bar's alpha. Otherwise, it assumes the bar's alpha level.", desc = L["With this enabled, the raid icon is always 100% alpha, regardless of the bar's alpha. Otherwise, it assumes the bar's alpha level."],
width = 'double', width = 'double',
get = function() get = function()
return self.moduleSettings.lockIconAlpha return self.moduleSettings.lockIconAlpha
@ -137,8 +138,8 @@ function FocusHealth.prototype:GetOptions()
raidIconOnTop = { raidIconOnTop = {
type = "toggle", type = "toggle",
name = "Draw Raid Icon On Top", name = L["Draw Raid Icon On Top"],
desc = "Whether to draw the raid icon in front of or behind this bar", desc = L["Whether to draw the raid icon in front of or behind this bar"],
get = function() get = function()
return self.moduleSettings.raidIconOnTop return self.moduleSettings.raidIconOnTop
end, end,
@ -154,8 +155,8 @@ function FocusHealth.prototype:GetOptions()
raidIconXOffset = { raidIconXOffset = {
type = "range", type = "range",
name = "Raid Icon X Offset", name = L["Raid Icon X Offset"],
desc = "How far to push the raid icon right or left", desc = L["How far to push the raid icon right or left"],
min = -300, min = -300,
max = 300, max = 300,
step = 1, step = 1,
@ -175,8 +176,8 @@ function FocusHealth.prototype:GetOptions()
raidIconYOffset = { raidIconYOffset = {
type = "range", type = "range",
name = "Raid Icon Y Offset", name = L["Raid Icon Y Offset"],
desc = "How far to push the raid icon up or down", desc = L["How far to push the raid icon up or down"],
min = -300, min = -300,
max = 300, max = 300,
step = 1, step = 1,
@ -198,8 +199,8 @@ function FocusHealth.prototype:GetOptions()
opts["shortenHealth"] = { opts["shortenHealth"] = {
type = 'toggle', type = 'toggle',
name = 'Abbreviate health', name = L["Abbreviate health"],
desc = 'If this is checked, then a health value of 1100 will display as 1.1k, otherwise it shows the number\n\nNote: this only applies if you are NOT using DogTag', desc = L["If this is checked, then a health value of 1100 will display as 1.1k, otherwise it shows the number\n\nNote: this only applies if you are NOT using DogTag"],
get = function() get = function()
return self.moduleSettings.abbreviateHealth return self.moduleSettings.abbreviateHealth
end, end,
@ -214,8 +215,8 @@ function FocusHealth.prototype:GetOptions()
opts["allowClickTarget"] = { opts["allowClickTarget"] = {
type = 'toggle', type = 'toggle',
name = 'Allow click-targeting', name = L["Allow click-targeting"],
desc = 'Whether or not to allow click targeting/casting for this bar (Note: does not work properly with HiBar, have to click near the base of the bar)', desc = L["Whether or not to allow click targeting/casting for this bar (Note: does not work properly with HiBar, have to click near the base of the bar)"],
get = function() get = function()
return self.moduleSettings.allowMouseInteraction return self.moduleSettings.allowMouseInteraction
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local FocusMana = IceCore_CreateClass(IceUnitBar) local FocusMana = IceCore_CreateClass(IceUnitBar)
@ -105,8 +106,8 @@ function FocusMana.prototype:GetOptions()
opts["scaleManaColor"] = { opts["scaleManaColor"] = {
type = "toggle", type = "toggle",
name = "Color bar by mana %", name = L["Color bar by mana %"],
desc = "Colors the mana bar from MaxManaColor to MinManaColor based on current mana %", desc = L["Colors the mana bar from MaxManaColor to MinManaColor based on current mana %"],
get = function() get = function()
return self.moduleSettings.scaleManaColor return self.moduleSettings.scaleManaColor
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local IceFocusThreat = IceCore_CreateClass(IceThreat) local IceFocusThreat = IceCore_CreateClass(IceThreat)
-- constructor -- constructor

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local GlobalCoolDown = IceCore_CreateClass(IceBarElement) local GlobalCoolDown = IceCore_CreateClass(IceBarElement)
-- Constructor -- -- Constructor --

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local HolyPower = IceCore_CreateClass(IceClassPowerCounter) local HolyPower = IceCore_CreateClass(IceClassPowerCounter)
function HolyPower.prototype:init() function HolyPower.prototype:init()

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local HungerForBlood = IceCore_CreateClass(IceUnitBar) local HungerForBlood = IceCore_CreateClass(IceUnitBar)
local hfbEndTime = 0 local hfbEndTime = 0
@ -72,8 +73,8 @@ function HungerForBlood.prototype:GetOptions()
opts["allowClickCast"] = { opts["allowClickCast"] = {
type = 'toggle', type = 'toggle',
name = 'Allow click casting', name = L["Allow click casting"],
desc = 'Whether or not to allow click casting of Hunger For Blood', desc = L["Whether or not to allow click casting of Hunger For Blood"],
get = function() get = function()
return self.moduleSettings.allowMouseInteraction return self.moduleSettings.allowMouseInteraction
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local LacerateCount = IceCore_CreateClass(IceElement) local LacerateCount = IceCore_CreateClass(IceElement)
LacerateCount.prototype.lacerateSize = 20 LacerateCount.prototype.lacerateSize = 20
@ -21,8 +22,8 @@ function LacerateCount.prototype:GetOptions()
opts["vpos"] = { opts["vpos"] = {
type = "range", type = "range",
name = "Vertical Position", name = L["Vertical Position"],
desc = "Vertical Position", desc = L["Vertical Position"],
get = function() get = function()
return self.moduleSettings.vpos return self.moduleSettings.vpos
end, end,
@ -41,8 +42,8 @@ function LacerateCount.prototype:GetOptions()
opts["hpos"] = { opts["hpos"] = {
type = "range", type = "range",
name = "Horizontal Position", name = L["Horizontal Position"],
desc = "Horizontal Position", desc = L["Horizontal Position"],
get = function() get = function()
return self.moduleSettings.hpos return self.moduleSettings.hpos
end, end,
@ -61,8 +62,8 @@ function LacerateCount.prototype:GetOptions()
opts["lacerateFontSize"] = { opts["lacerateFontSize"] = {
type = "range", type = "range",
name = "Lacerate Count Font Size", name = L["Lacerate Count Font Size"],
desc = "Lacerate Count Font Size", desc = L["Lacerate Count Font Size"],
get = function() get = function()
return self.moduleSettings.lacerateFontSize return self.moduleSettings.lacerateFontSize
end, end,
@ -81,8 +82,8 @@ function LacerateCount.prototype:GetOptions()
opts["lacerateMode"] = { opts["lacerateMode"] = {
type = 'select', type = 'select',
name = "Display Mode", name = L["Display Mode"],
desc = "Show graphical or numeric lacerates", desc = L["Show graphical or numeric lacerates"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.lacerateMode) return IceHUD:GetSelectValue(info, self.moduleSettings.lacerateMode)
end, end,
@ -101,8 +102,8 @@ function LacerateCount.prototype:GetOptions()
opts["lacerateGap"] = { opts["lacerateGap"] = {
type = 'range', type = 'range',
name = 'Lacerate gap', name = L["Lacerate gap"],
desc = 'Spacing between each lacerate count (only works for graphical mode)', desc = L["Spacing between each lacerate count (only works for graphical mode)"],
min = 0, min = 0,
max = 100, max = 100,
step = 1, step = 1,
@ -121,8 +122,8 @@ function LacerateCount.prototype:GetOptions()
opts["gradient"] = { opts["gradient"] = {
type = "toggle", type = "toggle",
name = "Change color", name = L["Change color"],
desc = "1 lacerate: yellow, 5 lacerates: red", desc = L["1 lacerate: yellow, 5 lacerates: red"],
get = function() get = function()
return self.moduleSettings.gradient return self.moduleSettings.gradient
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local MaelstromCount = IceCore_CreateClass(IceElement) local MaelstromCount = IceCore_CreateClass(IceElement)
MaelstromCount.prototype.maelstromSize = 20 MaelstromCount.prototype.maelstromSize = 20
@ -21,8 +22,8 @@ function MaelstromCount.prototype:GetOptions()
opts["vpos"] = { opts["vpos"] = {
type = "range", type = "range",
name = "Vertical Position", name = L["Vertical Position"],
desc = "Vertical Position", desc = L["Vertical Position"],
get = function() get = function()
return self.moduleSettings.vpos return self.moduleSettings.vpos
end, end,
@ -41,8 +42,8 @@ function MaelstromCount.prototype:GetOptions()
opts["maelstromFontSize"] = { opts["maelstromFontSize"] = {
type = "range", type = "range",
name = "Maelstrom Count Font Size", name = L["Maelstrom Count Font Size"],
desc = "Maelstrom Count Font Size", desc = L["Maelstrom Count Font Size"],
get = function() get = function()
return self.moduleSettings.maelstromFontSize return self.moduleSettings.maelstromFontSize
end, end,
@ -61,8 +62,8 @@ function MaelstromCount.prototype:GetOptions()
opts["maelstromMode"] = { opts["maelstromMode"] = {
type = 'select', type = 'select',
name = "Display Mode", name = L["Display Mode"],
desc = "Show graphical or numeric maelstroms", desc = L["Show graphical or numeric maelstroms"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.maelstromMode) return IceHUD:GetSelectValue(info, self.moduleSettings.maelstromMode)
end, end,
@ -81,8 +82,8 @@ function MaelstromCount.prototype:GetOptions()
opts["maelstromGap"] = { opts["maelstromGap"] = {
type = 'range', type = 'range',
name = 'Maelstrom gap', name = L["Maelstrom gap"],
desc = 'Spacing between each maelstrom point (only works for graphical mode)', desc = L["Spacing between each maelstrom point (only works for graphical mode)"],
min = 0, min = 0,
max = 100, max = 100,
step = 1, step = 1,
@ -101,8 +102,8 @@ function MaelstromCount.prototype:GetOptions()
opts["gradient"] = { opts["gradient"] = {
type = "toggle", type = "toggle",
name = "Change color", name = L["Change color"],
desc = "1 maelstrom: yellow, 5 maelstroms: red", desc = L["1 maelstrom: yellow, 5 maelstroms: red"],
get = function() get = function()
return self.moduleSettings.gradient return self.moduleSettings.gradient
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
-- 2 classes in the same file.. ugly but keeps the idea of -- 2 classes in the same file.. ugly but keeps the idea of
-- "1 module = 1 file" intact -- "1 module = 1 file" intact
@ -192,15 +193,15 @@ function MirrorBarHandler.prototype:GetOptions()
opts["headerLookAndFeel"] = { opts["headerLookAndFeel"] = {
type = 'header', type = 'header',
name = 'Look and Feel', name = L["Look and Feel"],
order = 29.9 order = 29.9
} }
opts["side"] = opts["side"] =
{ {
type = 'select', type = 'select',
name = 'Side', name = L["Side"],
desc = 'Side of the HUD where the bar appears', desc = L["Side of the HUD where the bar appears"],
get = function(info) get = function(info)
if (self.moduleSettings.side == IceCore.Side.Right) then if (self.moduleSettings.side == IceCore.Side.Right) then
return 2 return 2
@ -223,8 +224,8 @@ function MirrorBarHandler.prototype:GetOptions()
opts["offset"] = opts["offset"] =
{ {
type = 'range', type = 'range',
name = 'Offset', name = L["Offset"],
desc = 'Offset of the bar', desc = L["Offset of the bar"],
min = -1, min = -1,
max = 10, max = 10,
step = 1, step = 1,
@ -240,8 +241,8 @@ function MirrorBarHandler.prototype:GetOptions()
opts["barVisible"] = { opts["barVisible"] = {
type = 'toggle', type = 'toggle',
name = 'Bar visible', name = L["Bar visible"],
desc = 'Toggle bar visibility', desc = L["Toggle bar visibility"],
get = function() get = function()
return self.moduleSettings.barVisible['bar'] return self.moduleSettings.barVisible['bar']
end, end,
@ -257,8 +258,8 @@ function MirrorBarHandler.prototype:GetOptions()
opts["bgVisible"] = { opts["bgVisible"] = {
type = 'toggle', type = 'toggle',
name = 'Bar background visible', name = L["Bar background visible"],
desc = 'Toggle bar background visibility', desc = L["Toggle bar background visibility"],
get = function() get = function()
return self.moduleSettings.barVisible['bg'] return self.moduleSettings.barVisible['bg']
end, end,
@ -275,8 +276,8 @@ function MirrorBarHandler.prototype:GetOptions()
opts["barVerticalOffset"] = opts["barVerticalOffset"] =
{ {
type='range', type='range',
name = 'Bar vertical offset', name = L["Bar vertical offset"],
desc = 'Adjust the vertical placement of this bar', desc = L["Adjust the vertical placement of this bar"],
min = -400, min = -400,
max = 400, max = 400,
step = 1, step = 1,
@ -296,14 +297,14 @@ function MirrorBarHandler.prototype:GetOptions()
opts["textSettings"] = opts["textSettings"] =
{ {
type = 'group', type = 'group',
name = '|c' .. self.configColor .. 'Text Settings|r', name = "|c"..self.configColor..L["Text Settings"].."|r",
desc = 'Settings related to texts', desc = L["Settings related to texts"],
order = 32, order = 32,
args = { args = {
fontsize = { fontsize = {
type = 'range', type = 'range',
name = 'Bar Font Size', name = L["Bar Font Size"],
desc = 'Bar Font Size', desc = L["Bar Font Size"],
get = function() get = function()
return self.moduleSettings.barFontSize return self.moduleSettings.barFontSize
end, end,
@ -319,8 +320,8 @@ function MirrorBarHandler.prototype:GetOptions()
fontBold = { fontBold = {
type = 'toggle', type = 'toggle',
name = 'Bar Font Bold', name = L["Bar Font Bold"],
desc = 'If you have game default font selected, this option has no effect', desc = L["If you have game default font selected, this option has no effect"],
get = function() get = function()
return self.moduleSettings.barFontBold return self.moduleSettings.barFontBold
end, end,
@ -333,8 +334,8 @@ function MirrorBarHandler.prototype:GetOptions()
lockFontAlpha = { lockFontAlpha = {
type = "toggle", type = "toggle",
name = "Lock Bar Text Alpha", name = L["Lock Bar Text Alpha"],
desc = "Locks upper text alpha to 100%", desc = L["Locks upper text alpha to 100%"],
get = function() get = function()
return self.moduleSettings.lockTextAlpha return self.moduleSettings.lockTextAlpha
end, end,
@ -347,8 +348,8 @@ function MirrorBarHandler.prototype:GetOptions()
upperTextVisible = { upperTextVisible = {
type = 'toggle', type = 'toggle',
name = 'Upper text visible', name = L["Upper text visible"],
desc = 'Toggle upper text visibility', desc = L["Toggle upper text visibility"],
get = function() get = function()
return self.moduleSettings.textVisible['upper'] return self.moduleSettings.textVisible['upper']
end, end,
@ -361,8 +362,8 @@ function MirrorBarHandler.prototype:GetOptions()
lowerTextVisible = { lowerTextVisible = {
type = 'toggle', type = 'toggle',
name = 'Lower text visible', name = L["Lower text visible"],
desc = 'Toggle lower text visibility', desc = L["Toggle lower text visibility"],
get = function() get = function()
return self.moduleSettings.textVisible['lower'] return self.moduleSettings.textVisible['lower']
end, end,
@ -375,8 +376,8 @@ function MirrorBarHandler.prototype:GetOptions()
textVerticalOffset = { textVerticalOffset = {
type = 'range', type = 'range',
name = 'Text Vertical Offset', name = L["Text Vertical Offset"],
desc = 'Offset of the text from the bar vertically (negative is farther below)', desc = L["Offset of the text from the bar vertically (negative is farther below)"],
min = -250, min = -250,
max = 350, max = 350,
step = 1, step = 1,
@ -394,8 +395,8 @@ function MirrorBarHandler.prototype:GetOptions()
textHorizontalOffset = { textHorizontalOffset = {
type = 'range', type = 'range',
name = 'Text Horizontal Offset', name = L["Text Horizontal Offset"],
desc = 'Offset of the text from the bar horizontally', desc = L["Offset of the text from the bar horizontally"],
min = -50, min = -50,
max = 50, max = 50,
step = 1, step = 1,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local PetHealth = IceCore_CreateClass(IceUnitBar) local PetHealth = IceCore_CreateClass(IceUnitBar)
PetHealth.prototype.happiness = nil PetHealth.prototype.happiness = nil
@ -141,8 +142,8 @@ function PetHealth.prototype:GetOptions()
opts["scaleHealthColor"] = { opts["scaleHealthColor"] = {
type = "toggle", type = "toggle",
name = "Color bar by health %", name = L["Color bar by health %"],
desc = "Colors the health bar from MaxHealthColor to MinHealthColor based on current health %", desc = L["Colors the health bar from MaxHealthColor to MinHealthColor based on current health %"],
get = function() get = function()
return self.moduleSettings.scaleHealthColor return self.moduleSettings.scaleHealthColor
end, end,
@ -158,8 +159,8 @@ function PetHealth.prototype:GetOptions()
opts["allowClickTarget"] = { opts["allowClickTarget"] = {
type = 'toggle', type = 'toggle',
name = 'Allow click-targeting', name = L["Allow click-targeting"],
desc = 'Whether or not to allow click targeting/casting for this bar (Note: does not work properly with HiBar, have to click near the base of the bar)', desc = L["Whether or not to allow click targeting/casting for this bar (Note: does not work properly with HiBar, have to click near the base of the bar)"],
get = function() get = function()
return self.moduleSettings.allowMouseInteraction return self.moduleSettings.allowMouseInteraction
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local PetInfo = IceCore_CreateClass(IceTargetInfo) local PetInfo = IceCore_CreateClass(IceTargetInfo)
-- Constructor -- -- Constructor --

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local PetMana = IceCore_CreateClass(IceUnitBar) local PetMana = IceCore_CreateClass(IceUnitBar)
-- Constructor -- -- Constructor --
@ -196,8 +197,8 @@ function PetMana.prototype:GetOptions()
opts["scaleManaColor"] = { opts["scaleManaColor"] = {
type = "toggle", type = "toggle",
name = "Color bar by mana %", name = L["Color bar by mana %"],
desc = "Colors the mana bar from MaxManaColor to MinManaColor based on current mana %", desc = L["Colors the mana bar from MaxManaColor to MinManaColor based on current mana %"],
get = function() get = function()
return self.moduleSettings.scaleManaColor return self.moduleSettings.scaleManaColor
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
-- changed to inherit from the TargetCC bar since the only difference is the unit and the default placement -- changed to inherit from the TargetCC bar since the only difference is the unit and the default placement
-- helps keep changes in one place and we don't have to duplicate the CC spell tables and they don't have to be globals -- helps keep changes in one place and we don't have to duplicate the CC spell tables and they don't have to be globals
local PlayerCC = IceCore_CreateClass(TargetCC) local PlayerCC = IceCore_CreateClass(TargetCC)

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local PlayerHealth = IceCore_CreateClass(IceUnitBar) local PlayerHealth = IceCore_CreateClass(IceUnitBar)
PlayerHealth.prototype.resting = nil PlayerHealth.prototype.resting = nil
@ -164,8 +165,8 @@ function PlayerHealth.prototype:GetOptions()
opts["classColor"] = { opts["classColor"] = {
type = "toggle", type = "toggle",
name = "Class color bar", name = L["Class color bar"],
desc = "Use class color as the bar color instead of default color", desc = L["Use class color as the bar color instead of default color"],
get = function() get = function()
return self.moduleSettings.classColor return self.moduleSettings.classColor
end, end,
@ -181,8 +182,8 @@ function PlayerHealth.prototype:GetOptions()
opts["hideBlizz"] = { opts["hideBlizz"] = {
type = "toggle", type = "toggle",
name = "Hide Blizzard Frame", name = L["Hide Blizzard Frame"],
desc = "Hides Blizzard Player frame and disables all events related to it", desc = L["Hides Blizzard Player frame and disables all events related to it"],
get = function() get = function()
return self.moduleSettings.hideBlizz return self.moduleSettings.hideBlizz
end, end,
@ -202,8 +203,8 @@ function PlayerHealth.prototype:GetOptions()
opts["hideBlizzParty"] = { opts["hideBlizzParty"] = {
type = "toggle", type = "toggle",
name = "Hide Blizzard Party", name = L["Hide Blizzard Party"],
desc = "Hides Blizzard's default party frame and disables all events related to them", desc = L["Hides Blizzard's default party frame and disables all events related to them"],
get = function() get = function()
return self.moduleSettings.hideBlizzParty return self.moduleSettings.hideBlizzParty
end, end,
@ -223,8 +224,8 @@ function PlayerHealth.prototype:GetOptions()
opts["scaleHealthColor"] = { opts["scaleHealthColor"] = {
type = "toggle", type = "toggle",
name = "Color bar by health %", name = L["Color bar by health %"],
desc = "Colors the health bar from MaxHealthColor to MinHealthColor based on current health %", desc = L["Colors the health bar from MaxHealthColor to MinHealthColor based on current health %"],
get = function() get = function()
return self.moduleSettings.scaleHealthColor return self.moduleSettings.scaleHealthColor
end, end,
@ -240,8 +241,8 @@ function PlayerHealth.prototype:GetOptions()
opts["allowClickTarget"] = { opts["allowClickTarget"] = {
type = 'toggle', type = 'toggle',
name = 'Allow click-targeting', name = L["Allow click-targeting"],
desc = 'Whether or not to allow click targeting/casting and the player drop-down menu for this bar (Note: does not work properly with HiBar, have to click near the base of the bar)', desc = L["Whether or not to allow click targeting/casting and the player drop-down menu for this bar (Note: does not work properly with HiBar, have to click near the base of the bar)"],
get = function() get = function()
return self.moduleSettings.allowMouseInteraction return self.moduleSettings.allowMouseInteraction
end, end,
@ -257,8 +258,8 @@ function PlayerHealth.prototype:GetOptions()
opts["allowClickTargetCombat"] = { opts["allowClickTargetCombat"] = {
type = 'toggle', type = 'toggle',
name = 'Allow click-targeting in combat', name = L["Allow click-targeting in combat"],
desc = 'Whether or not to allow click targeting/casting and the player drop-down menu for this bar while the player is in combat (Note: does not work properly with HiBar, have to click near the base of the bar)', desc = L["Whether or not to allow click targeting/casting and the player drop-down menu for this bar while the player is in combat (Note: does not work properly with HiBar, have to click near the base of the bar)"],
width = 'double', width = 'double',
get = function() get = function()
return self.moduleSettings.allowMouseInteractionCombat return self.moduleSettings.allowMouseInteractionCombat
@ -276,8 +277,8 @@ function PlayerHealth.prototype:GetOptions()
opts["showIncomingHeals"] = opts["showIncomingHeals"] =
{ {
type = 'toggle', type = 'toggle',
name = 'Show incoming heals', name = L["Show incoming heals"],
desc = 'Whether or not to show incoming heals as a lighter-colored bar on top of your current health (requires LibHealComm-4.0 or official patch 4.0)', desc = L["Whether or not to show incoming heals as a lighter-colored bar on top of your current health (requires LibHealComm-4.0 or official patch 4.0)"],
get = function() get = function()
return self.moduleSettings.showIncomingHeals return self.moduleSettings.showIncomingHeals
end, end,
@ -302,8 +303,8 @@ function PlayerHealth.prototype:GetOptions()
opts["healAlpha"] = opts["healAlpha"] =
{ {
type = "range", type = "range",
name = "Incoming heal bar alpha", name = L["Incoming heal bar alpha"],
desc = "What alpha value to use for the bar that displays how much health you'll have after an incoming heal (This gets multiplied by the bar's current alpha to stay in line with the bar on top of it)", desc = L["What alpha value to use for the bar that displays how much health you'll have after an incoming heal (This gets multiplied by the bar's current alpha to stay in line with the bar on top of it)"],
min = 0, min = 0,
max = 100, max = 100,
step = 5, step = 5,
@ -323,16 +324,16 @@ function PlayerHealth.prototype:GetOptions()
opts["iconSettings"] = opts["iconSettings"] =
{ {
type = 'group', type = 'group',
name = '|c' .. self.configColor .. 'Icon Settings|r', name = "|c"..self.configColor..L["Icon Settings"].."|r",
desc = 'Settings related to icons', desc = L["Settings related to icons"],
disabled = function() disabled = function()
return not self.moduleSettings.enabled return not self.moduleSettings.enabled
end, end,
args = { args = {
iconConfigMode = { iconConfigMode = {
type = "toggle", type = "toggle",
name = "Icon config mode", name = L["Icon config mode"],
desc = "With this enabled, all icons draw so you can configure their placement\n\nNote: the combat and status icons are actually the same texture so you'll only see combat in config mode (unless you're already resting)", desc = L["With this enabled, all icons draw so you can configure their placement\n\nNote: the combat and status icons are actually the same texture so you'll only see combat in config mode (unless you're already resting)"],
get = function() get = function()
return configMode return configMode
end, end,
@ -345,8 +346,8 @@ function PlayerHealth.prototype:GetOptions()
lockIconAlpha = { lockIconAlpha = {
type = "toggle", type = "toggle",
name = "Lock all icons to 100% alpha", name = L["Lock all icons to 100% alpha"],
desc = "With this enabled, all icons will be 100% visible regardless of the alpha settings for this bar.", desc = L["With this enabled, all icons will be 100% visible regardless of the alpha settings for this bar."],
get = function() get = function()
return self.moduleSettings.lockIconAlpha return self.moduleSettings.lockIconAlpha
end, end,
@ -359,13 +360,13 @@ function PlayerHealth.prototype:GetOptions()
headerStatusIcon = { headerStatusIcon = {
type = 'header', type = 'header',
name = "Status icon", name = L["Status icon"],
order = 9.9 order = 9.9
}, },
statusIcon = { statusIcon = {
type = "toggle", type = "toggle",
name = "Show status icon", name = L["Show status icon"],
desc = "Whether or not to show the status icon (resting/combat) above this bar\n\nNote: You can configure resting/combat separately below, but disabling both resting and combat is the same as disabling the icon altogether", desc = L["Whether or not to show the status icon (resting/combat) above this bar\n\nNote: You can configure resting/combat separately below, but disabling both resting and combat is the same as disabling the icon altogether"],
get = function() get = function()
return self.moduleSettings.showStatusIcon return self.moduleSettings.showStatusIcon
end, end,
@ -381,8 +382,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
showStatusCombat = { showStatusCombat = {
type = "toggle", type = "toggle",
name = "Show combat status", name = L["Show combat status"],
desc = "Whether or not to show the combat status portion of the status icon (for example, if you only care when you're resting, not when you're in combat)", desc = L["Whether or not to show the combat status portion of the status icon (for example, if you only care when you're resting, not when you're in combat)"],
get = function() get = function()
return self.moduleSettings.showStatusCombat return self.moduleSettings.showStatusCombat
end, end,
@ -398,8 +399,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
showStatusResting = { showStatusResting = {
type = "toggle", type = "toggle",
name = "Show resting status", name = L["Show resting status"],
desc = "Whether or not to show the resting status portion of the status icon (for example, if you only care when you're in combat, but not when you're resting)", desc = L["Whether or not to show the resting status portion of the status icon (for example, if you only care when you're in combat, but not when you're resting)"],
get = function() get = function()
return self.moduleSettings.showStatusResting return self.moduleSettings.showStatusResting
end, end,
@ -415,8 +416,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
statusIconOffsetX = { statusIconOffsetX = {
type = "range", type = "range",
name = "Status Icon Horizontal Offset", name = L["Status Icon Horizontal Offset"],
desc = "How much to offset the status icon (resting/combat) from the bar horizontally", desc = L["How much to offset the status icon (resting/combat) from the bar horizontally"],
min = 0, min = 0,
max = 250, max = 250,
step = 1, step = 1,
@ -434,8 +435,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
statusIconOffsetY = { statusIconOffsetY = {
type = "range", type = "range",
name = "Status Icon Vertical Offset", name = L["Status Icon Vertical Offset"],
desc = "How much to offset the status icon (resting/combat) from the bar vertically", desc = L["How much to offset the status icon (resting/combat) from the bar vertically"],
min = -300, min = -300,
max = 50, max = 50,
step = 1, step = 1,
@ -453,8 +454,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
statusIconScale = { statusIconScale = {
type = "range", type = "range",
name = "Status Icon Scale", name = L["Status Icon Scale"],
desc = "How much to scale the status icon", desc = L["How much to scale the status icon"],
min = 0.05, min = 0.05,
max = 2, max = 2,
step = 0.05, step = 0.05,
@ -473,13 +474,13 @@ function PlayerHealth.prototype:GetOptions()
headerLeaderIcon = { headerLeaderIcon = {
type = 'header', type = 'header',
name = "Leader icon", name = L["Leader icon"],
order = 19.9 order = 19.9
}, },
leaderIcon = { leaderIcon = {
type = "toggle", type = "toggle",
name = "Show leader icon", name = L["Show leader icon"],
desc = "Whether or not to show the party leader icon above this bar", desc = L["Whether or not to show the party leader icon above this bar"],
get = function() get = function()
return self.moduleSettings.showLeaderIcon return self.moduleSettings.showLeaderIcon
end, end,
@ -494,8 +495,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
leaderIconOffsetX = { leaderIconOffsetX = {
type = "range", type = "range",
name = "Leader Icon Horizontal Offset", name = L["Leader Icon Horizontal Offset"],
desc = "How much to offset the leader icon from the bar horizontally", desc = L["How much to offset the leader icon from the bar horizontally"],
min = 0, min = 0,
max = 250, max = 250,
step = 1, step = 1,
@ -513,8 +514,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
leaderIconOffsetY = { leaderIconOffsetY = {
type = "range", type = "range",
name = "Leader Icon Vertical Offset", name = L["Leader Icon Vertical Offset"],
desc = "How much to offset the leader icon from the bar vertically", desc = L["How much to offset the leader icon from the bar vertically"],
min = -300, min = -300,
max = 50, max = 50,
step = 1, step = 1,
@ -532,8 +533,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
leaderIconScale = { leaderIconScale = {
type = "range", type = "range",
name = "Leader Icon Scale", name = L["Leader Icon Scale"],
desc = "How much to scale the leader icon", desc = L["How much to scale the leader icon"],
min = 0.05, min = 0.05,
max = 2, max = 2,
step = 0.05, step = 0.05,
@ -552,13 +553,13 @@ function PlayerHealth.prototype:GetOptions()
headerLootMasterIcon = { headerLootMasterIcon = {
type = 'header', type = 'header',
name = "Loot Master icon", name = L["Loot Master icon"],
order = 29.9 order = 29.9
}, },
lootMasterIcon = { lootMasterIcon = {
type = "toggle", type = "toggle",
name = "Show loot master icon", name = L["Show loot master icon"],
desc = "Whether or not to show the loot master icon", desc = L["Whether or not to show the loot master icon"],
get = function() get = function()
return self.moduleSettings.showLootMasterIcon return self.moduleSettings.showLootMasterIcon
end, end,
@ -573,8 +574,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
lootMasterIconOffsetX = { lootMasterIconOffsetX = {
type = "range", type = "range",
name = "Loot Master Icon Horizontal Offset", name = L["Loot Master Icon Horizontal Offset"],
desc = "How much to offset the loot master icon from the bar horizontally", desc = L["How much to offset the loot master icon from the bar horizontally"],
min = 0, min = 0,
max = 250, max = 250,
step = 1, step = 1,
@ -592,8 +593,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
lootMasterIconOffsetY = { lootMasterIconOffsetY = {
type = "range", type = "range",
name = "Loot Master Icon Vertical Offset", name = L["Loot Master Icon Vertical Offset"],
desc = "How much to offset the loot master icon from the bar vertically", desc = L["How much to offset the loot master icon from the bar vertically"],
min = -300, min = -300,
max = 50, max = 50,
step = 1, step = 1,
@ -611,8 +612,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
lootMasterIconScale = { lootMasterIconScale = {
type = "range", type = "range",
name = "Loot Master Icon Scale", name = L["Loot Master Icon Scale"],
desc = "How much to scale the loot master icon", desc = L["How much to scale the loot master icon"],
min = 0.05, min = 0.05,
max = 2, max = 2,
step = 0.05, step = 0.05,
@ -631,13 +632,13 @@ function PlayerHealth.prototype:GetOptions()
headerPvPIcon = { headerPvPIcon = {
type = 'header', type = 'header',
name = "PvP icon", name = L["PvP icon"],
order = 39.9 order = 39.9
}, },
PvPIcon = { PvPIcon = {
type = "toggle", type = "toggle",
name = "Show PvP icon", name = L["Show PvP icon"],
desc = "Whether or not to show the PvP icon", desc = L["Whether or not to show the PvP icon"],
get = function() get = function()
return self.moduleSettings.showPvPIcon return self.moduleSettings.showPvPIcon
end, end,
@ -652,8 +653,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
PvPIconOffsetX = { PvPIconOffsetX = {
type = "range", type = "range",
name = "PvP Icon Horizontal Offset", name = L["PvP Icon Horizontal Offset"],
desc = "How much to offset the PvP icon from the bar horizontally", desc = L["How much to offset the PvP icon from the bar horizontally"],
min = 0, min = 0,
max = 250, max = 250,
step = 1, step = 1,
@ -671,8 +672,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
PvPIconOffsetY = { PvPIconOffsetY = {
type = "range", type = "range",
name = "PvP Icon Vertical Offset", name = L["PvP Icon Vertical Offset"],
desc = "How much to offset the PvP icon from the bar vertically", desc = L["How much to offset the PvP icon from the bar vertically"],
min = -300, min = -300,
max = 50, max = 50,
step = 1, step = 1,
@ -690,8 +691,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
PvPIconScale = { PvPIconScale = {
type = "range", type = "range",
name = "PvP Icon Scale", name = L["PvP Icon Scale"],
desc = "How much to scale the PvP icon", desc = L["How much to scale the PvP icon"],
min = 0.05, min = 0.05,
max = 2, max = 2,
step = 0.05, step = 0.05,
@ -709,13 +710,13 @@ function PlayerHealth.prototype:GetOptions()
}, },
headerPartyRoleIcon = { headerPartyRoleIcon = {
type = 'header', type = 'header',
name = "Party Role icon", name = L["Party Role icon"],
order = 49.9 order = 49.9
}, },
PartyRoleIcon = { PartyRoleIcon = {
type = "toggle", type = "toggle",
name = "Show Party Role icon", name = L["Show Party Role icon"],
desc = "Whether or not to show the Party Role icon", desc = L["Whether or not to show the Party Role icon"],
get = function() get = function()
return self.moduleSettings.showPartyRoleIcon return self.moduleSettings.showPartyRoleIcon
end, end,
@ -730,8 +731,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
PartyRoleIconOffsetX = { PartyRoleIconOffsetX = {
type = "range", type = "range",
name = "Party Role Icon Horizontal Offset", name = L["Party Role Icon Horizontal Offset"],
desc = "How much to offset the Party Role icon from the bar horizontally", desc = L["How much to offset the Party Role icon from the bar horizontally"],
min = 0, min = 0,
max = 250, max = 250,
step = 1, step = 1,
@ -749,8 +750,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
PartyRoleIconOffsetY = { PartyRoleIconOffsetY = {
type = "range", type = "range",
name = "Party Role Icon Vertical Offset", name = L["Party Role Icon Vertical Offset"],
desc = "How much to offset the Party Role icon from the bar vertically", desc = L["How much to offset the Party Role icon from the bar vertically"],
min = -300, min = -300,
max = 50, max = 50,
step = 1, step = 1,
@ -768,8 +769,8 @@ function PlayerHealth.prototype:GetOptions()
}, },
PartyRoleIconScale = { PartyRoleIconScale = {
type = "range", type = "range",
name = "Party Role Icon Scale", name = L["Party Role Icon Scale"],
desc = "How much to scale the Party Role icon", desc = L["How much to scale the Party Role icon"],
min = 0.05, min = 0.05,
max = 2, max = 2,
step = 0.05, step = 0.05,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local PlayerInfo = IceCore_CreateClass(IceTargetInfo) local PlayerInfo = IceCore_CreateClass(IceTargetInfo)
local EPSILON = 0.5 local EPSILON = 0.5
@ -28,8 +29,8 @@ function PlayerInfo.prototype:GetOptions()
opts["hideBlizz"] = { opts["hideBlizz"] = {
type = "toggle", type = "toggle",
name = "Hide Blizzard Buffs", name = L["Hide Blizzard Buffs"],
desc = "Hides Blizzard's default buffs frame and disables all events related to it", desc = L["Hides Blizzard's default buffs frame and disables all events related to it"],
get = function() get = function()
return self.moduleSettings.hideBlizz return self.moduleSettings.hideBlizz
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
-- changed to inherit from the TargetInvuln bar since the only difference is the unit and the default placement -- changed to inherit from the TargetInvuln bar since the only difference is the unit and the default placement
-- helps keep changes in one place and we don't have to duplicate the Invuln spell tables and they don't have to be globals -- helps keep changes in one place and we don't have to duplicate the Invuln spell tables and they don't have to be globals
local PlayerInvuln = IceCore_CreateClass(TargetInvuln) local PlayerInvuln = IceCore_CreateClass(TargetInvuln)

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local PlayerMana = IceCore_CreateClass(IceUnitBar) local PlayerMana = IceCore_CreateClass(IceUnitBar)
PlayerMana.prototype.manaType = nil PlayerMana.prototype.manaType = nil
@ -38,8 +39,8 @@ function PlayerMana.prototype:GetOptions()
if self:ShouldUseTicker() then if self:ShouldUseTicker() then
opts["tickerEnabled"] = { opts["tickerEnabled"] = {
type = "toggle", type = "toggle",
name = "Show rogue/cat energy ticker", name = L["Show rogue/cat energy ticker"],
desc = "Show rogue/cat energy ticker", desc = L["Show rogue/cat energy ticker"],
get = function() get = function()
return self.moduleSettings.tickerEnabled return self.moduleSettings.tickerEnabled
end, end,
@ -56,8 +57,8 @@ if self:ShouldUseTicker() then
opts["tickerAlpha"] = opts["tickerAlpha"] =
{ {
type = 'range', type = 'range',
name = 'Energy Ticker Alpha', name = L["Energy Ticker Alpha"],
desc = 'Energy Ticker Alpha', desc = L["Energy Ticker Alpha"],
min = 0.1, min = 0.1,
max = 1, max = 1,
step = 0.05, step = 0.05,
@ -76,8 +77,8 @@ if self:ShouldUseTicker() then
end end
opts["scaleManaColor"] = { opts["scaleManaColor"] = {
type = "toggle", type = "toggle",
name = "Color bar by mana %", name = L["Color bar by mana %"],
desc = "Colors the mana bar from MaxManaColor to MinManaColor based on current mana %", desc = L["Colors the mana bar from MaxManaColor to MinManaColor based on current mana %"],
get = function() get = function()
return self.moduleSettings.scaleManaColor return self.moduleSettings.scaleManaColor
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local RangeCheck = IceCore_CreateClass(IceElement) local RangeCheck = IceCore_CreateClass(IceElement)
RangeCheck.prototype.scheduledEvent = nil RangeCheck.prototype.scheduledEvent = nil
@ -50,8 +51,8 @@ function RangeCheck.prototype:GetOptions()
opts["vpos"] = { opts["vpos"] = {
type = "range", type = "range",
name = "Vertical Position", name = L["Vertical Position"],
desc = "Vertical Position", desc = L["Vertical Position"],
get = function() get = function()
return self.moduleSettings.vpos return self.moduleSettings.vpos
end, end,
@ -70,8 +71,8 @@ function RangeCheck.prototype:GetOptions()
opts["hpos"] = { opts["hpos"] = {
type = "range", type = "range",
name = "Horizontal Position", name = L["Horizontal Position"],
desc = "Horizontal Position", desc = L["Horizontal Position"],
get = function() get = function()
return self.moduleSettings.hpos return self.moduleSettings.hpos
end, end,
@ -90,8 +91,8 @@ function RangeCheck.prototype:GetOptions()
opts["rangeString"] = { opts["rangeString"] = {
type = 'input', type = 'input',
name = 'Range string', name = L["Range string"],
desc = 'DogTag-formatted string to use for the range display (only available if LibDogTag is being used)\n\nType /dogtag for a list of available tags', desc = L["DogTag-formatted string to use for the range display (only available if LibDogTag is being used)\n\nType /dogtag for a list of available tags"],
get = function() get = function()
return self.moduleSettings.rangeString return self.moduleSettings.rangeString
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local Runes = IceCore_CreateClass(IceElement) local Runes = IceCore_CreateClass(IceElement)
-- blizzard cracks me up. the below block is copied verbatim from RuneFrame.lua ;) -- blizzard cracks me up. the below block is copied verbatim from RuneFrame.lua ;)
@ -41,8 +42,8 @@ function Runes.prototype:GetOptions()
opts["vpos"] = { opts["vpos"] = {
type = "range", type = "range",
name = "Vertical Position", name = L["Vertical Position"],
desc = "Vertical Position", desc = L["Vertical Position"],
get = function() get = function()
return self.moduleSettings.vpos return self.moduleSettings.vpos
end, end,
@ -61,8 +62,8 @@ function Runes.prototype:GetOptions()
opts["hpos"] = { opts["hpos"] = {
type = "range", type = "range",
name = "Horizontal Position", name = L["Horizontal Position"],
desc = "Horizontal Position", desc = L["Horizontal Position"],
get = function() get = function()
return self.moduleSettings.hpos return self.moduleSettings.hpos
end, end,
@ -81,8 +82,8 @@ function Runes.prototype:GetOptions()
opts["hideBlizz"] = { opts["hideBlizz"] = {
type = "toggle", type = "toggle",
name = "Hide Blizzard Frame", name = L["Hide Blizzard Frame"],
desc = "Hides Blizzard Rune frame and disables all events related to it", desc = L["Hides Blizzard Rune frame and disables all events related to it"],
get = function() get = function()
return self.moduleSettings.hideBlizz return self.moduleSettings.hideBlizz
end, end,
@ -102,8 +103,8 @@ function Runes.prototype:GetOptions()
opts["displayMode"] = { opts["displayMode"] = {
type = 'select', type = 'select',
name = 'Rune orientation', name = L["Rune orientation"],
desc = 'Whether the runes should draw side-by-side or on top of one another', desc = L["Whether the runes should draw side-by-side or on top of one another"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.displayMode) return IceHUD:GetSelectValue(info, self.moduleSettings.displayMode)
end, end,
@ -120,8 +121,8 @@ function Runes.prototype:GetOptions()
opts["cooldownMode"] = { opts["cooldownMode"] = {
type = 'select', type = 'select',
name = 'Rune cooldown mode', name = L["Rune cooldown mode"],
desc = 'Choose whether the runes use a cooldown-style wipe, simply an alpha fade to show availability or both.', desc = L["Choose whether the runes use a cooldown-style wipe, simply an alpha fade to show availability or both."],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.cooldownMode) return IceHUD:GetSelectValue(info, self.moduleSettings.cooldownMode)
end, end,
@ -138,8 +139,8 @@ function Runes.prototype:GetOptions()
opts["runeGap"] = { opts["runeGap"] = {
type = 'range', type = 'range',
name = 'Rune gap', name = L["Rune gap"],
desc = 'Spacing between each rune (only works for graphical mode)', desc = L["Spacing between each rune (only works for graphical mode)"],
min = 0, min = 0,
max = 100, max = 100,
step = 1, step = 1,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local ShardCounter = IceCore_CreateClass(IceClassPowerCounter) local ShardCounter = IceCore_CreateClass(IceClassPowerCounter)
function ShardCounter.prototype:init() function ShardCounter.prototype:init()

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local SliceAndDice = IceCore_CreateClass(IceUnitBar) local SliceAndDice = IceCore_CreateClass(IceUnitBar)
local NetherbladeItemIdList = {29044, 29045, 29046, 29047, 29048} local NetherbladeItemIdList = {29044, 29045, 29046, 29047, 29048}
@ -91,8 +92,8 @@ function SliceAndDice.prototype:GetOptions()
opts["showAsPercentOfMax"] = opts["showAsPercentOfMax"] =
{ {
type = 'toggle', type = 'toggle',
name = 'Show bar as % of maximum', name = L["Show bar as % of maximum"],
desc = 'If this is checked, then the SnD buff time shows as a percent of the maximum attainable (taking set bonuses and talents into account). Otherwise, the bar always goes from full to empty when applying SnD no matter the duration.', desc = L["If this is checked, then the SnD buff time shows as a percent of the maximum attainable (taking set bonuses and talents into account). Otherwise, the bar always goes from full to empty when applying SnD no matter the duration."],
get = function() get = function()
return self.moduleSettings.showAsPercentOfMax return self.moduleSettings.showAsPercentOfMax
end, end,
@ -107,8 +108,8 @@ function SliceAndDice.prototype:GetOptions()
opts["durationAlpha"] = opts["durationAlpha"] =
{ {
type = "range", type = "range",
name = "Potential SnD time bar alpha", name = L["Potential SnD time bar alpha"],
desc = "What alpha value to use for the bar that displays how long your SnD will last if you activate it. (This gets multiplied by the bar's current alpha to stay in line with the bar on top of it)", desc = L["What alpha value to use for the bar that displays how long your SnD will last if you activate it. (This gets multiplied by the bar's current alpha to stay in line with the bar on top of it)"],
min = 0, min = 0,
max = 100, max = 100,
step = 5, step = 5,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local SunderCount = IceCore_CreateClass(IceElement) local SunderCount = IceCore_CreateClass(IceElement)
SunderCount.prototype.sunderSize = 20 SunderCount.prototype.sunderSize = 20
@ -21,8 +22,8 @@ function SunderCount.prototype:GetOptions()
opts["vpos"] = { opts["vpos"] = {
type = "range", type = "range",
name = "Vertical Position", name = L["Vertical Position"],
desc = "Vertical Position", desc = L["Vertical Position"],
get = function() get = function()
return self.moduleSettings.vpos return self.moduleSettings.vpos
end, end,
@ -41,8 +42,8 @@ function SunderCount.prototype:GetOptions()
opts["sunderFontSize"] = { opts["sunderFontSize"] = {
type = "range", type = "range",
name = "Sunder Count Font Size", name = L["Sunder Count Font Size"],
desc = "Sunder Count Font Size", desc = L["Sunder Count Font Size"],
get = function() get = function()
return self.moduleSettings.sunderFontSize return self.moduleSettings.sunderFontSize
end, end,
@ -61,8 +62,8 @@ function SunderCount.prototype:GetOptions()
opts["sunderMode"] = { opts["sunderMode"] = {
type = 'select', type = 'select',
name = "Display Mode", name = L["Display Mode"],
desc = "Show graphical or numeric sunders", desc = L["Show graphical or numeric sunders"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.sunderMode) return IceHUD:GetSelectValue(info, self.moduleSettings.sunderMode)
end, end,
@ -81,8 +82,8 @@ function SunderCount.prototype:GetOptions()
opts["sunderGap"] = { opts["sunderGap"] = {
type = 'range', type = 'range',
name = 'Sunder gap', name = L["Sunder gap"],
desc = 'Spacing between each sunder count (only works for graphical mode)', desc = L["Spacing between each sunder count (only works for graphical mode)"],
min = 0, min = 0,
max = 100, max = 100,
step = 1, step = 1,
@ -101,8 +102,8 @@ function SunderCount.prototype:GetOptions()
opts["gradient"] = { opts["gradient"] = {
type = "toggle", type = "toggle",
name = "Change color", name = L["Change color"],
desc = "1 sunder: yellow, 5 sunders: red", desc = L["1 sunder: yellow, 5 sunders: red"],
get = function() get = function()
return self.moduleSettings.gradient return self.moduleSettings.gradient
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
-- needs to not be local so that we can inherit from it -- needs to not be local so that we can inherit from it
TargetCC = IceCore_CreateClass(IceUnitBar) TargetCC = IceCore_CreateClass(IceUnitBar)
@ -268,8 +269,8 @@ function TargetCC.prototype:GetOptions()
opts["alertParty"] = { opts["alertParty"] = {
type = "toggle", type = "toggle",
name = "Alert Party", name = L["Alert Party"],
desc = "Broadcasts crowd control effects you apply to your target via the party chat channel", desc = L["Broadcasts crowd control effects you apply to your target via the party chat channel"],
get = function() get = function()
return self.moduleSettings.alertParty return self.moduleSettings.alertParty
end, end,
@ -283,8 +284,8 @@ function TargetCC.prototype:GetOptions()
opts["onlyShowForMyDebuffs"] = { opts["onlyShowForMyDebuffs"] = {
type = 'toggle', type = 'toggle',
name = 'Only show for my debuffs', name = L["Only show for my debuffs"],
desc = 'With this checked, the bar will only activate for your own CC spells and not those of others.', desc = L["With this checked, the bar will only activate for your own CC spells and not those of others."],
width = 'double', width = 'double',
get = function() get = function()
return self.moduleSettings.onlyShowForMyDebuffs return self.moduleSettings.onlyShowForMyDebuffs

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local TargetCast = IceCore_CreateClass(IceCastBar) local TargetCast = IceCore_CreateClass(IceCastBar)
TargetCast.prototype.notInterruptible = false TargetCast.prototype.notInterruptible = false
@ -89,8 +90,8 @@ function TargetCast.prototype:GetOptions()
opts["barVisible"] = { opts["barVisible"] = {
type = 'toggle', type = 'toggle',
name = 'Bar visible', name = L["Bar visible"],
desc = 'Toggle bar visibility', desc = L["Toggle bar visibility"],
get = function() get = function()
return self.moduleSettings.barVisible['bar'] return self.moduleSettings.barVisible['bar']
end, end,
@ -110,8 +111,8 @@ function TargetCast.prototype:GetOptions()
opts["bgVisible"] = { opts["bgVisible"] = {
type = 'toggle', type = 'toggle',
name = 'Bar background visible', name = L["Bar background visible"],
desc = 'Toggle bar background visibility', desc = L["Toggle bar background visibility"],
get = function() get = function()
return self.moduleSettings.barVisible['bg'] return self.moduleSettings.barVisible['bg']
end, end,
@ -131,8 +132,8 @@ function TargetCast.prototype:GetOptions()
opts["displayNonInterruptible"] = { opts["displayNonInterruptible"] = {
type = 'toggle', type = 'toggle',
name = 'Display non-interruptible color', name = L["Display non-interruptible color"],
desc = 'Toggles whether or not to show the CastNonInterruptible color for this bar when a cast is non-interruptible', desc = L["Toggles whether or not to show the CastNonInterruptible color for this bar when a cast is non-interruptible"],
width = 'double', width = 'double',
get = function() get = function()
return self.moduleSettings.displayNonInterruptible return self.moduleSettings.displayNonInterruptible

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceTargetHealth = IceCore_CreateClass(IceUnitBar) IceTargetHealth = IceCore_CreateClass(IceUnitBar)
IceTargetHealth.prototype.color = nil IceTargetHealth.prototype.color = nil
@ -72,8 +73,8 @@ function IceTargetHealth.prototype:GetOptions()
opts["classColor"] = { opts["classColor"] = {
type = "toggle", type = "toggle",
name = "Class color bar", name = L["Class color bar"],
desc = "Use class color as the bar color instead of reaction color\n\n(Note: The 'color bar by health %' setting overrides this)", desc = L["Use class color as the bar color instead of reaction color\n\n(Note: The 'color bar by health %' setting overrides this)"],
get = function() get = function()
return self.moduleSettings.classColor return self.moduleSettings.classColor
end, end,
@ -89,8 +90,8 @@ function IceTargetHealth.prototype:GetOptions()
opts["npcHostilityColor"] = { opts["npcHostilityColor"] = {
type = "toggle", type = "toggle",
name = "Color NPC by hostility", name = L["Color NPC by hostility"],
desc = "If you are using the 'class color bar' setting above, then enabling this will color NPC's by their hostility toward you since NPC class isn't very helpful or applicable information.", desc = L["If you are using the 'class color bar' setting above, then enabling this will color NPC's by their hostility toward you since NPC class isn't very helpful or applicable information."],
get = function() get = function()
return self.moduleSettings.npcHostilityColor return self.moduleSettings.npcHostilityColor
end, end,
@ -106,8 +107,8 @@ function IceTargetHealth.prototype:GetOptions()
opts["hideBlizz"] = { opts["hideBlizz"] = {
type = "toggle", type = "toggle",
name = "Hide Blizzard Frame", name = L["Hide Blizzard Frame"],
desc = "Hides Blizzard Target frame and disables all events related to it", desc = L["Hides Blizzard Target frame and disables all events related to it"],
get = function() get = function()
return self.moduleSettings.hideBlizz return self.moduleSettings.hideBlizz
end, end,
@ -127,8 +128,8 @@ function IceTargetHealth.prototype:GetOptions()
opts["allowClickTarget"] = { opts["allowClickTarget"] = {
type = 'toggle', type = 'toggle',
name = 'Allow click-targeting', name = L["Allow click-targeting"],
desc = 'Whether or not to allow click targeting/casting and the target drop-down menu for this bar (Note: does not work properly with HiBar, have to click near the base of the bar)', desc = L["Whether or not to allow click targeting/casting and the target drop-down menu for this bar (Note: does not work properly with HiBar, have to click near the base of the bar)"],
get = function() get = function()
return self.moduleSettings.allowMouseInteraction return self.moduleSettings.allowMouseInteraction
end, end,
@ -144,8 +145,8 @@ function IceTargetHealth.prototype:GetOptions()
opts["scaleHealthColor"] = { opts["scaleHealthColor"] = {
type = "toggle", type = "toggle",
name = "Color bar by health %", name = L["Color bar by health %"],
desc = "Colors the health bar from MaxHealthColor to MinHealthColor based on current health %\n\n(Note: This overrides the 'class color bar' setting. Disable this to use class coloring)", desc = L["Colors the health bar from MaxHealthColor to MinHealthColor based on current health %\n\n(Note: This overrides the 'class color bar' setting. Disable this to use class coloring)"],
get = function() get = function()
return self.moduleSettings.scaleHealthColor return self.moduleSettings.scaleHealthColor
end, end,
@ -162,8 +163,8 @@ function IceTargetHealth.prototype:GetOptions()
if not IceHUD.IceCore:ShouldUseDogTags() then if not IceHUD.IceCore:ShouldUseDogTags() then
opts["shortenHealth"] = { opts["shortenHealth"] = {
type = 'toggle', type = 'toggle',
name = 'Abbreviate estimated health', name = L["Abbreviate estimated health"],
desc = 'If this is checked, then a health value of 1100 will display as 1.1k, otherwise it shows the number', desc = L["If this is checked, then a health value of 1100 will display as 1.1k, otherwise it shows the number"],
get = function() get = function()
return self.moduleSettings.abbreviateHealth return self.moduleSettings.abbreviateHealth
end, end,
@ -180,16 +181,16 @@ end
opts["iconSettings"] = opts["iconSettings"] =
{ {
type = 'group', type = 'group',
name = '|c' .. self.configColor .. 'Icon Settings|r', name = "|c"..self.configColor..L["Icon Settings"].."|r",
desc = 'Settings related to icons', desc = L["Settings related to icons"],
disabled = function() disabled = function()
return not self.moduleSettings.enabled return not self.moduleSettings.enabled
end, end,
args = { args = {
iconConfigMode = { iconConfigMode = {
type = "toggle", type = "toggle",
name = "Icon config mode", name = L["Icon config mode"],
desc = "With this enabled, all icons draw so you can configure their placement\n\nNote: the combat and status icons are actually the same texture so you'll only see combat in config mode (unless you're already resting)", desc = L["With this enabled, all icons draw so you can configure their placement\n\nNote: the combat and status icons are actually the same texture so you'll only see combat in config mode (unless you're already resting)"],
get = function() get = function()
return self.configMode return self.configMode
end, end,
@ -205,8 +206,8 @@ end
lockIconAlpha = { lockIconAlpha = {
type = "toggle", type = "toggle",
name = "Lock all icons to 100% alpha", name = L["Lock all icons to 100% alpha"],
desc = "With this enabled, all icons will be 100% visible regardless of the alpha settings for this bar.", desc = L["With this enabled, all icons will be 100% visible regardless of the alpha settings for this bar."],
get = function() get = function()
return self.moduleSettings.lockIconAlpha return self.moduleSettings.lockIconAlpha
end, end,
@ -219,14 +220,14 @@ end
PvPHeader = { PvPHeader = {
type = 'header', type = 'header',
name = 'PvP icon', name = L["PvP icon"],
order = 39.9 order = 39.9
}, },
PvPIcon = { PvPIcon = {
type = "toggle", type = "toggle",
name = "Show PvP icon", name = L["Show PvP icon"],
desc = "Whether or not to show the PvP icon", desc = L["Whether or not to show the PvP icon"],
get = function() get = function()
return self.moduleSettings.showPvPIcon return self.moduleSettings.showPvPIcon
end, end,
@ -241,8 +242,8 @@ end
}, },
PvPIconOnTop = { PvPIconOnTop = {
type = "toggle", type = "toggle",
name = "Draw PVP Icon on top", name = L["Draw PVP Icon on top"],
desc = "Whether to draw the PvP icon in front of or behind this bar", desc = L["Whether to draw the PvP icon in front of or behind this bar"],
get = function() get = function()
return self.moduleSettings.PvPIconOnTop return self.moduleSettings.PvPIconOnTop
end, end,
@ -257,8 +258,8 @@ end
}, },
PvPIconOffsetX = { PvPIconOffsetX = {
type = "range", type = "range",
name = "PvP Icon Horizontal Offset", name = L["PvP Icon Horizontal Offset"],
desc = "How much to offset the PvP icon from the bar horizontally", desc = L["How much to offset the PvP icon from the bar horizontally"],
min = 0, min = 0,
max = 250, max = 250,
step = 1, step = 1,
@ -276,8 +277,8 @@ end
}, },
PvPIconOffsetY = { PvPIconOffsetY = {
type = "range", type = "range",
name = "PvP Icon Vertical Offset", name = L["PvP Icon Vertical Offset"],
desc = "How much to offset the PvP icon from the bar vertically", desc = L["How much to offset the PvP icon from the bar vertically"],
min = -300, min = -300,
max = 50, max = 50,
step = 1, step = 1,
@ -295,8 +296,8 @@ end
}, },
PvPIconScale = { PvPIconScale = {
type = "range", type = "range",
name = "PvP Icon Scale", name = L["PvP Icon Scale"],
desc = "How much to scale the PvP icon", desc = L["How much to scale the PvP icon"],
min = 0.05, min = 0.05,
max = 2, max = 2,
step = 0.05, step = 0.05,
@ -315,14 +316,14 @@ end
RaidHeader = { RaidHeader = {
type = 'header', type = 'header',
name = 'Raid icon', name = L["Raid icon"],
order = 49.9 order = 49.9
}, },
showRaidIcon = { showRaidIcon = {
type = "toggle", type = "toggle",
name = "Show Raid Icon", name = L["Show Raid Icon"],
desc = "Whether or not to show the raid icon above this bar", desc = L["Whether or not to show the raid icon above this bar"],
get = function() get = function()
return self.moduleSettings.showRaidIcon return self.moduleSettings.showRaidIcon
end, end,
@ -338,8 +339,8 @@ end
raidIconOnTop = { raidIconOnTop = {
type = "toggle", type = "toggle",
name = "Draw Raid Icon On Top", name = L["Draw Raid Icon On Top"],
desc = "Whether to draw the raid icon in front of or behind this bar", desc = L["Whether to draw the raid icon in front of or behind this bar"],
get = function() get = function()
return self.moduleSettings.raidIconOnTop return self.moduleSettings.raidIconOnTop
end, end,
@ -355,8 +356,8 @@ end
raidIconXOffset = { raidIconXOffset = {
type = "range", type = "range",
name = "Raid Icon X Offset", name = L["Raid Icon X Offset"],
desc = "How far to push the raid icon right or left", desc = L["How far to push the raid icon right or left"],
min = -300, min = -300,
max = 300, max = 300,
step = 1, step = 1,
@ -376,8 +377,8 @@ end
raidIconYOffset = { raidIconYOffset = {
type = "range", type = "range",
name = "Raid Icon Y Offset", name = L["Raid Icon Y Offset"],
desc = "How far to push the raid icon up or down", desc = L["How far to push the raid icon up or down"],
min = -300, min = -300,
max = 300, max = 300,
step = 1, step = 1,
@ -397,8 +398,8 @@ end
raidIconScale = { raidIconScale = {
type = "range", type = "range",
name = "Raid Icon Scale", name = L["Raid Icon Scale"],
desc = "How much to scale the raid icon", desc = L["How much to scale the raid icon"],
min = 0.05, min = 0.05,
max = 2, max = 2,
step = 0.05, step = 0.05,
@ -417,14 +418,14 @@ end
ClassificationHeader = { ClassificationHeader = {
type = 'header', type = 'header',
name = 'Classification icon', name = L["Classification icon"],
order = 59.9 order = 59.9
}, },
showClassificationIcon = { showClassificationIcon = {
type = "toggle", type = "toggle",
name = "Show Elite Icon", name = L["Show Elite Icon"],
desc = "Whether or not to show the rare/elite icon above this bar", desc = L["Whether or not to show the rare/elite icon above this bar"],
get = function() get = function()
return self.moduleSettings.showClassificationIcon return self.moduleSettings.showClassificationIcon
end, end,
@ -440,8 +441,8 @@ end
classIconOnTop = { classIconOnTop = {
type = "toggle", type = "toggle",
name = "Draw Elite Icon On Top", name = L["Draw Elite Icon On Top"],
desc = "Whether to draw the elite icon in front of or behind this bar", desc = L["Whether to draw the elite icon in front of or behind this bar"],
get = function() get = function()
return self.moduleSettings.classIconOnTop return self.moduleSettings.classIconOnTop
end, end,
@ -457,8 +458,8 @@ end
classIconXOffset = { classIconXOffset = {
type = "range", type = "range",
name = "Elite Icon X Offset", name = L["Elite Icon X Offset"],
desc = "How far to push the elite icon right or left", desc = L["How far to push the elite icon right or left"],
min = -300, min = -300,
max = 300, max = 300,
step = 1, step = 1,
@ -477,8 +478,8 @@ end
classIconYOffset = { classIconYOffset = {
type = "range", type = "range",
name = "Elite Icon Y Offset", name = L["Elite Icon Y Offset"],
desc = "How far to push the elite icon up or down", desc = L["How far to push the elite icon up or down"],
min = -300, min = -300,
max = 300, max = 300,
step = 1, step = 1,
@ -497,8 +498,8 @@ end
classIconScale = { classIconScale = {
type = "range", type = "range",
name = "Elite Icon Scale", name = L["Elite Icon Scale"],
desc = "How much to scale the elite icon", desc = L["How much to scale the elite icon"],
min = 0.05, min = 0.05,
max = 2, max = 2,
step = 0.05, step = 0.05,
@ -517,13 +518,13 @@ end
headerPartyRoleIcon = { headerPartyRoleIcon = {
type = 'header', type = 'header',
name = "Party Role icon", name = L["Party Role icon"],
order = 65 order = 65
}, },
PartyRoleIcon = { PartyRoleIcon = {
type = "toggle", type = "toggle",
name = "Show Party Role icon", name = L["Show Party Role icon"],
desc = "Whether or not to show the Party Role icon", desc = L["Whether or not to show the Party Role icon"],
get = function() get = function()
return self.moduleSettings.showPartyRoleIcon return self.moduleSettings.showPartyRoleIcon
end, end,
@ -538,8 +539,8 @@ end
}, },
PartyRoleIconOffsetX = { PartyRoleIconOffsetX = {
type = "range", type = "range",
name = "Party Role Icon Horizontal Offset", name = L["Party Role Icon Horizontal Offset"],
desc = "How much to offset the Party Role icon from the bar horizontally", desc = L["How much to offset the Party Role icon from the bar horizontally"],
min = 0, min = 0,
max = 250, max = 250,
step = 1, step = 1,
@ -557,8 +558,8 @@ end
}, },
PartyRoleIconOffsetY = { PartyRoleIconOffsetY = {
type = "range", type = "range",
name = "Party Role Icon Vertical Offset", name = L["Party Role Icon Vertical Offset"],
desc = "How much to offset the Party Role icon from the bar vertically", desc = L["How much to offset the Party Role icon from the bar vertically"],
min = -300, min = -300,
max = 50, max = 50,
step = 1, step = 1,
@ -576,8 +577,8 @@ end
}, },
PartyRoleIconScale = { PartyRoleIconScale = {
type = "range", type = "range",
name = "Party Role Icon Scale", name = L["Party Role Icon Scale"],
desc = "How much to scale the Party Role icon", desc = L["How much to scale the Party Role icon"],
min = 0.05, min = 0.05,
max = 2, max = 2,
step = 0.05, step = 0.05,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceTargetInfo = IceCore_CreateClass(IceElement) IceTargetInfo = IceCore_CreateClass(IceElement)
local DogTag = nil local DogTag = nil
@ -107,14 +108,14 @@ function IceTargetInfo.prototype:GetOptions()
opts["targetInfoHeader"] = { opts["targetInfoHeader"] = {
type = 'header', type = 'header',
name = 'Look and Feel', name = L["Look and Feel"],
order = 30.9 order = 30.9
} }
opts["vpos"] = { opts["vpos"] = {
type = "range", type = "range",
name = "Vertical Position", name = L["Vertical Position"],
desc = "Vertical Position", desc = L["Vertical Position"],
get = function() get = function()
return self.moduleSettings.vpos return self.moduleSettings.vpos
end, end,
@ -133,8 +134,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["hpos"] = { opts["hpos"] = {
type = "range", type = "range",
name = "Horizontal Position", name = L["Horizontal Position"],
desc = "Horizontal Position", desc = L["Horizontal Position"],
get = function() get = function()
return self.moduleSettings.hpos return self.moduleSettings.hpos
end, end,
@ -153,8 +154,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["fontSize"] = { opts["fontSize"] = {
type = 'range', type = 'range',
name = 'Font Size', name = L["Font Size"],
desc = 'Font Size', desc = L["Font Size"],
get = function() get = function()
return self.moduleSettings.fontSize return self.moduleSettings.fontSize
end, end,
@ -173,8 +174,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["stackFontSize"] = { opts["stackFontSize"] = {
type = 'range', type = 'range',
name = 'Stack Font Size', name = L["Stack Font Size"],
desc = 'Stack Font Size', desc = L["Stack Font Size"],
get = function() get = function()
return self.moduleSettings.stackFontSize return self.moduleSettings.stackFontSize
end, end,
@ -193,8 +194,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["zoom"] = { opts["zoom"] = {
type = 'range', type = 'range',
name = 'Buff zoom', name = L["Buff zoom"],
desc = 'Buff/debuff icon zoom', desc = L["Buff/debuff icon zoom"],
get = function() get = function()
return self.moduleSettings.zoom return self.moduleSettings.zoom
end, end,
@ -214,14 +215,14 @@ function IceTargetInfo.prototype:GetOptions()
opts["buffHeader"] = { opts["buffHeader"] = {
type = 'header', type = 'header',
name = 'Buff/Debuff Settings', name = L["Buff/Debuff Settings"],
order = 33.9 order = 33.9
} }
opts["buffSize"] = { opts["buffSize"] = {
type = 'range', type = 'range',
name = 'Buff size', name = L["Buff size"],
desc = 'Buff/debuff icon size', desc = L["Buff/debuff icon size"],
get = function() get = function()
return self.moduleSettings.buffSize return self.moduleSettings.buffSize
end, end,
@ -240,8 +241,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["ownBuffSize"] = { opts["ownBuffSize"] = {
type = 'range', type = 'range',
name = 'Own buff size', name = L["Own buff size"],
desc = 'Buff/debuff size for buffs/debuffs that were applied by you, the player', desc = L["Buff/debuff size for buffs/debuffs that were applied by you, the player"],
get = function() get = function()
return self.moduleSettings.ownBuffSize return self.moduleSettings.ownBuffSize
end, end,
@ -260,8 +261,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["showBuffs"] = { opts["showBuffs"] = {
type = 'toggle', type = 'toggle',
name = 'Show buffs', name = L["Show buffs"],
desc = 'Toggles whether or not buffs are displayed at all', desc = L["Toggles whether or not buffs are displayed at all"],
get = function() get = function()
return self.moduleSettings.showBuffs return self.moduleSettings.showBuffs
end, end,
@ -277,8 +278,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["filterBuffs"] = { opts["filterBuffs"] = {
type = 'select', type = 'select',
name = 'Only show buffs by me', name = L["Only show buffs by me"],
desc = 'Will only show buffs that you cast instead of all buffs active', desc = L["Will only show buffs that you cast instead of all buffs active"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.filterBuffs) return IceHUD:GetSelectValue(info, self.moduleSettings.filterBuffs)
end, end,
@ -295,8 +296,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["showDebuffs"] = { opts["showDebuffs"] = {
type = 'toggle', type = 'toggle',
name = 'Show debuffs', name = L["Show debuffs"],
desc = 'Toggles whether or not debuffs are displayed at all', desc = L["Toggles whether or not debuffs are displayed at all"],
get = function() get = function()
return self.moduleSettings.showDebuffs return self.moduleSettings.showDebuffs
end, end,
@ -312,8 +313,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["filterDebuffs"] = { opts["filterDebuffs"] = {
type = 'select', type = 'select',
name = 'Only show debuffs by me', name = L["Only show debuffs by me"],
desc = 'Will only show debuffs that you cast instead of all debuffs active', desc = L["Will only show debuffs that you cast instead of all debuffs active"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.filterDebuffs) return IceHUD:GetSelectValue(info, self.moduleSettings.filterDebuffs)
end, end,
@ -330,8 +331,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["perRow"] = { opts["perRow"] = {
type = 'range', type = 'range',
name = 'Buffs / row', name = L["Buffs / row"],
desc = 'How many buffs/debuffs is shown on each row', desc = L["How many buffs/debuffs is shown on each row"],
get = function() get = function()
return self.moduleSettings.perRow return self.moduleSettings.perRow
end, end,
@ -350,14 +351,14 @@ function IceTargetInfo.prototype:GetOptions()
opts["buffLocHeader"] = { opts["buffLocHeader"] = {
type = 'header', type = 'header',
name = 'Buff placement settings', name = L["Buff placement settings"],
order = 37.01 order = 37.01
} }
opts["buffGrowDirection"] = { opts["buffGrowDirection"] = {
type = 'select', type = 'select',
name = 'Buff grow direction', name = L["Buff grow direction"],
desc = 'Which direction the buffs should grow from the anchor point', desc = L["Which direction the buffs should grow from the anchor point"],
values = { "Left", "Right" }, values = { "Left", "Right" },
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.buffGrowDirection) return IceHUD:GetSelectValue(info, self.moduleSettings.buffGrowDirection)
@ -374,8 +375,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["buffAnchorTo"] = { opts["buffAnchorTo"] = {
type = 'select', type = 'select',
name = 'Buff anchor to', name = L["Buff anchor to"],
desc = 'The point on the TargetInfo frame that the buff frame gets connected to', desc = L["The point on the TargetInfo frame that the buff frame gets connected to"],
values = ValidAnchors, values = ValidAnchors,
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.buffAnchorTo) return IceHUD:GetSelectValue(info, self.moduleSettings.buffAnchorTo)
@ -392,8 +393,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["buffXOffset"] = { opts["buffXOffset"] = {
type = 'range', type = 'range',
name = 'Buff horizontal offset', name = L["Buff horizontal offset"],
desc = 'How far horizontally the buff frame should be offset from the anchor', desc = L["How far horizontally the buff frame should be offset from the anchor"],
min = -500, min = -500,
max = 500, max = 500,
step = 1, step = 1,
@ -412,8 +413,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["buffYOffset"] = { opts["buffYOffset"] = {
type = 'range', type = 'range',
name = 'Buff vertical offset', name = L["Buff vertical offset"],
desc = 'How far vertically the buff frame should be offset from the anchor', desc = L["How far vertically the buff frame should be offset from the anchor"],
min = -500, min = -500,
max = 500, max = 500,
step = 1, step = 1,
@ -432,14 +433,14 @@ function IceTargetInfo.prototype:GetOptions()
opts["debuffLocHeader"] = { opts["debuffLocHeader"] = {
type = 'header', type = 'header',
name = 'Debuff placement settings', name = L["Debuff placement settings"],
order = 37.801 order = 37.801
} }
opts["debuffGrowDirection"] = { opts["debuffGrowDirection"] = {
type = 'select', type = 'select',
name = 'Debuff grow direction', name = L["Debuff grow direction"],
desc = 'Which direction the debuffs should grow from the anchor point', desc = L["Which direction the debuffs should grow from the anchor point"],
values = { "Left", "Right" }, values = { "Left", "Right" },
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.debuffGrowDirection) return IceHUD:GetSelectValue(info, self.moduleSettings.debuffGrowDirection)
@ -456,8 +457,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["debuffAnchorTo"] = { opts["debuffAnchorTo"] = {
type = 'select', type = 'select',
name = 'Debuff anchor to', name = L["Debuff anchor to"],
desc = 'The point on the TargetInfo frame that the debuff frame gets connected to', desc = L["The point on the TargetInfo frame that the debuff frame gets connected to"],
values = ValidAnchors, values = ValidAnchors,
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.debuffAnchorTo) return IceHUD:GetSelectValue(info, self.moduleSettings.debuffAnchorTo)
@ -474,8 +475,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["debuffXOffset"] = { opts["debuffXOffset"] = {
type = 'range', type = 'range',
name = 'Debuff horizontal offset', name = L["Debuff horizontal offset"],
desc = 'How far horizontally the debuff frame should be offset from the anchor', desc = L["How far horizontally the debuff frame should be offset from the anchor"],
min = -500, min = -500,
max = 500, max = 500,
step = 1, step = 1,
@ -494,8 +495,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["debuffYOffset"] = { opts["debuffYOffset"] = {
type = 'range', type = 'range',
name = 'Debuff vertical offset', name = L["Debuff vertical offset"],
desc = 'How far vertically the debuff frame should be offset from the anchor', desc = L["How far vertically the debuff frame should be offset from the anchor"],
min = -500, min = -500,
max = 500, max = 500,
step = 1, step = 1,
@ -514,14 +515,14 @@ function IceTargetInfo.prototype:GetOptions()
opts["mouseHeader"] = { opts["mouseHeader"] = {
type = 'header', type = 'header',
name = 'Mouse settings', name = L["Mouse settings"],
order = 37.9 order = 37.9
} }
opts["mouseTarget"] = { opts["mouseTarget"] = {
type = 'toggle', type = 'toggle',
name = 'Mouseover for target', name = L["Mouseover for target"],
desc = 'Toggle mouseover on/off for target', desc = L["Toggle mouseover on/off for target"],
get = function() get = function()
return self.moduleSettings.mouseTarget return self.moduleSettings.mouseTarget
end, end,
@ -537,8 +538,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["mouseBuff"] = { opts["mouseBuff"] = {
type = 'toggle', type = 'toggle',
name = 'Mouseover for buffs', name = L["Mouseover for buffs"],
desc = 'Toggle mouseover on/off for buffs/debuffs', desc = L["Toggle mouseover on/off for buffs/debuffs"],
get = function() get = function()
return self.moduleSettings.mouseBuff return self.moduleSettings.mouseBuff
end, end,
@ -554,14 +555,14 @@ function IceTargetInfo.prototype:GetOptions()
opts["textHeader"] = { opts["textHeader"] = {
type = 'header', type = 'header',
name = 'Text Settings', name = L["Text Settings"],
order = 39.01 order = 39.01
} }
opts["line1Tag"] = { opts["line1Tag"] = {
type = 'input', type = 'input',
name = 'Line 1 tag', name = L["Line 1 tag"],
desc = 'DogTag-formatted string to use for the top text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save.', desc = L["DogTag-formatted string to use for the top text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save."],
get = function() get = function()
return self.moduleSettings.line1Tag return self.moduleSettings.line1Tag
end, end,
@ -580,8 +581,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["line2Tag"] = { opts["line2Tag"] = {
type = 'input', type = 'input',
name = 'Line 2 tag', name = L["Line 2 tag"],
desc = 'DogTag-formatted string to use for the second text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save.', desc = L["DogTag-formatted string to use for the second text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save."],
get = function() get = function()
return self.moduleSettings.line2Tag return self.moduleSettings.line2Tag
end, end,
@ -600,8 +601,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["line3Tag"] = { opts["line3Tag"] = {
type = 'input', type = 'input',
name = 'Line 3 tag', name = L["Line 3 tag"],
desc = 'DogTag-formatted string to use for the third text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save.', desc = L["DogTag-formatted string to use for the third text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save."],
get = function() get = function()
return self.moduleSettings.line3Tag return self.moduleSettings.line3Tag
end, end,
@ -620,8 +621,8 @@ function IceTargetInfo.prototype:GetOptions()
opts["line4Tag"] = { opts["line4Tag"] = {
type = 'input', type = 'input',
name = 'Line 4 tag', name = L["Line 4 tag"],
desc = 'DogTag-formatted string to use for the bottom text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save.', desc = L["DogTag-formatted string to use for the bottom text line (leave blank to revert to old behavior)\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save."],
get = function() get = function()
return self.moduleSettings.line4Tag return self.moduleSettings.line4Tag
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
-- needs to not be local so that we can inherit from it -- needs to not be local so that we can inherit from it
TargetInvuln = IceCore_CreateClass(IceUnitBar) TargetInvuln = IceCore_CreateClass(IceUnitBar)
@ -119,8 +120,8 @@ function TargetInvuln.prototype:GetOptions()
opts["alertParty"] = { opts["alertParty"] = {
type = "toggle", type = "toggle",
name = "Alert Party", name = L["Alert Party"],
desc = "Broadcasts crowd control effects you apply to your target via the party chat channel", desc = L["Broadcasts crowd control effects you apply to your target via the party chat channel"],
get = function() get = function()
return self.moduleSettings.alertParty return self.moduleSettings.alertParty
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceTargetMana = IceCore_CreateClass(IceUnitBar) IceTargetMana = IceCore_CreateClass(IceUnitBar)
IceTargetMana.prototype.registerEvents = true IceTargetMana.prototype.registerEvents = true
IceTargetHealth.prototype.color = nil IceTargetHealth.prototype.color = nil
@ -126,8 +127,8 @@ function IceTargetMana.prototype:GetOptions()
opts["scaleManaColor"] = { opts["scaleManaColor"] = {
type = "toggle", type = "toggle",
name = "Color bar by mana %", name = L["Color bar by mana %"],
desc = "Colors the mana bar from MaxManaColor to MinManaColor based on current mana %", desc = L["Colors the mana bar from MaxManaColor to MinManaColor based on current mana %"],
get = function() get = function()
return self.moduleSettings.scaleManaColor return self.moduleSettings.scaleManaColor
end, end,
@ -143,8 +144,8 @@ function IceTargetMana.prototype:GetOptions()
opts["onlyShowMana"] = { opts["onlyShowMana"] = {
type = 'toggle', type = 'toggle',
name = 'Only show if target uses mana', name = L["Only show if target uses mana"],
desc = 'Will only show this bar if the target uses mana (as opposed to rage, energy, runic power, etc.)', desc = L["Will only show this bar if the target uses mana (as opposed to rage, energy, runic power, etc.)"],
width = 'double', width = 'double',
get = function() get = function()
return self.moduleSettings.onlyShowMana return self.moduleSettings.onlyShowMana

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local SML = LibStub("LibSharedMedia-3.0") local SML = LibStub("LibSharedMedia-3.0")
local DogTag = nil local DogTag = nil
@ -31,8 +32,8 @@ function TargetOfTarget.prototype:GetOptions()
opts["vpos"] = { opts["vpos"] = {
type = "range", type = "range",
name = "Vertical Position", name = L["Vertical Position"],
desc = "Vertical Position", desc = L["Vertical Position"],
get = function() get = function()
return self.moduleSettings.vpos return self.moduleSettings.vpos
end, end,
@ -51,8 +52,8 @@ function TargetOfTarget.prototype:GetOptions()
opts["hpos"] = { opts["hpos"] = {
type = "range", type = "range",
name = "Horizontal Position", name = L["Horizontal Position"],
desc = "Horizontal Position", desc = L["Horizontal Position"],
get = function() get = function()
return self.moduleSettings.hpos return self.moduleSettings.hpos
end, end,
@ -71,8 +72,8 @@ function TargetOfTarget.prototype:GetOptions()
opts["showDebuffs"] = { opts["showDebuffs"] = {
type = "toggle", type = "toggle",
name = "Show stacking debuffs", name = L["Show stacking debuffs"],
desc = "Show stacking debuffs in ToT info", desc = L["Show stacking debuffs in ToT info"],
get = function() get = function()
return self.moduleSettings.showDebuffs return self.moduleSettings.showDebuffs
end, end,
@ -88,8 +89,8 @@ function TargetOfTarget.prototype:GetOptions()
opts["fontSize"] = { opts["fontSize"] = {
type = 'range', type = 'range',
name = 'Font Size', name = L["Font Size"],
desc = 'Font Size', desc = L["Font Size"],
get = function() get = function()
return self.moduleSettings.fontSize return self.moduleSettings.fontSize
end, end,
@ -108,8 +109,8 @@ function TargetOfTarget.prototype:GetOptions()
opts["mouse"] = { opts["mouse"] = {
type = 'toggle', type = 'toggle',
name = 'Mouseover', name = L["Mouseover"],
desc = 'Toggle mouseover on/off', desc = L["Toggle mouseover on/off"],
get = function() get = function()
return self.moduleSettings.mouse return self.moduleSettings.mouse
end, end,
@ -125,8 +126,8 @@ function TargetOfTarget.prototype:GetOptions()
opts["texture"] = { opts["texture"] = {
type = 'select', type = 'select',
name = 'Texture', name = L["Texture"],
desc = 'ToT frame texture', desc = L["ToT frame texture"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.texture) return IceHUD:GetSelectValue(info, self.moduleSettings.texture)
end, end,
@ -143,8 +144,8 @@ function TargetOfTarget.prototype:GetOptions()
opts["sizeToGap"] = { opts["sizeToGap"] = {
type = 'toggle', type = 'toggle',
name = 'Size to gap', name = L["Size to gap"],
desc = "Automatically size this module to the addon's 'gap' setting", desc = L["Automatically size this module to the addon's 'gap' setting"],
get = function() get = function()
return self.moduleSettings.sizeToGap return self.moduleSettings.sizeToGap
end, end,
@ -159,8 +160,8 @@ function TargetOfTarget.prototype:GetOptions()
opts["totWidth"] = { opts["totWidth"] = {
type = 'range', type = 'range',
name = 'Width', name = L["Width"],
desc = "Sets the width of this module if 'size to gap' is not set", desc = L["Sets the width of this module if 'size to gap' is not set"],
min = 100, min = 100,
max = 600, max = 600,
step = 1, step = 1,
@ -181,12 +182,12 @@ function TargetOfTarget.prototype:GetOptions()
opts.textSettings = { opts.textSettings = {
type = 'group', type = 'group',
name = "|c"..self.configColor.."Text Settings|r", name = "|c"..self.configColor..L["Text Settings"].."|r",
args = { args = {
leftTag = { leftTag = {
type = 'input', type = 'input',
name = 'Left Tag', name = L["Left Tag"],
desc = 'DogTag-formatted string to use for the left side of the bar.\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save.', desc = L["DogTag-formatted string to use for the left side of the bar.\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save."],
get = function() get = function()
return self.moduleSettings.leftTag return self.moduleSettings.leftTag
end, end,
@ -204,8 +205,8 @@ function TargetOfTarget.prototype:GetOptions()
}, },
rightTag = { rightTag = {
type = 'input', type = 'input',
name = 'Right Tag', name = L["Right Tag"],
desc = 'DogTag-formatted string to use for the right side of the bar.\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save.', desc = L["DogTag-formatted string to use for the right side of the bar.\n\nType /dogtag for a list of available tags.\n\nRemember to press Accept after filling out this box or it will not save."],
get = function() get = function()
return self.moduleSettings.rightTag return self.moduleSettings.rightTag
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local TargetTargetCast = IceCore_CreateClass(IceCastBar) local TargetTargetCast = IceCore_CreateClass(IceCastBar)
TargetTargetCast.prototype.scheduledEvent = nil TargetTargetCast.prototype.scheduledEvent = nil
@ -78,8 +79,8 @@ function TargetTargetCast.prototype:GetOptions()
opts["barVisible"] = { opts["barVisible"] = {
type = 'toggle', type = 'toggle',
name = 'Bar visible', name = L["Bar visible"],
desc = 'Toggle bar visibility', desc = L["Toggle bar visibility"],
get = function() get = function()
return self.moduleSettings.barVisible['bar'] return self.moduleSettings.barVisible['bar']
end, end,
@ -99,8 +100,8 @@ function TargetTargetCast.prototype:GetOptions()
opts["bgVisible"] = { opts["bgVisible"] = {
type = 'toggle', type = 'toggle',
name = 'Bar background visible', name = L["Bar background visible"],
desc = 'Toggle bar background visibility', desc = L["Toggle bar background visibility"],
get = function() get = function()
return self.moduleSettings.barVisible['bg'] return self.moduleSettings.barVisible['bg']
end, end,
@ -120,8 +121,8 @@ function TargetTargetCast.prototype:GetOptions()
opts["selfDisplayMode"] = { opts["selfDisplayMode"] = {
type = 'select', type = 'select',
name = "Self Display Mode", name = L["Self Display Mode"],
desc = "What this bar should do whenever the player is the TargetOfTarget", desc = L["What this bar should do whenever the player is the TargetOfTarget"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.selfDisplayMode) return IceHUD:GetSelectValue(info, self.moduleSettings.selfDisplayMode)
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local TargetTargetHealth = IceCore_CreateClass(IceTargetHealth) local TargetTargetHealth = IceCore_CreateClass(IceTargetHealth)
TargetTargetHealth.prototype.scheduledEvent = nil TargetTargetHealth.prototype.scheduledEvent = nil
@ -41,8 +42,8 @@ function TargetTargetHealth.prototype:GetOptions()
opts["selfDisplayMode"] = { opts["selfDisplayMode"] = {
type = 'select', type = 'select',
name = "Self Display Mode", name = L["Self Display Mode"],
desc = "What this bar should do whenever the player is the TargetOfTarget\n\nNOTE: When this is set to 'hide', then click-targeting is not available due to Blizzard's restrictions", desc = L["What this bar should do whenever the player is the TargetOfTarget\n\nNOTE: When this is set to 'hide', then click-targeting is not available due to Blizzard's restrictions"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.selfDisplayMode) return IceHUD:GetSelectValue(info, self.moduleSettings.selfDisplayMode)
end, end,
@ -68,8 +69,8 @@ function TargetTargetHealth.prototype:GetOptions()
opts["selfColor"] = { opts["selfColor"] = {
type = "color", type = "color",
name = "Self Color", name = L["Self Color"],
desc = "Set the color of the TargetTarget bar if you are your target's target.", desc = L["Set the color of the TargetTarget bar if you are your target's target."],
get = function() get = function()
return self.moduleSettings.selfColor.r, self.moduleSettings.selfColor.g, self.moduleSettings.selfColor.b return self.moduleSettings.selfColor.r, self.moduleSettings.selfColor.g, self.moduleSettings.selfColor.b
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local TargetTargetMana = IceCore_CreateClass(IceTargetMana) local TargetTargetMana = IceCore_CreateClass(IceTargetMana)
TargetTargetMana.prototype.scheduledEvent = nil TargetTargetMana.prototype.scheduledEvent = nil
@ -34,8 +35,8 @@ function TargetTargetMana.prototype:GetOptions()
opts["selfDisplayMode"] = { opts["selfDisplayMode"] = {
type = 'select', type = 'select',
name = "Self Display Mode", name = L["Self Display Mode"],
desc = "What this bar should do whenever the player is the TargetOfTarget", desc = L["What this bar should do whenever the player is the TargetOfTarget"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.selfDisplayMode) return IceHUD:GetSelectValue(info, self.moduleSettings.selfDisplayMode)
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
--[[ --[[
Name: IceThreat Name: IceThreat
Author: Caryna/Turalyon EU (Alliance) (updated for Threat-2.0 by 'acapela' of WoWI and merged into IceHUD by Parnic) Author: Caryna/Turalyon EU (Alliance) (updated for Threat-2.0 by 'acapela' of WoWI and merged into IceHUD by Parnic)
@ -52,8 +53,8 @@ function IceThreat.prototype:GetOptions()
opts["enabled"] = { opts["enabled"] = {
type = "toggle", type = "toggle",
name = "Enabled", name = L["Enabled"],
desc = "Enable/disable module", desc = L["Enable/disable module"],
get = function() get = function()
return self.moduleSettings.enabled return self.moduleSettings.enabled
end, end,
@ -71,8 +72,8 @@ function IceThreat.prototype:GetOptions()
opts["aggroAlpha"] = opts["aggroAlpha"] =
{ {
type = 'range', type = 'range',
name = 'Aggro Indicator alpha', name = L["Aggro Indicator alpha"],
desc = 'Aggro indicator alpha (0 is disabled)', desc = L["Aggro indicator alpha (0 is disabled)"],
min = 0, min = 0,
max = 1, max = 1,
step = 0.1, step = 0.1,
@ -91,8 +92,8 @@ function IceThreat.prototype:GetOptions()
opts["onlyShowInGroups"] = { opts["onlyShowInGroups"] = {
type = 'toggle', type = 'toggle',
name = 'Only show in groups', name = L["Only show in groups"],
desc = 'Only show the threat bar if you are in a group or you have an active pet', desc = L["Only show the threat bar if you are in a group or you have an active pet"],
get = function() get = function()
return self.moduleSettings.onlyShowInGroups return self.moduleSettings.onlyShowInGroups
end, end,
@ -108,8 +109,8 @@ function IceThreat.prototype:GetOptions()
opts["showScaledThreat"] = { opts["showScaledThreat"] = {
type = 'toggle', type = 'toggle',
name = 'Show scaled threat', name = L["Show scaled threat"],
desc = 'Whether to show threat in scaled values or raw values. Scaled threat means that you will pull aggro when it hits 100%. Raw threat means you will pull aggro at either 110% (melee) or 130% (ranged). Omen uses raw threat which can cause this mod to disagree with Omen if it is in scaled mode.', desc = L["Whether to show threat in scaled values or raw values. Scaled threat means that you will pull aggro when it hits 100%. Raw threat means you will pull aggro at either 110% (melee) or 130% (ranged). Omen uses raw threat which can cause this mod to disagree with Omen if it is in scaled mode."],
get = function() get = function()
return self.moduleSettings.showScaledThreat return self.moduleSettings.showScaledThreat
end, end,
@ -125,8 +126,8 @@ function IceThreat.prototype:GetOptions()
opts["displaySecondPlaceThreat"] = { opts["displaySecondPlaceThreat"] = {
type = 'toggle', type = 'toggle',
name = 'Show second highest threat', name = L["Show second highest threat"],
desc = 'When tanking, this toggles whether or not the second-highest threat value found in your party or raid is displayed on top of your actual threat value', desc = L["When tanking, this toggles whether or not the second-highest threat value found in your party or raid is displayed on top of your actual threat value"],
width = 'double', width = 'double',
get = function() get = function()
return self.moduleSettings.displaySecondPlaceThreat return self.moduleSettings.displaySecondPlaceThreat
@ -143,8 +144,8 @@ function IceThreat.prototype:GetOptions()
opts["secondPlaceThreatAlpha"] = { opts["secondPlaceThreatAlpha"] = {
type = 'range', type = 'range',
name = 'Second place threat alpha', name = L["Second place threat alpha"],
desc = "The alpha value for the second-place threat bar to be (this is multiplied by the bar's alpha so it's always proportionate)", desc = L["The alpha value for the second-place threat bar to be (this is multiplied by the bar's alpha so it's always proportionate)"],
get = function() get = function()
return self.moduleSettings.secondPlaceThreatAlpha return self.moduleSettings.secondPlaceThreatAlpha
end, end,

View File

@ -1,3 +1,4 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
local Totems = IceCore_CreateClass(IceElement) local Totems = IceCore_CreateClass(IceElement)
-- the below block is copied from TotemFrame.lua -- the below block is copied from TotemFrame.lua
@ -46,8 +47,8 @@ function Totems.prototype:GetOptions()
opts["vpos"] = { opts["vpos"] = {
type = "range", type = "range",
name = "Vertical Position", name = L["Vertical Position"],
desc = "Vertical Position", desc = L["Vertical Position"],
get = function() get = function()
return self.moduleSettings.vpos return self.moduleSettings.vpos
end, end,
@ -66,8 +67,8 @@ function Totems.prototype:GetOptions()
opts["hpos"] = { opts["hpos"] = {
type = "range", type = "range",
name = "Horizontal Position", name = L["Horizontal Position"],
desc = "Horizontal Position", desc = L["Horizontal Position"],
get = function() get = function()
return self.moduleSettings.hpos return self.moduleSettings.hpos
end, end,
@ -86,8 +87,8 @@ function Totems.prototype:GetOptions()
--[[ --[[
opts["hideBlizz"] = { opts["hideBlizz"] = {
type = "toggle", type = "toggle",
name = "Hide Blizzard Frame", name = L["Hide Blizzard Frame"],
desc = "Hides Blizzard Rune frame and disables all events related to it", desc = L["Hides Blizzard Rune frame and disables all events related to it"],
get = function() get = function()
return self.moduleSettings.hideBlizz return self.moduleSettings.hideBlizz
end, end,
@ -107,8 +108,8 @@ function Totems.prototype:GetOptions()
--]] --]]
opts["displayMode"] = { opts["displayMode"] = {
type = 'select', type = 'select',
name = 'Totem orientation', name = L["Totem orientation"],
desc = 'Whether the totems should draw side-by-side or on top of one another', desc = L["Whether the totems should draw side-by-side or on top of one another"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.displayMode) return IceHUD:GetSelectValue(info, self.moduleSettings.displayMode)
end, end,
@ -125,8 +126,8 @@ function Totems.prototype:GetOptions()
--[[ --[[
opts["cooldownMode"] = { opts["cooldownMode"] = {
type = 'select', type = 'select',
name = 'Totem cooldown mode', name = L["Totem cooldown mode"],
desc = 'Choose whether the totems use a cooldown-style wipe or simply an alpha fade to show availability.', desc = L["Choose whether the totems use a cooldown-style wipe or simply an alpha fade to show availability."],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.cooldownMode) return IceHUD:GetSelectValue(info, self.moduleSettings.cooldownMode)
end, end,
@ -143,8 +144,8 @@ function Totems.prototype:GetOptions()
]]-- ]]--
opts["totemGap"] = { opts["totemGap"] = {
type = 'range', type = 'range',
name = 'Totem gap', name = L["Totem gap"],
desc = 'Spacing between each totem (only works for graphical mode)', desc = L["Spacing between each totem (only works for graphical mode)"],
min = 0, min = 0,
max = 100, max = 100,
step = 1, step = 1,