diff --git a/AtlasLoot/Core/AtlasLoot.xml b/AtlasLoot/Core/AtlasLoot.xml index 3c6d35f..eb9ab88 100644 --- a/AtlasLoot/Core/AtlasLoot.xml +++ b/AtlasLoot/Core/AtlasLoot.xml @@ -1065,7 +1065,7 @@ - + @@ -1087,7 +1087,29 @@ - + + + + + + + + + + + + + + + + + + + + + + + @@ -1099,7 +1121,7 @@ - + diff --git a/AtlasLoot/Core/Options.lua b/AtlasLoot/Core/Options.lua index ff2ba44..162f133 100644 --- a/AtlasLoot/Core/Options.lua +++ b/AtlasLoot/Core/Options.lua @@ -237,6 +237,7 @@ function AtlasLoot_CreateOptionsInfoTooltips() AtlasLoot_AddTooltip("AtlasLootOptionsFrame_FuBarShow", nil) -- AL["Show FuBar Plugin"] AtlasLoot_AddTooltip("AtlasLootOptionsFrame_FuBarHide", nil) -- AL["Hide FuBar Plugin"] AtlasLoot_AddTooltip("AtlasLoot_SelectLootBrowserStyle", nil) + AtlasLoot_AddTooltip("AtlasLoot_SelectMythicPlussTier", nil) end function AtlasLoot_OptionsOnShow() @@ -248,6 +249,10 @@ function AtlasLoot_OptionsOnShow() UIDropDownMenu_Initialize(AtlasLoot_CraftingLink, AtlasLoot_CraftingLink_Initialize); UIDropDownMenu_SetSelectedID(AtlasLoot_CraftingLink, AtlasLoot.db.profile.CraftingLink); UIDropDownMenu_SetWidth(AtlasLoot_CraftingLink, 150); + AtlasLoot_SelectMythicPlussTier_Label:SetText(AL["Select Mythic Pluss Tier:"]); + UIDropDownMenu_Initialize(AtlasLoot_SelectMythicPlussTier, AtlasLoot_SelectMythicPlussTier_Initialize); + UIDropDownMenu_SetSelectedID(AtlasLoot_SelectMythicPlussTier, AtlasLoot.db.profile.MythicPlussTier); + UIDropDownMenu_SetWidth(AtlasLoot_SelectMythicPlussTier, 150); end function AtlasLoot_SelectLootBrowserStyle_Initialize() @@ -292,7 +297,7 @@ end function AtlasLoot_CraftingLink_OnClick() local thisID = this:GetID(); - UIDropDownMenu_SetSelectedID(AtlasLoot_CraftingLink, thisID); + UIDropDownMenu_SetSelectedID(AtlasLoot_CraftingLink, thisID); AtlasLoot.db.profile.CraftingLink = thisID; if AtlasLootItemsFrame:IsVisible() and AtlasLootItemsFrame.refresh then AtlasLoot_ShowItemsFrame(AtlasLootItemsFrame.refresh[1], AtlasLootItemsFrame.refresh[2], AtlasLootItemsFrame.refresh[3], AtlasLootItemsFrame.refresh[4]); @@ -300,6 +305,30 @@ function AtlasLoot_CraftingLink_OnClick() AtlasLoot_OptionsOnShow(); end +function AtlasLoot_SelectMythicPlussTier_Initialize() + local info; + info = { + text = AL["Mythic Tier 1"]; + func = AtlasLoot_MythicPlussTier_OnClick; + }; + UIDropDownMenu_AddButton(info); + info = { + text = AL["Mythic Tier 2"]; + func = AtlasLoot_MythicPlussTier_OnClick; + }; + UIDropDownMenu_AddButton(info); +end + +function AtlasLoot_MythicPlussTier_OnClick() + local thisID = this:GetID(); + UIDropDownMenu_SetSelectedID(AtlasLoot_SelectMythicPlussTier, thisID); + AtlasLoot.db.profile.MythicPlussTier = thisID; + if AtlasLootItemsFrame:IsVisible() and AtlasLootItemsFrame.refresh then + AtlasLoot_ShowItemsFrame(AtlasLootItemsFrame.refresh[1], AtlasLootItemsFrame.refresh[2], AtlasLootItemsFrame.refresh[3], AtlasLootItemsFrame.refresh[4]); + end + AtlasLoot_OptionsOnShow(); +end + local Authors = { ["Calî"] = "Arthas", ["Lâg"] = "Arthas",