You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

225 lines
8.2 KiB

<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
<Script file="MinimapButton.lua"/>
<Button name="NarciMinimapPanelButtonTemplate" virtual="true" motionScriptsWhileDisabled="true" registerForClicks="LeftButtonUp, RightButtonUp">
<Size x="128" y="24"/>
<Layers>
<Layer level="OVERLAY">
<FontString inherits="NarciTooltipHeaderFont" parentKey="BlackText">
<Color r="0" g="0" b="0"/>
<Size x="112" y="24"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
<FontString inherits="NarciTooltipHeaderFont" parentKey="WhiteText">
<Color r="0.8" g="0.8" b="0.8"/>
<Size x="112" y="24"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnDisable>
self.WhiteText:SetTextColor(0.42, 0.42, 0.42);
</OnDisable>
</Scripts>
</Button>
<Frame name="Narci_MinimapButtonContainer" parent="UIParent" frameStrata="LOW">
<Size x="8" y="8"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Scripts>
<OnLoad>
Minimap:HookScript("OnHide", function() self:Hide() end);
Minimap:HookScript("OnShow", function() self:Show() end);
</OnLoad>
</Scripts>
</Frame>
<Button name="Narci_MinimapButton" parent="Narci_MinimapButtonContainer" enableMouse="true" movable="true" hidden="true" frameStrata="LOW" frameLevel="62" ignoreParentAlpha="false" clampedToScreen="true" motionScriptsWhileDisabled="false" useParentLevel="false" mixin="NarciMinimapButtonMixin">
<Size>
<AbsDimension x="36" y="36"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="Minimap" relativePoint="BOTTOM"/>
</Anchors>
<HitRectInsets>
<AbsInset left="6" right="6" top="5" bottom="5"/>
</HitRectInsets>
<Layers>
<Layer level="BACKGROUND">
<Texture file="Interface\AddOns\Narcissus\Art\Modules\PhotoMode\SpeechBalloon\ControlNode" parentKey="Bling" hidden="true" Alpha="0">
<TexCoords left="0" right="0.5" top="0.5" bottom="1"/>
<Size x="36" y="36"/>
<Anchors>
<Anchor point="CENTER" relativeKey="$parent" relativePoint="CENTER" x="0" y="0"/>
</Anchors>
<Animations>
<AnimationGroup parentKey="animScale">
<Scale scaleX="1" scaleY="1" duration="0" order="1"/>
<Alpha fromAlpha="0" toAlpha="0" duration="0" order="1"/>
<Scale scaleX="2.4" scaleY="2.4" duration="0.6" order="2" smoothing="OUT"/>
<Alpha fromAlpha="1" toAlpha="0" duration="0.6" order="2"/>
<Scripts>
<OnFinished>
self:GetParent():Hide();
</OnFinished>
</Scripts>
</AnimationGroup>
</Animations>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture file="Interface\AddOns\Narcissus\Art\Minimap\LOGO-Cyan" parentKey="Background" hidden="false">
<TexCoords left="0" right="0.5" top="0" bottom="1"/>
<Size>
<AbsDimension x="42" y="42"/> <!--86 for AzUI-->
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture parentKey="Color" file="Interface\AddOns\Narcissus\Art\Minimap\LOGO-Cyan" hidden="true" Alpha="0">
<TexCoords left="0.5" right="1" top="0" bottom="1"/>
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.Background" relativePoint="TOPLEFT"/>
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.Background" relativePoint="BOTTOMRIGHT"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame parentKey="TooltipFrame" hidden="true" ignoreParentScale="true" useParentLevel="true" clampedToScreen="true" frameStrata="TOOLTIP">
<Size x="32" y="16"/>
<Layers>
<Layer level="BACKGROUND" textureSubLevel="-2">
<Texture file="Interface\AddOns\Narcissus\Art\Modules\PhotoMode\SpeechBalloon\SquareOutline2px" parentKey="Left">
<TexCoords left="0" right="0.25" top="0" bottom="1"/>
<Size x="4" y="16"/>
<Anchors>
<Anchor point="LEFT" relativeKey="$parent" relativePoint="LEFT" x="-0"/>
</Anchors>
</Texture>
<Texture file="Interface\AddOns\Narcissus\Art\Modules\PhotoMode\SpeechBalloon\SquareOutline2px" parentKey="Right">
<TexCoords left="0.75" right="1" top="0" bottom="1"/>
<Size x="4" y="16"/>
<Anchors>
<Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="0"/>
</Anchors>
</Texture>
<Texture file="Interface\AddOns\Narcissus\Art\Modules\PhotoMode\SpeechBalloon\SquareOutline2px" parentKey="Middle">
<Size y="16"/>
<TexCoords left="0.25" right="0.75" top="0" bottom="1"/>
<Anchors>
<Anchor point="LEFT" relativeKey="$parent.Left" relativePoint="RIGHT" x="-0"/>
<Anchor point="RIGHT" relativeKey="$parent.Right" relativePoint="LEFT" x="0"/>
</Anchors>
</Texture>
</Layer>
<Layer level="BACKGROUND" textureSubLevel="-1">
<FontString inherits="NarciTooltipDescriptionFontSmall" justifyH="CENTER" justifyV="MIDDLE" parentKey="Description">
<Color r="0" g="0" b="0"/>
<Anchors>
<Anchor point="CENTER" relativeKey="$parent" relativePoint="CENTER" x="0" y="-1"/>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
<Frame parentKey="Panel" hidden="true" Alpha="0">
<Size x="128" y="180"/>
<Anchors>
<Anchor point="TOP" relativeKey="$parent" relativePoint="CENTER" y="0"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture nounload="true" parentKey="Top">
<Size x="256" y="96"/>
<Anchors>
<Anchor point="TOP" relativeKey="$parent" relativePoint="TOP" y="54"/>
</Anchors>
<TexCoords left="0" right="0.5" top="0" bottom="0.375"/>
</Texture>
<Texture nounload="true" parentKey="Middle">
<Size x="256" y="48"/>
<Anchors>
<Anchor point="TOP" relativeKey="$parent.Top" relativePoint="BOTTOM"/>
</Anchors>
<TexCoords left="0" right="0.5" top="0.75" bottom="1"/>
</Texture>
<Texture nounload="true" parentKey="Bottom">
<Size x="256" y="96"/>
<Anchors>
<Anchor point="TOP" relativeKey="$parent.Middle" relativePoint="BOTTOM"/>
</Anchors>
<TexCoords left="0.5" right="1" top="0" bottom="0.375"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<FontString inherits="NarciDisabledFont" justifyH="CENTER" justifyV="MIDDLE" parentKey="Version">
<Color r="0.5" g="0.5" b="0.5"/>
<Anchors>
<Anchor point="CENTER" relativeKey="$parent.Bottom" relativePoint="TOP" y="-40"/>
</Anchors>
</FontString>
<!--Texture parentKey="Area">
<Color r="1" g="0" b="0" a="0.5"/>
</Texture-->
</Layer>
</Layers>
<Frames>
<Frame parentKey="ClipFrame" clipChildren="true" hidden="true" Alpha="0">
<Size x="128" y="24"/>
<Layers>
<Layer>
<Texture parentKey="Highlight">
<TexCoords left="0" right="0.25" top="0.5" bottom="0.59375"/>
</Texture>
<Texture parentKey="PushedHighlight" hidden="true">
<TexCoords left="0.25" right="0.5" top="0.5" bottom="0.59375"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnHide>
self:SetAlpha(0);
</OnHide>
</Scripts>
</Frame>
</Frames>
<Scripts>
<OnLoad>
self:SetFrameLevel(self:GetParent():GetFrameLevel() - 1);
local tex = "Interface/AddOns/Narcissus/Art/Minimap/Panel";
local sampling = "TRILINEAR";
self.Top:SetTexture(tex, nil, nil, sampling);
self.Middle:SetTexture(tex, nil, nil, sampling);
self.Bottom:SetTexture(tex, nil, nil, sampling);
</OnLoad>
<OnHide>
self:SetAlpha(0);
</OnHide>
</Scripts>
</Frame>
</Frames>
<Scripts>
<OnLoad method="OnLoad"/>
<OnDragStart method="OnDragStart"/>
<OnDragStop method="OnDragStop"/>
<OnClick method="OnClick"/>
<OnMouseDown method="OnMouseDown"/>
<PostClick method="PostClick"/>
<OnEnter method="OnEnter"/>
<OnLeave method="OnLeave"/>
<OnHide method="OnHide"/>
<OnEvent method="OnEvent"/>
</Scripts>
</Button>
</Ui>