<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"> <Script file="PlayerFrame.lua"/> <!--IMPORTANT If you change anything in this file, be sure to change the equivalent data in PlayerFrame.lua, function PlayerFrame_ToPlayerArt IMPORTANT--> <Button name="PlayerFrame" frameStrata="BACKGROUND" toplevel="true" movable="true" inherits="SecureUnitButtonTemplate" parent="UIParent"> <Size> <AbsDimension x="232" y="100"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="-19" y="-4"/> </Offset> </Anchor> </Anchors> <HitRectInsets> <AbsInset left="6" right="0" top="4" bottom="9"/> </HitRectInsets> <Layers> <Layer level="BACKGROUND"> <Texture name="PlayerFrameFlash" file="Interface\TargetingFrame\UI-TargetingFrame-Flash" hidden="true"> <Size> <AbsDimension x="242" y="93"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="13" y="0"/> </Offset> </Anchor> </Anchors> <TexCoords left="0.9453125" right="0" top="0" bottom="0.181640625"/> </Texture> <Texture name="PlayerFrameBackground"> <Size> <AbsDimension x="119" y="41"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="106" y="-22"/> </Offset> </Anchor> </Anchors> <Color r="0" g="0" b="0" a="0.5"/> </Texture> </Layer> <Layer level="ARTWORK"> <Texture name="PlayerPortrait"> <Size> <AbsDimension x="64" y="64"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="42" y="-12"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> <Frames> <Frame setAllPoints="true"> <Frames> <Frame setAllPoints="true"> <Layers> <Layer level="BACKGROUND"> <Texture name="PlayerFrameTexture" file="Interface\TargetingFrame\UI-TargetingFrame"> <TexCoords left="1.0" right="0.09375" top="0" bottom="0.78125"/> </Texture> <Texture name="PlayerFrameVehicleTexture" file="Interface\Vehicles\UI-Vehicle-Frame" hidden="true"> <Size> <AbsDimension x="240" y="120"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="20" y="0"/> </Offset> </Anchor> </Anchors> </Texture> <FontString name="PlayerName" inherits="GameFontNormalSmall"> <Size> <AbsDimension x="100" y="12"/> </Size> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="50" y="19"/> </Offset> </Anchor> </Anchors> </FontString> <FontString name="PlayerLevelText" inherits="GameFontNormalSmall"> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="-63" y="-16"/> </Offset> </Anchor> </Anchors> </FontString> <FontString name="PlayerPVPTimerText" inherits="GameFontNormalSmall"> <Anchors> <Anchor point="CENTER" relativePoint="TOPLEFT"> <Offset> <AbsDimension x="38" y="-8"/> </Offset> </Anchor> </Anchors> </FontString> <FontString name="PlayerFrameHealthBarText" inherits="TextStatusBarText"> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="50" y="3"/> </Offset> </Anchor> </Anchors> </FontString> <FontString name="PlayerFrameManaBarText" inherits="TextStatusBarText"> <Anchors> <Anchor point="CENTER"> <Offset> <AbsDimension x="50" y="-8"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> <Layer level="ARTWORK"> <Texture name="PlayerStatusTexture" file="Interface\CharacterFrame\UI-Player-Status" alphaMode="ADD" hidden="true"> <Size> <AbsDimension x="190" y="66"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="35" y="-8"/> </Offset> </Anchor> </Anchors> <TexCoords left="0" right="0.74609375" top="0" bottom="0.53125"/> </Texture> <Texture name="PlayerAttackBackground" file="Interface\TargetingFrame\UI-TargetingFrame-AttackBackground" hidden="true"> <Size> <AbsDimension x="32" y="32"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="37" y="-50"/> </Offset> </Anchor> </Anchors> </Texture> <Texture name="PlayerPVPIcon" hidden="true"> <Size> <AbsDimension x="64" y="64"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="18" y="-20"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> <Layer level="OVERLAY"> <FontString name="PlayerHitIndicator" hidden="true" inherits="NumberFontNormalHuge"> <Anchors> <Anchor point="CENTER" relativePoint="TOPLEFT"> <Offset> <AbsDimension x="73" y="-42"/> </Offset> </Anchor> </Anchors> </FontString> <Texture name="PlayerLeaderIcon" file="Interface\GroupFrame\UI-Group-LeaderIcon" hidden="true"> <Size> <AbsDimension x="16" y="16"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="40" y="-12"/> </Offset> </Anchor> </Anchors> </Texture> <Texture name="PlayerGuideIcon" file="Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES" hidden="true"> <Size> <AbsDimension x="19" y="19"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="40" y="-12"/> </Offset> </Anchor> </Anchors> <TexCoords left="0" right="0.296875" top="0.015625" bottom="0.3125"/> </Texture> <Texture name="PlayerMasterIcon" file="Interface\GroupFrame\UI-Group-MasterLooter" hidden="true"> <Size> <AbsDimension x="16" y="16"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="80" y="-10"/> </Offset> </Anchor> </Anchors> </Texture> <Texture name="PlayerRestIcon" file="Interface\CharacterFrame\UI-StateIcon" hidden="false"> <Size> <AbsDimension x="31" y="33"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="37" y="-49"/> </Offset> </Anchor> </Anchors> <TexCoords left="0" right="0.5" top="0" bottom="0.421875"/> </Texture> <Texture name="PlayerAttackIcon" file="Interface\CharacterFrame\UI-StateIcon" hidden="false"> <Size> <AbsDimension x="32" y="32"/> </Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="PlayerRestIcon"> <Offset> <AbsDimension x="1" y="1"/> </Offset> </Anchor> </Anchors> <TexCoords left="0.5" right="1.0" top="0" bottom="0.5"/> </Texture> <Texture name="$parentRoleIcon" file="Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES" hidden="true"> <Size> <AbsDimension x="19" y="19"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="95" y="-15"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> </Layers> </Frame> <Button name="PlayerSpeakerFrame" inherits="VoiceChatSpeakerTemplate" hidden="true"> <Size> <AbsDimension x="20" y="20"/> </Size> <Anchors> <Anchor point="LEFT" relativePoint="RIGHT"> <Offset> <AbsDimension x="0" y="-3"/> </Offset> </Anchor> </Anchors> <Scripts> <OnUpdate function="VoiceChat_OnUpdate"/> </Scripts> </Button> <Frame name="PlayerFrameReadyCheck" inherits="ReadyCheckStatusTemplate" hidden="true"> <Size> <AbsDimension x="40" y="40"/> </Size> <Anchors> <Anchor point="CENTER" relativeTo="PlayerPortrait" relativePoint="CENTER"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnLoad function="RaiseFrameLevelByTwo"/> </Scripts> </Frame> <Frame name="PlayerPVPIconHitArea" enableMouse="true" hidden="true"> <Size> <AbsDimension x="39" y="37"/> </Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="PlayerPVPIcon"/> </Anchors> <Scripts> <OnEnter> GameTooltip_AddNewbieTip(self, self.tooltipTitle, 1.0, 1.0, 1.0, self.tooltipText, 1); </OnEnter> <OnLeave function="GameTooltip_Hide"/> </Scripts> </Frame> <Frame name="PlayerStatusGlow" hidden="true"> <Size> <AbsDimension x="32" y="32"/> </Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="PlayerRestIcon"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="OVERLAY"> <Texture name="PlayerRestGlow" file="Interface\CharacterFrame\UI-StateIcon" hidden="false" alphaMode="ADD"> <Size> <AbsDimension x="32" y="32"/> </Size> <Anchors> <Anchor point="TOPLEFT"/> </Anchors> <TexCoords left="0" right="0.5" top="0.5" bottom="1.0"/> </Texture> <Texture name="PlayerAttackGlow" file="Interface\CharacterFrame\UI-StateIcon" hidden="false" alphaMode="ADD"> <Size> <AbsDimension x="32" y="32"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="1" y="1"/> </Offset> </Anchor> </Anchors> <Color r="1.0" g="0" b="0"/> <TexCoords left="0.5" right="1.0" top="0.5" bottom="1.0"/> </Texture> </Layer> </Layers> <Scripts> <OnLoad> self:SetFrameLevel(self:GetFrameLevel() + 3); </OnLoad> </Scripts> </Frame> <Frame name="PlayerPlayTime" enableMouse="true" hidden="true"> <Size> <AbsDimension x="32" y="32"/> </Size> <Anchors> <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> <Offset> <AbsDimension x="-4" y="-17"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="BACKGROUND"> <Texture name="PlayerPlayTimeIcon" file="Interface\CharacterFrame\UI-Player-PlayTimeTired" setAllPoints="true"/> </Layer> </Layers> <Scripts> <OnEnter> GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1); </OnEnter> <OnLeave function="GameTooltip_Hide"/> </Scripts> </Frame> <Button parentKey="MultiGroupFrame" hidden="true"> <Size x="20" y="20"/> <Anchors> <Anchor point="TOPLEFT" x="52" y="-1"/> </Anchors> <Layers> <Layer level="ARTWORK" textureSubLevel="0"> <Texture parentKey="HomePartyIcon" file="Interface\FriendsFrame\UI-Toast-FriendOnlineIcon"> <Size x="26" y="26"/> <Anchors> <Anchor point="CENTER" x="4" y="4"/> </Anchors> <Color r="0" g="0" b="1"/> </Texture> </Layer> <Layer level="ARTWORK" textureSubLevel="1"> <Texture parentKey="InstancePartyIcon" file="Interface\FriendsFrame\UI-Toast-FriendOnlineIcon"> <Size x="26" y="26"/> <Anchors> <Anchor point="CENTER"/> </Anchors> <Color r="1" g="0" b="0"/> </Texture> </Layer> </Layers> <Scripts> <OnLoad function="PlayerFrameMultiGroupFrame_OnLoad"/> <OnEvent function="PlayerFrameMultiGroupFrame_OnEvent"/> <OnEnter function="PlayerFrameMultiGroupframe_OnEnter"/> <OnLeave> GameTooltip:Hide(); </OnLeave> <OnClick> self:GetParent():GetParent():Click(button); </OnClick> </Scripts> </Button> </Frames> </Frame> <StatusBar name="PlayerFrameHealthBar" inherits="TextStatusBar"> <Size> <AbsDimension x="119" y="12"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="106" y="-41"/> </Offset> </Anchor> </Anchors> <Scripts> <OnLoad> TextStatusBar_Initialize(self); self.textLockable = 1; self.cvar = "playerStatusText"; self.cvarLabel = "STATUS_TEXT_PLAYER"; </OnLoad> <OnMouseUp> self:GetParent():Click(button); </OnMouseUp> <OnValueChanged function="UnitFrameHealthBar_OnValueChanged"/> <OnSizeChanged> UnitFrameHealPredictionBars_UpdateSize(self:GetParent()); </OnSizeChanged> </Scripts> <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/> </StatusBar> <StatusBar name="PlayerFrameMyHealPredictionBar" inherits="MyHealPredictionBarTemplate"/> <StatusBar name="PlayerFrameOtherHealPredictionBar" inherits="OtherHealPredictionBarTemplate"/> <StatusBar name="PlayerFrameManaBar" inherits="TextStatusBar"> <Size> <AbsDimension x="119" y="12"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="106" y="-52"/> </Offset> </Anchor> </Anchors> <Scripts> <OnLoad> TextStatusBar_Initialize(self); self.textLockable = 1; self.cvar = "playerStatusText"; self.cvarLabel = "STATUS_TEXT_PLAYER"; </OnLoad> <OnMouseUp> self:GetParent():Click(button); </OnMouseUp> </Scripts> <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/> <BarColor r="0" g="0" b="1.0"/> </StatusBar> <Frame name="PlayerFrameDropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true"> <Size> <AbsDimension x="10" y="10"/> </Size> <Anchors> <Anchor point="TOP"> <Offset> <AbsDimension x="-10" y="-50"/> </Offset> </Anchor> </Anchors> <Scripts> <OnLoad function="PlayerFrameDropDown_OnLoad"/> </Scripts> </Frame> <Frame name="PlayerFrameGroupIndicator" hidden="true"> <Size> <AbsDimension x="10" y="16"/> </Size> <Anchors> <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT"> <Offset> <AbsDimension x="97" y="-20"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="BACKGROUND"> <Texture name="PlayerFrameGroupIndicatorLeft" file="Interface\CharacterFrame\UI-CharacterFrame-GroupIndicator"> <Size> <AbsDimension x="24" y="16"/> </Size> <Anchors> <Anchor point="TOPLEFT"/> </Anchors> <TexCoords left="0" right="0.1875" top="0" bottom="1"/> </Texture> <Texture name="PlayerFrameGroupIndicatorRight" file="Interface\CharacterFrame\UI-CharacterFrame-GroupIndicator"> <Size> <AbsDimension x="24" y="16"/> </Size> <Anchors> <Anchor point="TOPRIGHT"/> </Anchors> <TexCoords left="0.53125" right="0.71875" top="0" bottom="1"/> </Texture> <Texture name="PlayerFrameGroupIndicatorMiddle" file="Interface\CharacterFrame\UI-CharacterFrame-GroupIndicator"> <Size> <AbsDimension x="0" y="16"/> </Size> <Anchors> <Anchor point="LEFT" relativeTo="PlayerFrameGroupIndicatorLeft" relativePoint="RIGHT"/> <Anchor point="RIGHT" relativeTo="PlayerFrameGroupIndicatorRight" relativePoint="LEFT"/> </Anchors> <TexCoords left="0.1875" right="0.53125" top="0" bottom="1"/> </Texture> <FontString name="PlayerFrameGroupIndicatorText" inherits="GameFontHighlightSmall"> <Anchors> <Anchor point="LEFT"> <Offset> <AbsDimension x="20" y="-2"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Scripts> <OnLoad> PlayerFrameGroupIndicatorLeft:SetAlpha(0.3); PlayerFrameGroupIndicatorRight:SetAlpha(0.3); PlayerFrameGroupIndicatorMiddle:SetAlpha(0.3); PlayerFrameGroupIndicatorText:SetAlpha(0.7); </OnLoad> </Scripts> </Frame> </Frames> <Scripts> <OnLoad function="PlayerFrame_OnLoad"/> <OnEvent function="PlayerFrame_OnEvent"/> <OnUpdate function="PlayerFrame_OnUpdate"/> <OnEnter function="UnitFrame_OnEnter"/> <OnLeave function="UnitFrame_OnLeave"/> <OnReceiveDrag function="PlayerFrame_OnReceiveDrag"/> <OnDragStart function="PlayerFrame_OnDragStart"/> <OnDragStop function="PlayerFrame_OnDragStop"/> </Scripts> </Button> </Ui>