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.

550 lines
20 KiB

<Ui>
<RematchCompositeButton name="RematchCompactPetListButtonTemplate" virtual="true">
<Size x="200" y="26"/>>
<KeyValues>
<KeyValue key="compact" value="true" type="boolean"/>
</KeyValues>
<Layers>
<Layer level="BACKGROUND">
<Texture parentKey="Back" file="Interface\AddOns\Rematch\Textures\backplate">
<Anchors>
<Anchor point="TOPLEFT" x="27" y="0"/>
<Anchor point="BOTTOMRIGHT"/>
</Anchors>
<TexCoords left="0" right="1" top="0.5" bottom="1"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture parentKey="Pet">
<Size x="25" y="25"/>
<Anchors>
<Anchor point="LEFT" x="1" y="0"/>
</Anchors>
<TexCoords left="0.078125" right="0.921875" top="0.078125" bottom="0.921875"/>
</Texture>
<FontString parentKey="Name" inherits="GameFontNormal" justifyH="LEFT">
<Size x="0" y="21"/>
<Anchors>
<Anchor point="LEFT" x="52" y="0"/>
<Anchor point="RIGHT" x="-6" y="0"/>
</Anchors>
</FontString>
<FontString parentKey="Breed" inherits="SystemFont_Tiny">
<Anchors>
<Anchor point="CENTER" relativePoint="RIGHT" x="-12" y="0"/>
</Anchors>
</FontString>
<Texture parentKey="Notes" file="Interface\AddOns\Rematch\Textures\Footnotes" hidden="false">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="RIGHT" x="-24" y="0"/>
</Anchors>
<TexCoords left="0" right="0.125" top="0" bottom="0.25"/>
</Texture>
</Layer>
<Layer level="BORDER">
<Texture parentKey="TypeDecal" file="Interface\PetBattles\PetIcon-Beast">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="LEFT" relativeKey="$parent.Pet" relativePoint="RIGHT" x="2" y="0"/>
</Anchors>
<TexCoords left="0.4921875" right="0.796875" top="0.50390625" bottom="0.65625"/>
</Texture>
<FontString parentKey="LevelText" inherits="SystemFont_Outline_Small" text="25">
<Anchors>
<Anchor point="CENTER" relativeKey="$parent.TypeDecal" relativePoint="BOTTOMRIGHT" x="-4" y="6"/>
</Anchors>
<FontHeight>
<AbsValue val="9"/>
</FontHeight>
<Color r=".9" g=".9" b=".9"/>
</FontString>
</Layer>
<Layer level="OVERLAY">
<!-- blue up arrow on right side; in this layer so it's not clickable -->
<Texture parentKey="Leveling" file="Interface\AddOns\Rematch\Textures\Footnotes" hidden="false">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="RIGHT" x="-44" y="0"/>
</Anchors>
<TexCoords left="0.125" right="0.25" top="0" bottom="0.25"/>
</Texture>
<Texture parentKey="InTeams" file="Interface\AddOns\Rematch\Textures\Footnotes" hidden="false">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="RIGHT" x="-64" y="0"/>
</Anchors>
<TexCoords left="0.5" right="0.625" top="0.5" bottom="0.75"/>
</Texture>
<!-- either the dead or injured texture (maybe others in the future) -->
<Texture parentKey="Status" file="Interface\AddOns\Rematch\Textures\petstatus" hidden="true">
<Size x="24" y="24"/>
<Anchors>
<Anchor point="LEFT" x="2" y="-1"/>
</Anchors>
</Texture>
<Texture parentKey="Favorite" atlas="PetJournal-FavoritesIcon" hidden="true">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="TOPLEFT" x="-5" y="5"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
Rematch.PetListButtonOnLoad(self)
</OnLoad>
<OnEnter>
self.Back:SetBlendMode("ADD")
Rematch.PetListButtonOnEnter(self)
</OnEnter>
<OnLeave>
self.Back:SetBlendMode("BLEND")
Rematch.PetListButtonOnLeave(self)
</OnLeave>
<OnMouseDown>
if self:HasFocus() then
-- if mouse is down while over an active texture, don't "press" the main button
self.Back:SetBlendMode("BLEND")
end
</OnMouseDown>
<OnMouseUp>
if GetMouseFocus()==self then
-- if mouse goes up after it left button, don't "unpress" it
self.Back:SetBlendMode("ADD")
end
</OnMouseUp>
<OnClick>
if self:HasFocus() then
Rematch.PetListButtonOnClick(self,button)
end
</OnClick>
<OnDoubleClick>
if self:HasFocus() then
Rematch.PetListButtonOnDoubleClick(self)
end
</OnDoubleClick>
<OnDragStart>
Rematch.PetListButtonOnDragStart(self)
</OnDragStart>
</Scripts>
</RematchCompositeButton>
<RematchCompositeButton name="RematchNewPetListButtonTemplate" virtual="true">
<Size x="200" y="44"/> <!-- can be any width; 1px unused across top so 43px usable height -->
<Layers>
<Layer level="BACKGROUND">
<Texture parentKey="Back" file="Interface\AddOns\Rematch\Textures\backplate">
<Anchors>
<Anchor point="TOPLEFT" x="48" y="0"/>
<Anchor point="BOTTOMRIGHT"/>
</Anchors>
<TexCoords left="0" right="1" top="0" bottom="0.5"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture parentKey="Pet">
<Size x="40" y="40"/>
<Anchors>
<Anchor point="LEFT" x="3" y="0"/>
</Anchors>
<TexCoords left="0.078125" right="0.921875" top="0.078125" bottom="0.921875"/>
<!-- <TexCoords left="0.075" right="0.925" top="0.075" bottom="0.925"/> -->
</Texture>
<Texture parentKey="Notes" file="Interface\AddOns\Rematch\Textures\Footnotes" hidden="false">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="TOPRIGHT" x="-2" y="-3"/>
</Anchors>
<TexCoords left="0" right="0.125" top="0" bottom="0.25"/>
</Texture>
<!-- FontStrings -->
<FontString parentKey="Name" inherits="GameFontNormal" justifyH="LEFT" justifyV="CENTER" text="Pet Name Goes Here">
<Size x="0" y="36"/> <!-- y=36 when SubName not shown, 21 when shown -->
<Anchors>
<Anchor point="TOPLEFT" x="54" y="-4"/> <!-- x is 6+Back's TOPLEFT x -->
<Anchor point="TOPRIGHT" x="-32" y="-4"/> <!-- x=-8 when no footnotes shown, -22 when one footnote shown, -32 when breed and at most one footbote, -44 when both footnotes shown -->
</Anchors>
</FontString>
<FontString parentKey="SubName" inherits="GameFontHighlightSmall" justifyH="LEFT" justifyV="TOP" hidden="true">
<Size x="0" y="12"/>
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.Name" relativePoint="BOTTOMLEFT"/>
<Anchor point="TOPRIGHT" relativeKey="$parent.Name" relativePoint="BOTTOMRIGHT"/>
</Anchors>
</FontString>
<FontString parentKey="Breed" inherits="GameFontHighlight" justifyH="CENTER" justifyV="CENTER" text="B/B" hidden="false">
<Anchors>
<Anchor point="BOTTOMRIGHT" x="-3" y="5"/>
</Anchors>
<Color r="0.9" g="0.9" b="0.9"/>
</FontString>
</Layer>
<Layer level="BORDER">
<!-- big type symbol in background right edge of list button -->
<Texture parentKey="TypeDecal" file="Interface\AddOns\Rematch\Textures\PetTypeDecals" alpha="0.4" hidden="true">
<Size x="58" y="41"/> <!-- was 55x38 -->
<Anchors>
<Anchor point="RIGHT" x="-1" y="0"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<!-- blue up arrow on right side; in this layer so it's not clickable -->
<Texture parentKey="Leveling" file="Interface\AddOns\Rematch\Textures\Footnotes" hidden="true">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="TOPRIGHT" x="-22" y="-3"/>
</Anchors>
<TexCoords left="0.125" right="0.25" top="0" bottom="0.25"/>
</Texture>
<Texture parentKey="InTeams" file="Interface\AddOns\Rematch\Textures\Footnotes" hidden="false">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="TOPRIGHT" x="-43" y="-3"/>
</Anchors>
<TexCoords left="0.5" right="0.625" top="0.5" bottom="0.75"/>
</Texture>
<!-- border around the pet icon to the left -->
<Texture parentKey="Rarity" file="Interface\AddOns\Rematch\Textures\slotborder">
<Size x="44" y="44"/>
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.Pet" x="-2" y="2"/>
<!-- <Anchor point="BOTTOMRIGHT" relativeKey="$parent.Pet" x="3" y="-3"/> -->
</Anchors>
<!-- <Color r="0.5" g="0.5" b="0.5"/> -->
<TexCoords left="0" right="0.34375" top="0" bottom="0.34375"/>
</Texture>
<!-- either the dead or injured texture (maybe others in the future) -->
<Texture parentKey="Status" file="Interface\AddOns\Rematch\Textures\petstatus" hidden="true">
<Size x="39" y="39"/>
<Anchors>
<Anchor point="LEFT" x="4" y="0"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY" textureSubLevel="2">
<Texture parentKey="Favorite" atlas="PetJournal-FavoritesIcon" useAtlasSize="true" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" x="-6" y="5"/>
</Anchors>
</Texture>
<Texture parentKey="LevelBack" atlas="PetJournal-LevelBubble">
<Size x="22" y="22"/>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.Pet" relativePoint="BOTTOMRIGHT" x="6" y="-4"/>
</Anchors>
</Texture>
<FontString parentKey="LevelText" inherits="GameFontNormalSmall" text="25">
<Anchors>
<Anchor point="CENTER" relativeKey="$parent.LevelBack" relativePoint="CENTER" x="1" y="0"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
Rematch.PetListButtonOnLoad(self)
</OnLoad>
<OnEnter>
self.Back:SetBlendMode("ADD")
Rematch.PetListButtonOnEnter(self)
</OnEnter>
<OnLeave>
self.Back:SetBlendMode("BLEND")
Rematch.PetListButtonOnLeave(self)
</OnLeave>
<OnMouseDown>
if self:HasFocus() then
-- if mouse is down while over an active texture, don't "press" the main button
self.Back:SetBlendMode("BLEND")
end
</OnMouseDown>
<OnMouseUp>
if GetMouseFocus()==self then
-- if mouse goes up after it left button, don't "unpress" it
self.Back:SetBlendMode("ADD")
end
</OnMouseUp>
<OnClick>
if self:HasFocus() then
Rematch.PetListButtonOnClick(self,button)
end
</OnClick>
<OnDoubleClick>
if self:HasFocus() then
Rematch.PetListButtonOnDoubleClick(self)
end
</OnDoubleClick>
<OnDragStart>
Rematch.PetListButtonOnDragStart(self)
</OnDragStart>
</Scripts>
</RematchCompositeButton>
<!-- template for the typebar tabs -->
<Button name="RematchTypeBarTabTemplate" inherits="RematchTabTemplate" virtual="true">
<Size x="66" y="24"/>
<Scripts>
<OnClick>
RematchPetPanel.TypeBarTabOnClick(self)
</OnClick>
</Scripts>
</Button>
<!-- template for the type buttons within the typebar -->
<CheckButton name="RematchTypeBarButtonTemplate" inherits="RematchSlotTemplate" virtual="true">
<Size x="25" y="25"/>
<CheckedTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"/>
<Scripts>
<OnClick>
RematchPetPanel.TypeBarButtonOnClick(self)
</OnClick>
</Scripts>
</CheckButton>
<Frame name="RematchPetPanel" inherits="RematchPanelTemplate" hidden="true">
<Frames>
<!-- section above petList with search bar, filter button and type bar -->
<Frame parentKey="Top" inherits="RematchInsetFrameTemplate">
<Size x="280" y="32"/>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
<Frames>
<!-- typebar toggle button to left of search bar -->
<Button parentKey="Toggle" inherits="RematchTopToggleButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" x="3" y="-3"/>
</Anchors>
<Scripts>
<OnClick>
RematchPetPanel:ToggleTypeBar()
</OnClick>
</Scripts>
</Button>
<!-- filter button to the right of the search bar -->
<Button parentKey="Filter" inherits="RematchFilterButtonTemplate" text="FILTER">
<Anchors>
<Anchor point="TOPRIGHT" x="-3" y="-3"/>
</Anchors>
<Scripts>
<OnClick>
Rematch:ToggleMenu("PetFilter","TOPLEFT",self,"TOPRIGHT")
</OnClick>
</Scripts>
</Button>
<!-- search bar between typebar toggle and filter buttons -->
<EditBox parentKey="SearchBox" inherits="RematchSearchBoxTemplate">
<Size x="0" y="24"/>
<Anchors>
<Anchor point="LEFT" relativeKey="$parent.Toggle" relativePoint="RIGHT" x="-1" y="0"/>
<Anchor point="RIGHT" relativeKey="$parent.Filter" relativePoint="LEFT" x="1" y="0"/>
</Anchors>
<Scripts>
<OnTextChanged>
RematchPetPanel.SearchBoxOnTextChanged(self)
</OnTextChanged>
<OnEnterPressed>
self:ClearFocus()
</OnEnterPressed>
</Scripts>
</EditBox>
<!-- the actual typebar -->
<Frame parentKey="TypeBar" hidden="true" inherits="RematchBorderBackdropTemplate">
<Size x="270" y="36"/>
<Anchors>
<Anchor point="BOTTOM" x="0" y="3"/>
</Anchors>
<!-- <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<EdgeSize val="16"/>
<BorderColor r="0.6" g="0.6" b="0.6"/>
</Backdrop> -->
<Frames>
<!-- type tab -->
<Button parentArray="Tabs" inherits="RematchTypeBarTabTemplate" id="1">
<Size x="56" y="24"/>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="2" y="-4"/>
</Anchors>
</Button>
<!-- strong vs tab -->
<Button parentArray="Tabs" inherits="RematchTypeBarTabTemplate" id="2">
<Size x="72" y="24"/>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="52" y="-4"/>
</Anchors>
</Button>
<!-- tough vs tab -->
<Button parentArray="Tabs" inherits="RematchTypeBarTabTemplate" id="3">
<Size x="72" y="24"/>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="118" y="-4"/>
</Anchors>
</Button>
<!-- quality tab -->
<Button parentArray="Tabs" inherits="RematchTypeBarTabTemplate" id="4">
<Size x="68" y="24"/>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="184" y="-4"/>
</Anchors>
</Button>
<Button parentKey="Clear" inherits="RematchClearButtonTemplate">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="-3" y="-1"/>
</Anchors>
<Scripts>
<OnClick>
RematchPetPanel.TypeBarClear(self)
</OnClick>
</Scripts>
</Button>
<CheckButton parentArray="Buttons" inherits="RematchTypeBarButtonTemplate" id="1"/>
<CheckButton parentArray="Buttons" inherits="RematchTypeBarButtonTemplate" id="2"/>
<CheckButton parentArray="Buttons" inherits="RematchTypeBarButtonTemplate" id="3"/>
<CheckButton parentArray="Buttons" inherits="RematchTypeBarButtonTemplate" id="4"/>
<CheckButton parentArray="Buttons" inherits="RematchTypeBarButtonTemplate" id="5"/>
<CheckButton parentArray="Buttons" inherits="RematchTypeBarButtonTemplate" id="6"/>
<CheckButton parentArray="Buttons" inherits="RematchTypeBarButtonTemplate" id="7"/>
<CheckButton parentArray="Buttons" inherits="RematchTypeBarButtonTemplate" id="8"/>
<CheckButton parentArray="Buttons" inherits="RematchTypeBarButtonTemplate" id="9"/>
<CheckButton parentArray="Buttons" inherits="RematchTypeBarButtonTemplate" id="10"/>
<Frame parentKey="QualityBar">
<Anchors>
<Anchor point="TOPLEFT"/>
<Anchor point="BOTTOMRIGHT"/>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString parentKey="SortLabel" inherits="GameFontHighlightSmall" text="Sort by">
<Anchors>
<Anchor point="LEFT" x="20" y="0"/>
</Anchors>
</FontString>
<FontString parentKey="OnlyLabel" inherits="GameFontHighlightSmall" text="Only">
<Anchors>
<Anchor point="RIGHT" x="-80" y="0"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<CheckButton parentKey="Level25Button" inherits="RematchTypeBarButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeKey="$parent.OnlyLabel" relativePoint="RIGHT" x="4" y="0"/>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString inherits="GameFontNormalSmall" text="25">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
</Layer>
</Layers>
</CheckButton>
<CheckButton parentKey="RareButton" inherits="RematchTypeBarButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeKey="$parent.OnlyLabel" relativePoint="RIGHT" x="30" y="0"/>
</Anchors>
</CheckButton>
<CheckButton parentKey="HealthButton" inherits="RematchTypeBarButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeKey="$parent.SortLabel" relativePoint="RIGHT" x="4" y="0"/>
</Anchors>
</CheckButton>
<CheckButton parentKey="PowerButton" inherits="RematchTypeBarButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeKey="$parent.SortLabel" relativePoint="RIGHT" x="30" y="0"/>
</Anchors>
</CheckButton>
<CheckButton parentKey="SpeedButton" inherits="RematchTypeBarButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeKey="$parent.SortLabel" relativePoint="RIGHT" x="56" y="0"/>
</Anchors>
</CheckButton>
</Frames>
</Frame>
</Frames>
</Frame>
</Frames>
</Frame>
<!-- results bar only shows when there's a filter active -->
<Frame parentKey="Results" inherits="RematchInsetFrameTemplate" hidden="true">
<Size x="280" y="26"/>
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.Top" relativePoint="BOTTOMLEFT" x="0" y="-2"/>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString parentKey="Pets" inherits="GameFontNormal">
<Anchors>
<Anchor point="LEFT" x="8" y="0"/>
</Anchors>
</FontString>
<FontString parentKey="Filters" inherits="GameFontNormal" wordwrap="false" justifyH="RIGHT">
<Anchors>
<Anchor point="LEFT" relativeKey="$parent.Pets" relativePoint="RIGHT" x="1" y="0"/>
<Anchor point="RIGHT" x="-25" y="0"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button parentKey="Clear" inherits="RematchClearButtonTemplate">
<Anchors>
<Anchor point="RIGHT" x="-5" y="0"/>
</Anchors>
<Scripts>
<OnClick>
Rematch.Roster:ClearAllFilters(true)
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
<!-- this contains the list of pets -->
<RematchAutoScrollFrame parentKey="List">
<Size x="280" y="503"/>
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.Top" relativePoint="BOTTOMLEFT" x="0" y="-2"/>
<Anchor point="BOTTOMRIGHT"/>
</Anchors>
</RematchAutoScrollFrame>
<!-- border placed around currently summoned pet -->
<Frame parentKey="SelectedOverlay" inherits="RematchSelectedOverlayTemplate" hidden="true">
<Size x="200" y="44"/>
<!-- <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<EdgeSize val="16"/>
<BorderColor r="1" g="0.82" b="0.5"/>
</Backdrop> -->
</Frame>
<!-- Selected gets reparented and positioned onto team buttons that are loaded -->
<Frame parentKey="Selected" useParentLevel="true" hidden="true">
<Layers>
<Layer level="BORDER">
<Texture parentKey="Texture" file="Interface\LevelUp\LevelUpTex" alpha="0.2">
<Size x="0" y="20"/>
<Anchors>
<Anchor point="BOTTOMLEFT" x="4" y="4"/>
<Anchor point="BOTTOMRIGHT" x="-4" y="4"/>
</Anchors>
<TexCoords left="0.56054688" right="0.99609375" top="0.24218750" bottom="0.46679688"/>
</Texture>
</Layer>
</Layers>
</Frame>
</Frames>
</Frame>
5 years ago
</Ui>