- Code cleanup.
HonorGoG [09-16-19 - 06:32]
diff --git a/TitanClassicRegen/TitanClassicRegen.lua b/TitanClassicRegen/TitanClassicRegen.lua
index 9fa90ad..3b3b913 100644
--- a/TitanClassicRegen/TitanClassicRegen.lua
+++ b/TitanClassicRegen/TitanClassicRegen.lua
@@ -55,18 +55,18 @@ function TitanPanelTitanRegenButton_OnLoad(self)
tooltipTitle = L["TITAN_REGEN_MENU_TOOLTIP_TITLE"],
tooltipTextFunction = "TitanPanelTitanRegenButton_GetTooltipText",
controlVariables = {
- ShowIcon = false,
- ShowLabelText = true,
- ShowRegularText = false,
- ShowColoredText = false,
- DisplayOnRightSide = false
+ ShowIcon = false,
+ ShowLabelText = true,
+ ShowRegularText = false,
+ ShowColoredText = false,
+ DisplayOnRightSide = false
},
savedVariables = {
- ShowLabelText = 1,
- ShowMPRegen = 1,
- ShowHPRegen = 1,
- ShowPercentage = false,
- ShowColoredText = false
+ ShowLabelText = 1,
+ ShowMPRegen = 1,
+ ShowHPRegen = 1,
+ ShowPercentage = false,
+ ShowColoredText = false
}
};
@@ -81,7 +81,7 @@ end
-- NAME : TitanPanelXPButton_OnEvent
-- DESC : Parse events registered to addon and act on them
-- **************************************************************************
-function TitanPanelTitanRegenButton_OnEvent(self, event, a1, ...)
+function TitanPanelTitanRegenButton_OnEvent(self, event, ...)
if ( event == "PLAYER_ENTERING_WORLD") then
if (UnitPowerMax("player") == 0) then
TitanSetVar(TITAN_REGEN_ID, "ShowMPRegen", 0);
diff --git a/TitanClassicRegen/TitanClassicRegen.xml b/TitanClassicRegen/TitanClassicRegen.xml
index 779f1e0..0501095 100644
--- a/TitanClassicRegen/TitanClassicRegen.xml
+++ b/TitanClassicRegen/TitanClassicRegen.xml
@@ -3,7 +3,7 @@
<Script file="TitanClassicRegen.lua"/>
<Frame parent="UIParent">
<Frames>
- <Button name="TitanPanelTitanRegenButton" inherits="TitanPanelTextTemplate" frameStrata="FULLSCREEN" toplevel="true">
+ <Button name="TitanPanelRegenButton" inherits="TitanPanelTextTemplate" frameStrata="FULLSCREEN" toplevel="true">
<Scripts>
<OnLoad>
TitanPanelTitanRegenButton_OnLoad(self);