view PVPScan.xml @ 26:9e810626ddfb v8.2.0.026

- ToC Update for Patch 8.2
author Tercioo
date Fri, 28 Jun 2019 20:12:43 -0300
parents fedcd7c21db9
children
line wrap: on
line source
<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">
	
	<Frame name="PVPScanFrame" frameStrata="HIGH" hidden="false" parent="UIParent" movable="true">
		<Size>
			<AbsDimension x="150" y="60"/>
		</Size>
		
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" tile="true">
			<TileSize>
				<AbsValue val="64"/>
			</TileSize>
		</Backdrop>
		
		<Scripts>
			<OnEnter>
				PVPScanOnFrameEnter (self)
			</OnEnter>
			<OnLeave>
				PVPScanOnFrameLeave (self)
			</OnLeave>
			<OnMouseDown>
				PVPScanOnFrameMouseDown (self, button)
			</OnMouseDown>
			
			<OnMouseUp>
				PVPScanOnFrameMouseUp (self, button)
			</OnMouseUp>
			
			<OnLoad>
				self:SetBackdropColor (0, 0, 0, 1)
			</OnLoad>
		</Scripts>
		
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentText" text="PVPScan Anchor" inherits="GameFontHighlightSmall" justifyH="CENTER" parentKey="text">
					<FontHeight val="20"/>
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
	
	<Button name="PVPScanSpotBarTemplate" frameStrata="HIGH" hidden="true" parent="PVPScanFrame" movable="false" virtual="true" inherits="SecureActionButtonTemplate">
	
		<Attributes>
			<Attribute name="type" type="string" value="macro"/>
		</Attributes>
	
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
	
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentClassTexture" parentKey="classtexture" file="Interface\PaperDollInfoFrame\UI-Character-Skills-Bar">
					<Size>
						<AbsDimension x="150" y="20"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT"/>
					</Anchors>
				</Texture>
			</Layer>
		
			<Layer level="OVERLAY">
				<Texture name="$parentClassIcon" parentKey="classicon" file="Interface\InventoryItems\WoWUnknownItem01">
					<Size>
						<AbsDimension x="20" y="20"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT"/>
					</Anchors>
				</Texture>
				
				<FontString name="$parentName" text="Enemy Name" inherits="GameFontHighlightSmall" justifyH="LEFT" parentKey="name">
					<FontHeight val="10"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentClassIcon" relativePoint="RIGHT" x="2" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		
		<Scripts>
			<OnMouseUp>
				PVPScanSpotBarClick (self);
			</OnMouseUp>
		</Scripts>
	</Button>
	
	<Button name="PVPScanSpotBarInCombatTemplate" frameStrata="HIGH" hidden="true" parent="PVPScanFrame" movable="false" virtual="true">
		<Size>
			<AbsDimension x="150" y="20"/>
		</Size>
	
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentClassTexture" parentKey="classtexture" file="Interface\PaperDollInfoFrame\UI-Character-Skills-Bar">
					<Size>
						<AbsDimension x="150" y="20"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT"/>
					</Anchors>
				</Texture>
			</Layer>
		
			<Layer level="BORDER">
				<Texture name="$parentClassIcon" parentKey="classicon" file="Interface\InventoryItems\WoWUnknownItem01">
					<Size>
						<AbsDimension x="20" y="20"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT"/>
					</Anchors>
				</Texture>
				
				<FontString name="$parentName" text="Enemy Name" inherits="GameFontHighlightSmall" justifyH="LEFT" parentKey="name">
					<FontHeight val="10"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentClassIcon" relativePoint="RIGHT" x="2" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
			
			<Layer level="ARTWORK">
				<Texture name="$parentInCombatShadow" parentKey="inCombatShadow" file="Interface\Tooltips\UI-Tooltip-Background">
					<Size>
						<AbsDimension x="150" y="20"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentClassTexture" relativePoint="TOPLEFT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentClassTexture" relativePoint="BOTTOMRIGHT"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentInCombatIcon" parentKey="inCombat" file="Interface\CHARACTERFRAME\Disconnect-Icon">
					<Size>
						<AbsDimension x="20" y="20"/>
					</Size>
					<TexCoords left="0.18" right="0.82" top="0.18" bottom="0.82"/>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		
		<Scripts>
			<OnLoad>
				self.inCombatShadow:SetVertexColor (0, 0, 0, .6);
			</OnLoad>
		</Scripts>
		
	</Button>
</Ui>