mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- added a couple of reminders to press [enter] after typing into text boxes in the custom bar/counter configuration screens
- fixed a bug causing rune cooldowns to not reset when the player died/res'd if the module was in alpha mode
This commit is contained in:
@ -103,7 +103,7 @@ function IceCustomBar.prototype:GetOptions()
|
||||
opts["name"] = {
|
||||
type = 'text',
|
||||
name = 'Bar name',
|
||||
desc = 'The name of this bar (must be unique!)',
|
||||
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.',
|
||||
get = function()
|
||||
return self.elementName
|
||||
end,
|
||||
@ -158,7 +158,7 @@ function IceCustomBar.prototype:GetOptions()
|
||||
opts["buffToTrack"] = {
|
||||
type = 'text',
|
||||
name = "Aura to track",
|
||||
desc = "Which buff/debuff this bar will be tracking",
|
||||
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.",
|
||||
get = function()
|
||||
return self.moduleSettings.buffToTrack
|
||||
end,
|
||||
|
@ -42,7 +42,7 @@ function IceCustomCount.prototype:GetOptions()
|
||||
opts["name"] = {
|
||||
type = 'text',
|
||||
name = 'Counter name',
|
||||
desc = 'The name of this counter (must be unique!)',
|
||||
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.',
|
||||
get = function()
|
||||
return self.elementName
|
||||
end,
|
||||
@ -95,7 +95,7 @@ function IceCustomCount.prototype:GetOptions()
|
||||
opts["auraName"] = {
|
||||
type = 'text',
|
||||
name = "Aura to track",
|
||||
desc = "Which buff/debuff this counter will be tracking",
|
||||
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.",
|
||||
get = function()
|
||||
return self.moduleSettings.auraName
|
||||
end,
|
||||
@ -167,7 +167,7 @@ function IceCustomCount.prototype:GetOptions()
|
||||
opts["maxCount"] = {
|
||||
type = 'text',
|
||||
name = "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.",
|
||||
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.",
|
||||
get = function()
|
||||
return self.moduleSettings.maxCount
|
||||
end,
|
||||
|
@ -234,14 +234,21 @@ function Runes.prototype:Enable(core)
|
||||
|
||||
self:RegisterEvent("RUNE_POWER_UPDATE", "UpdateRunePower");
|
||||
self:RegisterEvent("RUNE_TYPE_UPDATE", "UpdateRuneType");
|
||||
self:RegisterEvent("PLAYER_ENTERING_WORLD", "ResetRuneAvailability");
|
||||
|
||||
if (self.moduleSettings.hideBlizz) then
|
||||
self:HideBlizz()
|
||||
end
|
||||
end
|
||||
|
||||
function Runes.prototype:ResetRuneAvailability()
|
||||
for i=1, self.numRunes do
|
||||
self:UpdateRunePower(i, true, true)
|
||||
end
|
||||
end
|
||||
|
||||
-- simply shows/hides the foreground rune when it becomes usable/unusable. this allows the background transparent rune to show only
|
||||
function Runes.prototype:UpdateRunePower(rune, usable)
|
||||
function Runes.prototype:UpdateRunePower(rune, usable, dontFlash)
|
||||
if not rune or not self.frame.graphical or #self.frame.graphical < rune then
|
||||
return
|
||||
end
|
||||
@ -255,13 +262,15 @@ function Runes.prototype:UpdateRunePower(rune, usable)
|
||||
self.frame.graphical[rune]:SetAlpha(1)
|
||||
end
|
||||
|
||||
local fadeInfo={
|
||||
mode = "IN",
|
||||
timeToFade = 0.5,
|
||||
finishedFunc = function(rune) self:ShineFinished(rune) end,
|
||||
finishedArg1 = rune
|
||||
}
|
||||
UIFrameFade(self.frame.graphical[rune].shine, fadeInfo);
|
||||
if not dontFlash then
|
||||
local fadeInfo={
|
||||
mode = "IN",
|
||||
timeToFade = 0.5,
|
||||
finishedFunc = function(rune) self:ShineFinished(rune) end,
|
||||
finishedArg1 = rune
|
||||
}
|
||||
UIFrameFade(self.frame.graphical[rune].shine, fadeInfo);
|
||||
end
|
||||
else
|
||||
if self.moduleSettings.cooldownMode == "Cooldown" then
|
||||
self.frame.graphical[rune].cd:SetCooldown(GetRuneCooldown(rune))
|
||||
|
Reference in New Issue
Block a user