3.0.6 update
Added little preview frame for things like tier tokens and sets added ability to change page with mouse wheel some minor fixes
This commit is contained in:
+135
-46
@@ -15,6 +15,57 @@
|
||||
<Script file="Dungeons.lua"/>
|
||||
<Script file="Tooltip.lua"/>
|
||||
|
||||
<Button name="AtlasLootContainerItemTemplate" virtual="true">
|
||||
<Size x="40" y="40"/>
|
||||
<Backdrop name="$parentBackdrop" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
||||
<EdgeSize>
|
||||
<AbsValue val="19"/>
|
||||
</EdgeSize>
|
||||
<TileSize>
|
||||
<AbsValue val="8"/>
|
||||
</TileSize>
|
||||
<BackgroundInsets>
|
||||
<AbsInset left="0" right="0" top="0" bottom="0"/>
|
||||
</BackgroundInsets>
|
||||
</Backdrop>
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<Texture name="$parentIcon">
|
||||
<Size>
|
||||
<AbsDimension x="32" y="32"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="4" y="-4"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
<FontString name="$parent_Quantity" font="Fonts\ARIALN.TTF" outline="NORMAL" justifyH="RIGHT" hidden="false">
|
||||
<Size>
|
||||
<AbsDimension x="25" y="0"/>
|
||||
</Size>
|
||||
<FontHeight>
|
||||
<AbsValue val="12"/>
|
||||
</FontHeight>
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parentIcon" relativePoint="BOTTOMRIGHT">
|
||||
<Offset>
|
||||
<AbsDimension x="0" y="1"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Scripts>
|
||||
<OnClick>
|
||||
AtlasLoot_ContainerItem_OnClick(arg1)
|
||||
</OnClick>
|
||||
</Scripts>
|
||||
</Button>
|
||||
|
||||
<Button name="AtlasLootDefaultFrameButtonTemplate" inherits="OptionsButtonTemplate" virtual="true">
|
||||
<Size>
|
||||
<AbsDimension x="105" y="20"/>
|
||||
@@ -577,7 +628,7 @@
|
||||
this:SetMovable(1);
|
||||
this:SetBackdropColor(0.75, 0, 0.75);
|
||||
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
|
||||
getglobal("AtlasLootDefaultFrame_Notice"):SetText(AL["NoticeFrame"]);
|
||||
AtlasLootDefaultFrame_Notice:SetText(AL["NoticeFrame"]);
|
||||
</OnLoad>
|
||||
<OnMouseUp>
|
||||
CloseDropDownMenus();
|
||||
@@ -590,11 +641,9 @@
|
||||
</OnHide>
|
||||
<OnDragStart>
|
||||
this:StartMoving();
|
||||
this.isMoving = true;
|
||||
</OnDragStart>
|
||||
<OnDragStop>
|
||||
this:StopMovingOrSizing();
|
||||
this.isMoving = false;
|
||||
</OnDragStop>
|
||||
</Scripts>
|
||||
</Frame>
|
||||
@@ -840,6 +889,18 @@
|
||||
</Anchors>
|
||||
<Color r="1" g="0" b="0" a="1"/>
|
||||
</Texture>
|
||||
<Texture name="$parentBorder" file="Interface\Buttons\UI-Quickslot-Depress" hidden="true">
|
||||
<Size>
|
||||
<AbsDimension x="29" y="29"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="-1" y="1"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
</Layers>
|
||||
</Button>
|
||||
@@ -884,14 +945,14 @@
|
||||
<AbsDimension x="128" y="75"/>
|
||||
</Size>
|
||||
<Frames>
|
||||
<Button name="$parentHidePanel" inherits="OptionsButtonTemplate">
|
||||
<Button name="$parentHidePanel" inherits="UIPanelButtonTemplate2">
|
||||
<Size>
|
||||
<AbsDimension x="140" y="20"/>
|
||||
<AbsDimension x="80" y="32"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="-5" y="-3"/>
|
||||
<AbsDimension x="-7" y="-3"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
@@ -899,8 +960,7 @@
|
||||
<OnShow>
|
||||
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
|
||||
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
|
||||
this:SetText(AL["Toggle AL Panel"]);
|
||||
getglobal("AtlasLootInfo_Text2"):SetText("");
|
||||
this:SetText(AL["AL Panel"]);
|
||||
</OnShow>
|
||||
<OnClick>
|
||||
if AtlasLootCharDB.HidePanel then
|
||||
@@ -923,6 +983,30 @@
|
||||
</OnClick>
|
||||
</Scripts>
|
||||
</Button>
|
||||
<Button name="$parent_AtlasLoot" inherits="UIPanelButtonTemplate2">
|
||||
<Size x="80" y="32"/>
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOMLEFT" relativeTo="$parentHidePanel" relativePoint="BOTTOMRIGHT">
|
||||
<Offset>
|
||||
<AbsDimension x="0" y="0"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
<Scripts>
|
||||
<OnClick>
|
||||
if AtlasLootSearchBox:GetText() ~= "" then
|
||||
AtlasLootDefaultFrameSearchBox:SetText(AtlasLootSearchBox:GetText())
|
||||
AtlasLootDefaultFrameSearchBox:ClearFocus();
|
||||
end
|
||||
AtlasLoot_Toggle();
|
||||
</OnClick>
|
||||
<OnShow>
|
||||
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
|
||||
this:SetText(AL["AtlasLoot"]);
|
||||
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
|
||||
</OnShow>
|
||||
</Scripts>
|
||||
</Button>
|
||||
</Frames>
|
||||
<Layers>
|
||||
<Layer level="OVERLAY">
|
||||
@@ -1293,6 +1377,29 @@
|
||||
</OnShow>
|
||||
</Scripts>
|
||||
</Button>
|
||||
<Frame name="$parentContainer" enableMouse="true" frameStrata="TOOLTIP" hidden="true" toplevel="true" movable="true" clampedToScreen="true">
|
||||
<Size x="40" y="40"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT">
|
||||
<Offset>
|
||||
<AbsDimension x="0" y="0" />
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
||||
<EdgeSize>
|
||||
<AbsValue val="16"/>
|
||||
</EdgeSize>
|
||||
<TileSize>
|
||||
<AbsValue val="16"/>
|
||||
</TileSize>
|
||||
<BackgroundInsets>
|
||||
<AbsInset left="4" right="4" top="4" bottom="4"/>
|
||||
</BackgroundInsets>
|
||||
<Color r="1" g="1" b="1" a="1" />
|
||||
<BorderColor r="1" g="0.82" b="0" a="1" />
|
||||
</Backdrop>
|
||||
</Frame>
|
||||
</Frames>
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
@@ -1331,12 +1438,19 @@
|
||||
<OnLoad>
|
||||
AtlasLoot_OnLoad();
|
||||
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
|
||||
getglobal("AtlasLootItemsFrame_BACK"):SetText(AL["Back"]);
|
||||
getglobal("AtlasLoot_QuickLooks"):SetText(AL["Add to QuickLooks:"]);
|
||||
AtlasLootItemsFrame_BACK:SetText(AL["Back"]);
|
||||
AtlasLoot_QuickLooks:SetText(AL["Add to QuickLooks:"]);
|
||||
</OnLoad>
|
||||
<OnEvent>
|
||||
AtlasLoot_OnEvent(event, arg1, arg2);
|
||||
AtlasLoot_OnEvent();
|
||||
</OnEvent>
|
||||
<OnMouseWheel>
|
||||
if arg1 == 1 and AtlasLootItemsFrame_NEXT:IsVisible() then
|
||||
AtlasLootItemsFrame_NEXT:Click()
|
||||
elseif arg1 == -1 and AtlasLootItemsFrame_PREV:IsVisible() then
|
||||
AtlasLootItemsFrame_PREV:Click()
|
||||
end
|
||||
</OnMouseWheel>
|
||||
</Scripts>
|
||||
</Frame>
|
||||
|
||||
@@ -1736,20 +1850,18 @@
|
||||
this:RegisterForDrag("LeftButton");
|
||||
this:SetMovable(1);
|
||||
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
|
||||
getglobal("AtlasLootOptionsFrame_Title"):SetText(AL["Atlasloot Options"]);
|
||||
AtlasLootOptionsFrame_Title:SetText(AL["Atlasloot Options"]);
|
||||
</OnLoad>
|
||||
<OnDragStart>
|
||||
this:StartMoving();
|
||||
this.isMoving = true;
|
||||
</OnDragStart>
|
||||
<OnDragStop>
|
||||
this:StopMovingOrSizing();
|
||||
this.isMoving = false;
|
||||
</OnDragStop>
|
||||
</Scripts>
|
||||
</Frame>
|
||||
|
||||
<Frame name="AtlasLootPanel" parent="UIParent" hidden="true">
|
||||
<Frame name="AtlasLootPanel" parent="UIParent" hidden="true" enableMouse="true">
|
||||
<Size>
|
||||
<AbsDimension x="745" y="110"/>
|
||||
</Size>
|
||||
@@ -1948,29 +2060,6 @@
|
||||
</OnShow>
|
||||
</Scripts>
|
||||
</Button>
|
||||
<Button name="$parent_AtlasLoot" inherits="AtlasLootPanelButtonTemplate">
|
||||
<Anchors>
|
||||
<Anchor point="TOP" relativeTo="$parent_Sets" relativePoint="BOTTOM">
|
||||
<Offset>
|
||||
<AbsDimension x="0" y="-2"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
<Scripts>
|
||||
<OnClick>
|
||||
if AtlasLootSearchBox:GetText() ~= "" then
|
||||
AtlasLootDefaultFrameSearchBox:SetText(AtlasLootSearchBox:GetText())
|
||||
AtlasLootDefaultFrameSearchBox:ClearFocus();
|
||||
end
|
||||
AtlasLoot_Toggle();
|
||||
</OnClick>
|
||||
<OnShow>
|
||||
local AL = AceLibrary("AceLocale-2.2"):new("AtlasLoot");
|
||||
this:SetText(AL["AtlasLoot"]);
|
||||
this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
|
||||
</OnShow>
|
||||
</Scripts>
|
||||
</Button>
|
||||
<Button name="$parent_Preset1" inherits="AtlasLootPanelButtonTemplate">
|
||||
<Anchors>
|
||||
<Anchor point="TOP" relativeTo="$parent_Reputation" relativePoint="BOTTOM">
|
||||
@@ -2002,9 +2091,9 @@
|
||||
</OnMouseUp>
|
||||
<OnClick>
|
||||
if AtlasLoot_IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][1][1]) then
|
||||
if getglobal("AtlasLootPanel"):GetParent() == AtlasFrame then
|
||||
if AtlasLootPanel:GetParent() == AtlasFrame then
|
||||
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][1][1], AtlasLootCharDB["QuickLooks"][1][2], AtlasLootCharDB["QuickLooks"][1][3], nil);
|
||||
elseif getglobal("AtlasLootPanel"):GetParent() == AlphaMapAlphaMapFrame then
|
||||
elseif AtlasLootPanel:GetParent() == AlphaMapAlphaMapFrame then
|
||||
pFrame = { "TOPLEFT", AlphaMapAlphaMapFrame, "TOPLEFT", 0, 0 };
|
||||
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][1][1], AtlasLootCharDB["QuickLooks"][1][2], AtlasLootCharDB["QuickLooks"][1][3], pFrame);
|
||||
else
|
||||
@@ -2053,9 +2142,9 @@
|
||||
</OnMouseUp>
|
||||
<OnClick>
|
||||
if AtlasLoot_IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][2][1]) then
|
||||
if getglobal("AtlasLootPanel"):GetParent() == AtlasFrame then
|
||||
if AtlasLootPanel:GetParent() == AtlasFrame then
|
||||
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][2][1], AtlasLootCharDB["QuickLooks"][2][2], AtlasLootCharDB["QuickLooks"][2][3], nil);
|
||||
elseif getglobal("AtlasLootPanel"):GetParent() == AlphaMapAlphaMapFrame then
|
||||
elseif AtlasLootPanel:GetParent() == AlphaMapAlphaMapFrame then
|
||||
pFrame = { "TOPLEFT", AlphaMapAlphaMapFrame, "TOPLEFT", 0, 0 };
|
||||
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][2][1], AtlasLootCharDB["QuickLooks"][2][2], AtlasLootCharDB["QuickLooks"][2][3], pFrame);
|
||||
else
|
||||
@@ -2104,9 +2193,9 @@
|
||||
</OnMouseUp>
|
||||
<OnClick>
|
||||
if AtlasLoot_IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][3][1]) then
|
||||
if getglobal("AtlasLootPanel"):GetParent() == AtlasFrame then
|
||||
if AtlasLootPanel:GetParent() == AtlasFrame then
|
||||
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][3][1], AtlasLootCharDB["QuickLooks"][3][2], AtlasLootCharDB["QuickLooks"][3][3], nil);
|
||||
elseif getglobal("AtlasLootPanel"):GetParent() == AlphaMapAlphaMapFrame then
|
||||
elseif AtlasLootPanel:GetParent() == AlphaMapAlphaMapFrame then
|
||||
pFrame = { "TOPLEFT", AlphaMapAlphaMapFrame, "TOPLEFT", 0, 0 };
|
||||
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][3][1], AtlasLootCharDB["QuickLooks"][3][2], AtlasLootCharDB["QuickLooks"][3][3], pFrame);
|
||||
else
|
||||
@@ -2155,9 +2244,9 @@
|
||||
</OnMouseUp>
|
||||
<OnClick>
|
||||
if AtlasLoot_IsLootTableAvailable(AtlasLootCharDB["QuickLooks"][4][1]) then
|
||||
if getglobal("AtlasLootPanel"):GetParent() == AtlasFrame then
|
||||
if AtlasLootPanel:GetParent() == AtlasFrame then
|
||||
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][4][1], AtlasLootCharDB["QuickLooks"][4][2], AtlasLootCharDB["QuickLooks"][4][3], nil);
|
||||
elseif getglobal("AtlasLootPanel"):GetParent() == AlphaMapAlphaMapFrame then
|
||||
elseif AtlasLootPanel:GetParent() == AlphaMapAlphaMapFrame then
|
||||
pFrame = { "TOPLEFT", AlphaMapAlphaMapFrame, "TOPLEFT", 0, 0 };
|
||||
AtlasLoot_ShowItemsFrame(AtlasLootCharDB["QuickLooks"][4][1], AtlasLootCharDB["QuickLooks"][4][2], AtlasLootCharDB["QuickLooks"][4][3], pFrame);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user