WOW_Collection_System/SM_CollectionSystem.xml
尚美 7d57073759 优化“物品收藏”中(头部)等部位对于已获得和未获得的状态,
已获得的以绿色边框、绿色高光、绿色选中颜色显示
未获得的以红色边框、红色高光、红色选中颜色显示
2025-06-16 02:37:01 +08:00

537 lines
19 KiB
XML

<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
<Button name="SM_CollectionSystemWardrobeSlotButtonTemplate" parentArray="Buttons"
virtual="true">
<KeyValues>
<KeyValue key="transmogType" value="LE_TRANSMOG_TYPE_ILLUSION" type="global" />
</KeyValues>
<Size x="25" y="25" />
<NormalTexture parentKey="NormalTexture"
file="Interface\AddOns\SM_CollectionSystem\Interface\Transmogrify\Transmogrify"
atlas="transmog-nav-slot-enchant" useAtlasSize="true">
<Size x="29" y="29" />
<TexCoords left="0.4140625" right="0.470703125" top="0.248046875" bottom="0.3046875" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
</NormalTexture>
<HighlightTexture parentKey="Highlight"
file="Interface\AddOns\SM_CollectionSystem\Interface\ContainerFrame\Bags"
atlas="bags-roundhighlight" alphaMode="ADD" hidden="true">
<Size x="21" y="21" />
<TexCoords left="0.1640625" right="0.3046875" top="0.6875" bottom="0.828125" />
<Anchors>
<Anchor point="CENTER" x="0" y="2" />
</Anchors>
</HighlightTexture>
<Layers>
<Layer level="OVERLAY">
<Texture parentKey="SelectedTexture"
file="Interface\AddOns\SM_CollectionSystem\Interface\Transmogrify\Transmogrify"
atlas="transmog-nav-slot-selected-small" useAtlasSize="true" hidden="true">
<Size x="37" y="37" />
<TexCoords left="0.734375" right="0.802734375" top="0.171875"
bottom="0.244140625" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
</Texture>
</Layer>
</Layers>
</Button>
<DressUpModel name="SM_CollectionSystemWardrobeItemsModelTemplate"
mixin="WardrobeItemsModelMixin" virtual="true">
<Size x="78" y="104" />
<Layers>
<Layer level="BACKGROUND">
<Texture parentKey="SolidBackground" setAllPoints="true">
<Color r="0" g="0" b="0" />
</Texture>
<Texture parentKey="StoreUnderlay"
file="Interface\AddOns\SM_CollectionSystem\Textures\SubscriptionOverlay"
hidden="true">
<Size x="82" y="108" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0.32421875" right="0.64453125" top="0" bottom="0.84375" />
</Texture>
<Texture parentKey="SubscriptionUnderlay"
file="Interface\AddOns\SM_CollectionSystem\Textures\SubscriptionOverlay"
hidden="true">
<Size x="82" y="108" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0.3203125" right="0" top="0" bottom="0.84375" />
</Texture>
</Layer>
<Layer level="OVERLAY" textureSubLevel="-1">
<Texture parentKey="Border"
file="Interface\AddOns\SM_CollectionSystem\Interface\Transmogrify\Transmogrify"
atlas="transmog-wardrobe-border-collected" useAtlasSize="true">
<Size x="96" y="122" />
<TexCoords left="0.001953125" right="0.189453125" top="0.255859375"
bottom="0.494140625" />
<Anchors>
<Anchor point="CENTER" x="0" y="-3" />
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture parentKey="TransmogStateTexture"
file="Interface\AddOns\SM_CollectionSystem\Interface\Transmogrify\Transmogrify"
atlas="transmog-wardrobe-border-selected" useAtlasSize="true" alphaMode="ADD"
hidden="true">
<Size x="102" y="128" />
<TexCoords left="0.001953125" right="0.201171875" top="0.001953125"
bottom="0.251953125" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY" textureSubLevel="1">
<FontString name="$parentNewString" parentKey="NewString"
inherits="GameFontHighlight" maxLines="1" justifyH="CENTER" text="NEW_CAPS"
hidden="true">
<Shadow>
<Color r="0.32" g="0.5" b="1.0" />
</Shadow>
<Anchors>
<Anchor point="TOP" x="0" y="8" />
</Anchors>
</FontString>
<Texture parentKey="NewGlow"
file="Interface\AddOns\SM_CollectionSystem\Interface\Collections\Collections"
atlas="collections-newglow" hidden="true">
<Size x="59" y="37" />
<TexCoords left="0.51171875" right="0.626953125" top="0.013671875"
bottom="0.0859375" />
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentNewString" x="-20" y="10" />
<Anchor point="BOTTOMRIGHT" relativeTo="$parentNewString" x="20" y="-10" />
</Anchors>
</Texture>
</Layer>
<Layer level="HIGHLIGHT">
<Texture
file="Interface\AddOns\SM_CollectionSystem\Interface\Transmogrify\Transmogrify"
atlas="transmog-wardrobe-border-highlighted" alphaMode="ADD" useAtlasSize="true">
<Size x="84" y="110" />
<TexCoords left="0.205078125" right="0.369140625" top="0.439453125"
bottom="0.654296875" />
<Anchors>
<Anchor point="CENTER" x="0" y="0" />
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame parentKey="Favorite" setAllPoints="true">
<Layers>
<Layer level="ARTWORK">
<Texture parentKey="Icon"
file="Interface\AddOns\SM_CollectionSystem\Interface\Collections\Collections"
atlas="collections-icon-favorites" useAtlasSize="true" hidden="true">
<Size x="31" y="33" />
<TexCoords left="0.181640625" right="0.2421875" top="0.013671875"
bottom="0.078125" />
<Anchors>
<Anchor point="TOPLEFT" x="-12" y="13" relativePoint="TOPLEFT" />
</Anchors>
</Texture>
</Layer>
</Layers>
</Frame>
<Frame parentKey="HideVisual" setAllPoints="true">
<Layers>
<Layer level="ARTWORK">
<Texture parentKey="Icon"
file="Interface\AddOns\SM_CollectionSystem\Interface\Transmogrify\Transmogrify"
atlas="transmog-icon-hidden" useAtlasSize="true" hidden="true">
<Size x="35" y="30" />
<TexCoords left="0.806640625" right="0.875" top="0.171875"
bottom="0.23046875" />
<Anchors>
<Anchor point="TOPLEFT" x="-12" y="13" relativePoint="TOPLEFT" />
</Anchors>
</Texture>
</Layer>
</Layers>
</Frame>
<Button parentKey="ClaimQuest" hidden="true">
<Size x="21" y="21" />
<Anchors>
<Anchor point="BOTTOM" y="-12" />
</Anchors>
<Layers>
<Layer level="OVERLAY">
<Texture file="Interface\AddOns\SM_CollectionSystem\Textures\ClaimQuest"
alphaMode="ADD">
<Size x="106" y="46" />
<Anchors>
<Anchor point="BOTTOM" y="-6" />
</Anchors>
<TexCoords left="0" right="0.4140625" top="0.46875" bottom="0.828125" />
</Texture>
</Layer>
</Layers>
<NormalTexture file="Interface\AddOns\SM_CollectionSystem\Textures\ClaimQuest">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0" right="0.234375" top="0" bottom="0.46875" />
</NormalTexture>
<PushedTexture file="Interface\AddOns\SM_CollectionSystem\Textures\ClaimQuest">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0.234375" right="0.46875" top="0" bottom="0.46875" />
</PushedTexture>
<HighlightTexture file="Interface\AddOns\SM_CollectionSystem\Textures\ClaimQuest"
alphaMode="ADD" alpha="0.75">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0.46875" right="0.703125" top="0" bottom="0.46875" />
</HighlightTexture>
<Scripts>
<OnClick>
PlaySound("igMainMenuOptionCheckBoxOn");
ezCollections:BeginClaimQuest(self:GetParent().visualInfo.visualID);
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(ezCollections.L["ClaimQuest.Tooltip.Header"],
NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1);
GameTooltip:AddLine(ezCollections.L["ClaimQuest.Tooltip.Text"],
HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b, 1,
1);
GameTooltip:Show();
</OnEnter>
<OnLeave function="GameTooltip_Hide" />
</Scripts>
</Button>
<Button parentKey="StoreButton" hidden="true">
<Size x="21" y="21" />
<Anchors>
<Anchor point="BOTTOM" y="-12" />
</Anchors>
<Layers>
<Layer level="OVERLAY">
<Texture file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay"
alphaMode="ADD">
<Size x="106" y="46" />
<Anchors>
<Anchor point="BOTTOM" y="-6" />
</Anchors>
<TexCoords left="0" right="0.4140625" top="0.234375" bottom="0.4140625" />
</Texture>
</Layer>
</Layers>
<NormalTexture file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0" right="0.234375" top="0" bottom="0.234375" />
</NormalTexture>
<PushedTexture file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0.234375" right="0.46875" top="0" bottom="0.234375" />
</PushedTexture>
<HighlightTexture file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay"
alphaMode="ADD" alpha="0.75">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0.46875" right="0.703125" top="0" bottom="0.234375" />
</HighlightTexture>
<Scripts>
<OnClick>
PlaySound("igMainMenuOptionCheckBoxOn");
StaticPopup_Show("EZCOLLECTIONS_STORE_URL", nil, nil,
format(ezCollections.StoreURLSkinFormat,
self:GetParent().visualInfo.visualID));
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(ezCollections.L["Tooltip.Store.Header"], 0, 0.75, 1, 1);
GameTooltip:AddLine(ezCollections.L["Tooltip.Store.Text"],
HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b, 1,
1);
GameTooltip:Show();
</OnEnter>
<OnLeave function="GameTooltip_Hide" />
</Scripts>
</Button>
<Button parentKey="SubscriptionButton" hidden="true">
<Size x="21" y="21" />
<Anchors>
<Anchor point="BOTTOM" y="-12" />
</Anchors>
<Layers>
<Layer level="OVERLAY">
<Texture file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay"
alphaMode="ADD">
<Size x="106" y="46" />
<Anchors>
<Anchor point="BOTTOM" y="-6" />
</Anchors>
<TexCoords left="0" right="0.4140625" top="0.234375" bottom="0.4140625" />
</Texture>
</Layer>
</Layers>
<NormalTexture file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0" right="0.234375" top="0.5" bottom="0.734375" />
</NormalTexture>
<PushedTexture file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0.234375" right="0.46875" top="0.5" bottom="0.734375" />
</PushedTexture>
<HighlightTexture file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay"
alphaMode="ADD" alpha="0.75">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0.46875" right="0.703125" top="0" bottom="0.234375" />
</HighlightTexture>
<Scripts>
<OnClick>
PlaySound("igMainMenuOptionCheckBoxOn");
local subscription =
ezCollections:GetSubscriptionForSkin(self:GetParent().visualInfo.visualID);
StaticPopup_Show("EZCOLLECTIONS_STORE_URL", nil, nil, subscription and
subscription.URL or "");
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
local subscription =
ezCollections:GetSubscriptionForSkin(self:GetParent().visualInfo.visualID);
if subscription then
GameTooltip:SetText(ezCollections.L["Tooltip.Subscription.Header"], 0, 0.75,
1, 1);
GameTooltip:AddLine(subscription.Name, NORMAL_FONT_COLOR.r,
NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1, 1);
GameTooltip:AddLine(subscription.Description, HIGHLIGHT_FONT_COLOR.r,
HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b, 1, 1);
GameTooltip:AddLine(" ", HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g,
HIGHLIGHT_FONT_COLOR.b, 1, 1);
GameTooltip:AddLine(ezCollections.L["Tooltip.Subscription.Text"],
HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b, 1,
1);
end
GameTooltip:Show();
</OnEnter>
<OnLeave function="GameTooltip_Hide" />
</Scripts>
</Button>
<Button parentKey="StoreSubscriptionButton" hidden="true">
<Size x="21" y="21" />
<Anchors>
<Anchor point="BOTTOM" y="-12" x="-16" />
</Anchors>
<NormalTexture file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0" right="0.234375" top="0" bottom="0.234375" />
</NormalTexture>
<PushedTexture file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0.234375" right="0.46875" top="0" bottom="0.234375" />
</PushedTexture>
<HighlightTexture file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay"
alphaMode="ADD" alpha="0.75">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0.46875" right="0.703125" top="0" bottom="0.234375" />
</HighlightTexture>
<Scripts>
<OnClick>
PlaySound("igMainMenuOptionCheckBoxOn");
StaticPopup_Show("EZCOLLECTIONS_STORE_URL", nil, nil,
format(ezCollections.StoreURLSkinFormat,
self:GetParent().visualInfo.visualID));
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(ezCollections.L["Tooltip.Store.Header"], 0, 0.75, 1, 1);
GameTooltip:AddLine(ezCollections.L["Tooltip.Store.Text"],
HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b, 1,
1);
GameTooltip:Show();
</OnEnter>
<OnLeave function="GameTooltip_Hide" />
</Scripts>
<Frames>
<Button>
<Size x="21" y="21" />
<Anchors>
<Anchor point="CENTER" x="32" />
</Anchors>
<Layers>
<Layer level="OVERLAY">
<Texture
file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay"
alphaMode="ADD">
<Size x="106" y="46" />
<Anchors>
<Anchor point="BOTTOM" y="-6" x="-16" />
</Anchors>
<TexCoords left="0" right="0.4140625" top="0.734375"
bottom="0.9140625" />
</Texture>
</Layer>
</Layers>
<NormalTexture
file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0" right="0.234375" top="0.5" bottom="0.734375" />
</NormalTexture>
<PushedTexture
file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0.234375" right="0.46875" top="0.5" bottom="0.734375" />
</PushedTexture>
<HighlightTexture
file="Interface\AddOns\SM_CollectionSystem\Textures\StoreOverlay"
alphaMode="ADD" alpha="0.75">
<Size x="30" y="30" />
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TexCoords left="0.46875" right="0.703125" top="0" bottom="0.234375" />
</HighlightTexture>
<Scripts>
<OnClick>
PlaySound("igMainMenuOptionCheckBoxOn");
local subscription =
ezCollections:GetSubscriptionForSkin(self:GetParent():GetParent().visualInfo.visualID);
StaticPopup_Show("EZCOLLECTIONS_STORE_URL", nil, nil, subscription
and subscription.URL or "");
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
local subscription =
ezCollections:GetSubscriptionForSkin(self:GetParent():GetParent().visualInfo.visualID);
if subscription then
GameTooltip:SetText(ezCollections.L["Tooltip.Subscription.Header"],
0, 0.75, 1, 1);
GameTooltip:AddLine(subscription.Name, NORMAL_FONT_COLOR.r,
NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1, 1);
GameTooltip:AddLine(subscription.Description,
HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g,
HIGHLIGHT_FONT_COLOR.b, 1, 1);
GameTooltip:AddLine(" ", HIGHLIGHT_FONT_COLOR.r,
HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b, 1, 1);
GameTooltip:AddLine(ezCollections.L["Tooltip.Subscription.Text"],
HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g,
HIGHLIGHT_FONT_COLOR.b, 1, 1);
end
GameTooltip:Show();
</OnEnter>
<OnLeave function="GameTooltip_Hide" />
</Scripts>
</Button>
</Frames>
</Button>
<Button parentKey="SubscriptionOverlay" hidden="true">
<Size x="16" y="16" />
<Anchors>
<Anchor point="TOPRIGHT" x="10" y="10" />
</Anchors>
<NormalTexture
file="Interface\AddOns\SM_CollectionSystem\Textures\SubscriptionOverlay"
setAllPoints="true">
<TexCoords left="0.00390625" right="0.06640625" top="0.8515625"
bottom="0.9765625" />
</NormalTexture>
<HighlightTexture
file="Interface\AddOns\SM_CollectionSystem\Textures\SubscriptionOverlay"
setAllPoints="true" alphaMode="ADD" alpha="0.4">
<TexCoords left="0.07421875" right="0.13671875" top="0.8515625"
bottom="0.9765625" />
</HighlightTexture>
<Layers>
<Layer level="BACKGROUND">
<Texture
file="Interface\AddOns\SM_CollectionSystem\Textures\SubscriptionOverlay"
alphaMode="ADD">
<Size x="90" y="90" />
<Anchors>
<Anchor point="TOPRIGHT" x="10" y="10" />
</Anchors>
<TexCoords left="1" right="0.6484375" top="0" bottom="0.703125" />
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
function self:UpdateTooltip()
local subscription =
ezCollections:GetActiveSubscriptionForSkin(self:GetParent().visualInfo.visualID);
if subscription then
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(ezCollections.L["Tooltip.Subscription.Header"], 0, 0.75,
1, 1);
GameTooltip:AddLine(subscription.Name, NORMAL_FONT_COLOR.r,
NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1, 1);
GameTooltip:AddLine(subscription.Description, HIGHLIGHT_FONT_COLOR.r,
HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b, 1, 1);
local remaining = ezCollections:FormatRemainingTime(subscription.EndTime -
time());
if remaining then
GameTooltip:AddLine(remaining, GRAY_FONT_COLOR.r, GRAY_FONT_COLOR.g,
GRAY_FONT_COLOR.b, 1, 1);
end
GameTooltip:Show();
end
end
</OnLoad>
<OnEnter>
self:UpdateTooltip();
</OnEnter>
<OnLeave function="GameTooltip_Hide" />
</Scripts>
</Button>
<Frame parentKey="Loading" inherits="LoadingSpinnerTemplate" hidden="true">
<Anchors>
<Anchor point="CENTER" />
</Anchors>
</Frame>
</Frames>
</DressUpModel>
</Ui>