From 3017b5dd18cd2701d2d88739525c33c61b279600 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 18 Sep 2022 15:21:51 -0500 Subject: [PATCH] Rename Anima Charged to Charged Charged combo points are still a thing, but they're no longer called "Anima-charged" or relate to Kyrian. --- modules/ComboPoints.lua | 20 ++++++++++---------- modules/ComboPointsBar.lua | 4 +++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/modules/ComboPoints.lua b/modules/ComboPoints.lua index b8637c6..d426c20 100644 --- a/modules/ComboPoints.lua +++ b/modules/ComboPoints.lua @@ -21,7 +21,7 @@ function ComboPoints.prototype:init() if AnticipationExists then self:SetDefaultColor("AnticipationPoints", 1, 0, 1) end - self:SetDefaultColor("KyrianAnimaComboPoint", 0.3137254901960784, 0.3725490196078432, 1) + self:SetDefaultColor("ChargedComboPoint", 0.3137254901960784, 0.3725490196078432, 1) self.scalingEnabled = true end @@ -222,16 +222,16 @@ function ComboPoints.prototype:GetOptions() order = 35 } - opts["bShowAnimaCharged"] = { + opts["bShowCharged"] = { type = 'toggle', width = 'double', - name = L["Show Anima-charged points"], - desc = L["Whether or not to color an anima-charged combo point a separate color. Set the KyrianAnimaComboPoint color to the color you would like it to be."], + name = L["Show Charged points"], + desc = L["Whether or not to color a charged combo point a separate color. Set the ChargedComboPoint color to the color you would like it to be."], get = function() - return self.moduleSettings.bShowAnimaCharged + return self.moduleSettings.bShowCharged end, set = function(info, v) - self.moduleSettings.bShowAnimaCharged = v + self.moduleSettings.bShowCharged = v self:UpdateChargedComboPoints() end, disabled = function() @@ -261,7 +261,7 @@ function ComboPoints.prototype:GetDefaultSettings() defaults["comboGap"] = 0 defaults["showAnticipation"] = true defaults["bShowWithNoTarget"] = true - defaults["bShowAnimaCharged"] = true + defaults["bShowCharged"] = true return defaults end @@ -440,8 +440,8 @@ function ComboPoints.prototype:CreateComboFrame(forceTextureUpdate) g = g - ((1 / maxComboPoints)*i) end - if self.moduleSettings.bShowAnimaCharged and self:IsAnimaChargedPoint(i) then - self.frame.graphical[i].texture:SetVertexColor(self:GetColor("KyrianAnimaComboPoint")) + if self.moduleSettings.bShowCharged and self:IsChargedPoint(i) then + self.frame.graphical[i].texture:SetVertexColor(self:GetColor("ChargedComboPoint")) else self.frame.graphical[i].texture:SetVertexColor(r, g, b) end @@ -489,7 +489,7 @@ function ComboPoints.prototype:CreateComboFrame(forceTextureUpdate) end end -function ComboPoints.prototype:IsAnimaChargedPoint(point) +function ComboPoints.prototype:IsChargedPoint(point) if not self.chargedPowerPoints then return false end diff --git a/modules/ComboPointsBar.lua b/modules/ComboPointsBar.lua index fab953b..6f87ff3 100644 --- a/modules/ComboPointsBar.lua +++ b/modules/ComboPointsBar.lua @@ -142,7 +142,9 @@ function ComboPointsBar.prototype:UpdateComboPoints(...) end self:SetBottomText1(points or "0") - self:SetBottomText2(self.chargedPowerPointIndex) + if self.chargedPowerPointIndex then + self:SetBottomText2(self.chargedPowerPointIndex) + end end function ComboPointsBar.prototype:Update()