Added command line option to show the addon version.
pschifferer [01-22-09 - 19:20]
Added command line option to show the addon version.
More tweaks to properly handle linked trade skills and "cast" skills.
diff --git a/Cauldron/CauldronMain.lua b/Cauldron/CauldronMain.lua
index e1f6709..4a0c0df 100644
--- a/Cauldron/CauldronMain.lua
+++ b/Cauldron/CauldronMain.lua
@@ -51,6 +51,12 @@ function Cauldron:OnInitialize()
desc = L["Open shopping list window"],
type = 'toggle',
},
+ version = {
+ name = L["Version"],
+ desc = L["Shows the version number of the addon"],
+ type = 'execute',
+ func = function() self:DisplayVersion() end,
+ },
-- debug = LibStub('LibLogDebug-1.0'):GetAce3OptionTable(self, 110),
},
}
@@ -511,6 +517,10 @@ function Cauldron:LocaleString(str)
return L[str];
end
+function Cauldron:DisplayVersion()
+ self:Print(L["Cauldron, version "],Cauldron.version);
+end
+
----------------------------------------------------------------
-- Tooltip Functions
----------------------------------------------------------------
diff --git a/Cauldron/CauldronMain.xml b/Cauldron/CauldronMain.xml
index 911fd4f..7584c0d 100644
--- a/Cauldron/CauldronMain.xml
+++ b/Cauldron/CauldronMain.xml
@@ -158,7 +158,7 @@
</Anchors>
<Scripts>
<OnLoad>
- self:SetScale(0.75);
+ self:SetScale(0.625);
getglobal(self:GetName()):SetText("");
</OnLoad>
<OnEnter>
diff --git a/Cauldron/CauldronMainUI.lua b/Cauldron/CauldronMainUI.lua
index 9371649..cf3db7a 100644
--- a/Cauldron/CauldronMainUI.lua
+++ b/Cauldron/CauldronMainUI.lua
@@ -394,6 +394,9 @@ function Cauldron:UpdateButtons()
if IsTradeSkillLinked() then
CauldronQueueAllButton:Hide();
CauldronQueueButton:Hide();
+ CauldronAmountDecrementButton:Hide();
+ CauldronAmountInputBox:Hide();
+ CauldronAmountIncrementButton:Hide();
CauldronCreateAllButton:Hide();
CauldronCreateButton:Hide();
CauldronProcessButton:Hide();
@@ -402,6 +405,9 @@ function Cauldron:UpdateButtons()
else
CauldronQueueAllButton:Show();
CauldronQueueButton:Show();
+ CauldronAmountDecrementButton:Show();
+ CauldronAmountInputBox:Show();
+ CauldronAmountIncrementButton:Show();
CauldronCreateAllButton:Show();
CauldronCreateButton:Show();
CauldronProcessButton:Show();
@@ -412,9 +418,9 @@ function Cauldron:UpdateButtons()
if skillInfo then
if skillInfo.verb then
- CauldronQueueAllButton:Disable();
- CauldronQueueButton:Disable();
- CauldronCreateAllButton:Disable();
+ CauldronQueueAllButton:Hide();
+ CauldronQueueButton:Hide();
+ CauldronCreateAllButton:Hide();
CauldronCreateButton:Enable();
CauldronCreateButton:SetText(skillInfo.verb or CREATE);