added and option to show Herbalism and now show the pet Pierre
This commit is contained in:
@@ -29,6 +29,7 @@ local DefaultSettings = {
|
||||
{ TableName = "ItemBlacklist", { [9149] = true }},
|
||||
{ TableName = "hideMaxRank", false, CheckBox = "ProfessionMenuOptions_HideMaxRank"},
|
||||
{ TableName = "hideRank", false, CheckBox = "ProfessionMenuOptions_HideRank"},
|
||||
{ TableName = "showHerb", false, CheckBox = "ProfessionMenuOptions_ShowHerb"},
|
||||
{ TableName = "ShowOldTradeSkillUI", false, CheckBox = "ProfessionMenuOptions_ShowOldTradeSkillUI"}
|
||||
}
|
||||
|
||||
@@ -174,6 +175,7 @@ local profList = {
|
||||
2656,
|
||||
main = 50310 -- mining spellid for rank info
|
||||
}, --SMELTING
|
||||
{2383, Name = "Herbalism", Show = "showHerb" }, --Herbalism
|
||||
{
|
||||
51309, -- Grand Master 450
|
||||
26790, -- Master 375
|
||||
@@ -206,6 +208,7 @@ local profSubList = {
|
||||
31252,
|
||||
818,
|
||||
1804,
|
||||
8200016,
|
||||
}
|
||||
function PM:UNIT_SPELLCAST_SUCCEEDED(event, arg1, arg2)
|
||||
PM:RemoveItem(arg2)
|
||||
@@ -334,8 +337,11 @@ function PM:AddProfessions()
|
||||
|
||||
for _, prof in ipairs(profList) do
|
||||
for _, spellID in ipairs(prof) do
|
||||
if IsSpellKnown(spellID) then
|
||||
if IsSpellKnown(spellID) and ((prof.Show and PM.db[prof.Show]) or not prof.Show) then
|
||||
local name, _, icon = GetSpellInfo(spellID)
|
||||
if prof.Name then
|
||||
name = prof.Name
|
||||
end
|
||||
local profName = name
|
||||
if prof.main then
|
||||
profName = GetSpellInfo(prof.main)
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
## X-Category: Profession
|
||||
## X-OptionsFrame: ProfessionMenuOptionsFrame
|
||||
## DefaultState: enabled
|
||||
## Version: 1.5
|
||||
## Version: 1.7
|
||||
|
||||
embeds.xml
|
||||
|
||||
@@ -101,8 +101,16 @@ end
|
||||
hideMaxRank.Lable:SetText("Hide profession max rank")
|
||||
hideMaxRank:SetScript("OnClick", function() PM.db.hideMaxRank = not PM.db.hideMaxRank end)
|
||||
|
||||
local showHerb = CreateFrame("CheckButton", "ProfessionMenuOptions_ShowHerb", ProfessionMenuOptionsFrame, "UICheckButtonTemplate")
|
||||
showHerb:SetPoint("TOPLEFT", 15, -305)
|
||||
showHerb.Lable = showHerb:CreateFontString(nil , "BORDER", "GameFontNormal")
|
||||
showHerb.Lable:SetJustifyH("LEFT")
|
||||
showHerb.Lable:SetPoint("LEFT", 30, 0)
|
||||
showHerb.Lable:SetText("Show Herbalism")
|
||||
showHerb:SetScript("OnClick", function() PM.db.showHerb = not PM.db.showHerb end)
|
||||
|
||||
local showOldTradeUI = CreateFrame("CheckButton", "ProfessionMenuOptions_ShowOldTradeSkillUI", ProfessionMenuOptionsFrame, "UICheckButtonTemplate")
|
||||
showOldTradeUI:SetPoint("TOPLEFT", 15, -305)
|
||||
showOldTradeUI:SetPoint("TOPLEFT", 15, -335)
|
||||
showOldTradeUI.Lable = showOldTradeUI:CreateFontString(nil , "BORDER", "GameFontNormal")
|
||||
showOldTradeUI.Lable:SetJustifyH("LEFT")
|
||||
showOldTradeUI.Lable:SetPoint("LEFT", 30, 0)
|
||||
@@ -119,7 +127,7 @@ end
|
||||
end)
|
||||
|
||||
local txtSize = CreateFrame("Button", "ProfessionMenuOptions_TxtSizeMenu", ProfessionMenuOptionsFrame, "UIDropDownMenuTemplate")
|
||||
txtSize:SetPoint("TOPLEFT", 15, -345)
|
||||
txtSize:SetPoint("TOPLEFT", 15, -370)
|
||||
txtSize.Lable = txtSize:CreateFontString(nil , "BORDER", "GameFontNormal")
|
||||
txtSize.Lable:SetJustifyH("LEFT")
|
||||
txtSize.Lable:SetPoint("LEFT", txtSize, 190, 0)
|
||||
|
||||
Reference in New Issue
Block a user