annotate PVPScan.xml @ 10:2218520e3e64

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