added option to display profession rank and max rank beside the name
This commit is contained in:
@@ -85,8 +85,24 @@ end
|
||||
autoMenu.Lable:SetText("Show menu on hover")
|
||||
autoMenu:SetScript("OnClick", function() PM.db.autoMenu = not PM.db.autoMenu end)
|
||||
|
||||
local hideRank = CreateFrame("CheckButton", "ProfessionMenuOptions_HideRank", ProfessionMenuOptionsFrame, "UICheckButtonTemplate")
|
||||
hideRank:SetPoint("TOPLEFT", 15, -235)
|
||||
hideRank.Lable = hideRank:CreateFontString(nil , "BORDER", "GameFontNormal")
|
||||
hideRank.Lable:SetJustifyH("LEFT")
|
||||
hideRank.Lable:SetPoint("LEFT", 30, 0)
|
||||
hideRank.Lable:SetText("Hide profession rank")
|
||||
hideRank:SetScript("OnClick", function() PM.db.hideRank = not PM.db.hideRank end)
|
||||
|
||||
local hideMaxRank = CreateFrame("CheckButton", "ProfessionMenuOptions_HideMaxRank", ProfessionMenuOptionsFrame, "UICheckButtonTemplate")
|
||||
hideMaxRank:SetPoint("TOPLEFT", 15, -270)
|
||||
hideMaxRank.Lable = hideMaxRank:CreateFontString(nil , "BORDER", "GameFontNormal")
|
||||
hideMaxRank.Lable:SetJustifyH("LEFT")
|
||||
hideMaxRank.Lable:SetPoint("LEFT", 30, 0)
|
||||
hideMaxRank.Lable:SetText("Hide profession max rank")
|
||||
hideMaxRank:SetScript("OnClick", function() PM.db.hideMaxRank = not PM.db.hideMaxRank end)
|
||||
|
||||
local txtSize = CreateFrame("Button", "ProfessionMenuOptions_TxtSizeMenu", ProfessionMenuOptionsFrame, "UIDropDownMenuTemplate")
|
||||
txtSize:SetPoint("TOPLEFT", 15, -240)
|
||||
txtSize:SetPoint("TOPLEFT", 15, -310)
|
||||
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