Base options
This commit is contained in:
@@ -1065,7 +1065,7 @@
|
||||
<Anchors>
|
||||
<Anchor point="TOP">
|
||||
<Offset>
|
||||
<AbsDimension x="30" y="-200"/>
|
||||
<AbsDimension x="30" y="-100"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
@@ -1087,7 +1087,29 @@
|
||||
<Anchors>
|
||||
<Anchor point="TOP">
|
||||
<Offset>
|
||||
<AbsDimension x="30" y="-230"/>
|
||||
<AbsDimension x="30" y="-200"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
</Button>
|
||||
<Button name="AtlasLoot_SelectMythicPlussTier" inherits="UIDropDownMenuTemplate">
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<FontString name="$parent_Label" inherits="GameFontNormalSmall">
|
||||
<Anchors>
|
||||
<Anchor point="RIGHT" relativePoint="LEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="15" y="2"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Anchors>
|
||||
<Anchor point="TOP">
|
||||
<Offset>
|
||||
<AbsDimension x="30" y="-200"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
@@ -1099,7 +1121,7 @@
|
||||
<Anchors>
|
||||
<Anchor point="TOP">
|
||||
<Offset>
|
||||
<AbsDimension x="0" y="-285" />
|
||||
<AbsDimension x="0" y="-230" />
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user