WoWInterface SVN PVPScan

[/] [trunk/] [PVPScan/] [PVPScan.xml] - Rev 3

Compare with Previous | Blame | View Log

<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
        <Script file="PVPScan.lua"/>
        
        <Frame name="PVPScanFrame" frameStrata="HIGH" hidden="false" parent="UIParent" movable="true">
                <Size>
                        <AbsDimension x="150" y="60"/>
                </Size>
                
                <Anchors>
                        <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="0"/>
                </Anchors>
                
                <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>

Compare with Previous | Blame