annotate PVPScan.xml @ 12:874f6f84d243

- ToC Update.
author Tercio
date Tue, 19 Jul 2016 13:25:56 -0300
parents 6b79364e9347
children fedcd7c21db9
rev   line source
tercio@0 1 <Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
tercio@0 2 <Script file="PVPScan.lua"/>
tercio@0 3
tercio@0 4 <Frame name="PVPScanFrame" frameStrata="HIGH" hidden="false" parent="UIParent" movable="true">
tercio@0 5 <Size>
tercio@0 6 <AbsDimension x="150" y="60"/>
tercio@0 7 </Size>
tercio@0 8
tercio@0 9 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" tile="true">
tercio@0 10 <TileSize>
tercio@0 11 <AbsValue val="64"/>
tercio@0 12 </TileSize>
tercio@0 13 </Backdrop>
tercio@0 14
tercio@0 15 <Scripts>
tercio@2 16 <OnEnter>
tercio@2 17 PVPScanOnFrameEnter (self)
tercio@2 18 </OnEnter>
tercio@2 19 <OnLeave>
tercio@2 20 PVPScanOnFrameLeave (self)
tercio@2 21 </OnLeave>
tercio@0 22 <OnMouseDown>
tercio@1 23 PVPScanOnFrameMouseDown (self, button)
tercio@0 24 </OnMouseDown>
tercio@0 25
tercio@0 26 <OnMouseUp>
tercio@1 27 PVPScanOnFrameMouseUp (self, button)
tercio@0 28 </OnMouseUp>
tercio@0 29
tercio@0 30 <OnLoad>
tercio@0 31 self:SetBackdropColor (0, 0, 0, 1)
tercio@0 32 </OnLoad>
tercio@0 33 </Scripts>
tercio@0 34
tercio@0 35 <Layers>
tercio@0 36 <Layer level="OVERLAY">
tercio@0 37 <FontString name="$parentText" text="PVPScan Anchor" inherits="GameFontHighlightSmall" justifyH="CENTER" parentKey="text">
tercio@0 38 <FontHeight val="20"/>
tercio@0 39 <Anchors>
tercio@0 40 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER"/>
tercio@0 41 </Anchors>
tercio@0 42 </FontString>
tercio@0 43 </Layer>
tercio@0 44 </Layers>
tercio@0 45 </Frame>
tercio@0 46
tercio@0 47 <Button name="PVPScanSpotBarTemplate" frameStrata="HIGH" hidden="true" parent="PVPScanFrame" movable="false" virtual="true" inherits="SecureActionButtonTemplate">
tercio@0 48
tercio@0 49 <Attributes>
tercio@0 50 <Attribute name="type" type="string" value="macro"/>
tercio@0 51 </Attributes>
tercio@0 52
tercio@0 53 <Size>
Tercio@6 54 <AbsDimension x="32" y="32"/>
tercio@0 55 </Size>
tercio@0 56
tercio@0 57 <Layers>
tercio@0 58 <Layer level="ARTWORK">
tercio@0 59 <Texture name="$parentClassTexture" parentKey="classtexture" file="Interface\PaperDollInfoFrame\UI-Character-Skills-Bar">
tercio@0 60 <Size>
tercio@0 61 <AbsDimension x="150" y="20"/>
tercio@0 62 </Size>
tercio@0 63 <Anchors>
tercio@0 64 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT"/>
tercio@0 65 </Anchors>
tercio@0 66 </Texture>
tercio@0 67 </Layer>
tercio@0 68
tercio@0 69 <Layer level="OVERLAY">
tercio@0 70 <Texture name="$parentClassIcon" parentKey="classicon" file="Interface\InventoryItems\WoWUnknownItem01">
tercio@0 71 <Size>
tercio@0 72 <AbsDimension x="20" y="20"/>
tercio@0 73 </Size>
tercio@0 74 <Anchors>
tercio@0 75 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT"/>
tercio@0 76 </Anchors>
tercio@0 77 </Texture>
tercio@0 78
tercio@0 79 <FontString name="$parentName" text="Enemy Name" inherits="GameFontHighlightSmall" justifyH="LEFT" parentKey="name">
tercio@0 80 <FontHeight val="10"/>
tercio@0 81 <Anchors>
tercio@0 82 <Anchor point="LEFT" relativeTo="$parentClassIcon" relativePoint="RIGHT" x="2" y="0"/>
tercio@0 83 </Anchors>
tercio@0 84 </FontString>
tercio@0 85 </Layer>
tercio@0 86 </Layers>
tercio@2 87
tercio@2 88 <Scripts>
tercio@2 89 <OnMouseUp>
tercio@2 90 PVPScanSpotBarClick (self);
tercio@2 91 </OnMouseUp>
tercio@2 92 </Scripts>
tercio@2 93 </Button>
tercio@2 94
tercio@2 95 <Button name="PVPScanSpotBarInCombatTemplate" frameStrata="HIGH" hidden="true" parent="PVPScanFrame" movable="false" virtual="true">
tercio@2 96 <Size>
tercio@2 97 <AbsDimension x="150" y="20"/>
tercio@2 98 </Size>
tercio@2 99
tercio@2 100 <Layers>
tercio@2 101 <Layer level="BACKGROUND">
tercio@2 102 <Texture name="$parentClassTexture" parentKey="classtexture" file="Interface\PaperDollInfoFrame\UI-Character-Skills-Bar">
tercio@2 103 <Size>
tercio@2 104 <AbsDimension x="150" y="20"/>
tercio@2 105 </Size>
tercio@2 106 <Anchors>
tercio@2 107 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT"/>
tercio@2 108 </Anchors>
tercio@2 109 </Texture>
tercio@2 110 </Layer>
tercio@2 111
tercio@2 112 <Layer level="BORDER">
tercio@2 113 <Texture name="$parentClassIcon" parentKey="classicon" file="Interface\InventoryItems\WoWUnknownItem01">
tercio@2 114 <Size>
tercio@2 115 <AbsDimension x="20" y="20"/>
tercio@2 116 </Size>
tercio@2 117 <Anchors>
tercio@2 118 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT"/>
tercio@2 119 </Anchors>
tercio@2 120 </Texture>
tercio@2 121
tercio@2 122 <FontString name="$parentName" text="Enemy Name" inherits="GameFontHighlightSmall" justifyH="LEFT" parentKey="name">
tercio@2 123 <FontHeight val="10"/>
tercio@2 124 <Anchors>
tercio@2 125 <Anchor point="LEFT" relativeTo="$parentClassIcon" relativePoint="RIGHT" x="2" y="0"/>
tercio@2 126 </Anchors>
tercio@2 127 </FontString>
tercio@2 128 </Layer>
tercio@2 129
tercio@2 130 <Layer level="ARTWORK">
tercio@2 131 <Texture name="$parentInCombatShadow" parentKey="inCombatShadow" file="Interface\Tooltips\UI-Tooltip-Background">
tercio@2 132 <Size>
tercio@2 133 <AbsDimension x="150" y="20"/>
tercio@2 134 </Size>
tercio@2 135 <Anchors>
tercio@2 136 <Anchor point="TOPLEFT" relativeTo="$parentClassTexture" relativePoint="TOPLEFT"/>
tercio@2 137 <Anchor point="BOTTOMRIGHT" relativeTo="$parentClassTexture" relativePoint="BOTTOMRIGHT"/>
tercio@2 138 </Anchors>
tercio@2 139 </Texture>
tercio@2 140 </Layer>
tercio@2 141 <Layer level="OVERLAY">
tercio@2 142 <Texture name="$parentInCombatIcon" parentKey="inCombat" file="Interface\CHARACTERFRAME\Disconnect-Icon">
tercio@2 143 <Size>
tercio@2 144 <AbsDimension x="20" y="20"/>
tercio@2 145 </Size>
tercio@2 146 <TexCoords left="0.18" right="0.82" top="0.18" bottom="0.82"/>
tercio@2 147 <Anchors>
tercio@2 148 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT"/>
tercio@2 149 </Anchors>
tercio@2 150 </Texture>
tercio@2 151 </Layer>
tercio@2 152 </Layers>
tercio@2 153
tercio@2 154 <Scripts>
tercio@2 155 <OnLoad>
tercio@2 156 self.inCombatShadow:SetVertexColor (0, 0, 0, .6);
tercio@2 157 </OnLoad>
tercio@2 158 </Scripts>
tercio@2 159
tercio@0 160 </Button>
tercio@0 161 </Ui>