<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<Script file="PorEnhance.lua"/>
	<FontString name="PorEnhanceTextFont" inherits="GameFontNormalSmall" virtual="true">
		<Color r="1.0" g="1.0" b="1.0"/>
	</FontString>
	<Frame name="TargetFrameClassFrame" parent="TargetFrame" hidden="true">
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentIcon">
					<Size>
						<AbsDimension x="20" y="20" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TargetFrame" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="125" y="-7" />
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture file="Interface\Minimap\MiniMap-TrackingBorder">
					<Size>
						<AbsDimension x="52" y="52" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TargetFrame" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="120" y="-2" />
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self:SetFrameLevel(self:GetFrameLevel() + 2);
			</OnLoad>
			<OnEvent>
				TargetFrameClassFrame_OnEvent(self, event, ...);
			</OnEvent>
		</Scripts>
	</Frame>
	<Frame name="PartyClassWidgetTemplate" frameStrata="MEDIUM" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="20" y="20" />
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentIcon">
					<Size>
						<AbsDimension x="12" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="4" y="-4" />
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture file="Interface\AddOns\PorEnhance\TrackingBorder">
					<Size>
						<AbsDimension x="20" y="20" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="0" />
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.0" right="0.609375" top="0" bottom="0.609375"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				PartyMemberFrameClassFrame_OnLoad(self);
			</OnLoad>
			<OnEvent>
				PartyMemberFrameClassFrame_OnEvent(self, event, ...);
			</OnEvent>
		</Scripts>
	</Frame>
	<Frame name="PartyClassWidget1" inherits="PartyClassWidgetTemplate" parent="PartyMemberFrame1" id="1">
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="PartyMemberFrame1" relativePoint="TOPLEFT">
				<Offset>
					<AbsDimension x="30" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="PartyClassWidget2" inherits="PartyClassWidgetTemplate" parent="PartyMemberFrame2" id="2">
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="PartyMemberFrame2" relativePoint="TOPLEFT">
				<Offset>
					<AbsDimension x="30" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="PartyClassWidget3" inherits="PartyClassWidgetTemplate" parent="PartyMemberFrame3" id="3">
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="PartyMemberFrame3" relativePoint="TOPLEFT">
				<Offset>
					<AbsDimension x="30" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="PartyClassWidget4" inherits="PartyClassWidgetTemplate" parent="PartyMemberFrame4" id="4">
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="PartyMemberFrame4" relativePoint="TOPLEFT">
				<Offset>
					<AbsDimension x="30" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>

	<Frame name="PorEnhanceFrame" frameStrata="LOW" toplevel="true" movable="true" hidden="true" parent="PlayerFrame">
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="PlayerFrame" relativePoint="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Size>
			<AbsDimension x="185" y="64"/>
		</Size>
		<Frames>
			<Frame name="PlayerPorTextPane">
				<Size>
					<AbsDimension x="91" y="48"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="221" y="-20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture file="Interface\AddOns\PorEnhance\portrait">
							<Size>
								<AbsDimension x="91" y="48"/>
							</Size>
							<TexCoords left="0.0" right="0.35546875" top="0" bottom="0.75"/>
						</Texture>
						<FontString name="$parentHealthText" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" text="8888/8888">
							<Color r="0.0" g="1.0" b="0.0"/>
							<FontHeight>
								<AbsValue val="10"/>
							</FontHeight>
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="1" y="12"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentHealthPercentText" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" text="100%">
							<Color r="0.0" g="1.0" b="0.0"/>
							<FontHeight>
								<AbsValue val="10"/>
							</FontHeight>
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="1" y="-3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentManaText" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" text="8888/8888">
							<Color r="1.0" g="1.0" b="1.0"/>
							<FontHeight>
								<AbsValue val="10"/>
							</FontHeight>
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="1" y="-14"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<StatusBar name="PlayerPorExpBar" inherits="TextStatusBar">
				<Size>
					<AbsDimension x="118" y="6"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="103" y="-69"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BORDER">
						<Texture name="PlayerPorExhaustionLevelFillBar">
							<Size>
								<AbsDimension x="0" y="6"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="PlayerPorExpBar">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Color r="1.0" g="1.0" b="1.0" a="1.0"/>
						</Texture>
					</Layer>
					<Layer level="BACKGROUND">
						<Texture>
							<Color r="0.0" g="0.0" b="0.0" a="0.5"/>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Frame name="$parentArtFrame">
						<Size>
							<AbsDimension x="120" y="12"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="PlayerPorExpBar">
								<Offset>
									<AbsDimension x="-1" y="3"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture file="Interface\AddOns\PorEnhance\portrait">
									<Size>
										<AbsDimension x="120" y="12"/>
									</Size>
									<TexCoords left="0.0" right="0.546875" top="0.765625" bottom="0.953125"/>
								</Texture>
							</Layer>
							<Layer level="OVERLAY">
								<FontString name="PlayerPorExpBarText" inherits="GameFontNormal" outline="THIN">
									<Color r="1.0" g="1.0" b="1.0"/>
									<FontHeight>
										<AbsValue val="13"/>
									</FontHeight>
									<Anchors>
										<Anchor point="CENTER">
											<Offset>
												<AbsDimension x="1" y="1"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad>
						TextStatusBar_Initialize(self);
						self.textLockable = 1;
						self:GetFrameLevel(self:GetParent():GetFrameLevel()+1);
					</OnLoad>
					<OnEvent>
						PlayerPorExpBar_Update();
						TextStatusBar_OnEvent(self, event, ...);
					</OnEvent>
					<OnEnter>
						TextStatusBar_UpdateTextString(self);
						ShowTextStatusBarText(self);
						PlayerPorExhaustionTick.timer = 1;
						GameTooltip_AddNewbieTip(self, XPBAR_LABEL, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_XPBAR, 1);
						GameTooltip.canAddRestStateLine = 1;

						PlayerPorExpBar_OnEnter(self);
					</OnEnter>
					<OnLeave>
						HideTextStatusBarText(self);
						GameTooltip:Hide();
						PlayerPorExhaustionTick.timer = nil;

						PlayerPorExpBar_OnLeave(self);
					</OnLeave>
				</Scripts>
				<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
				<BarColor r="0.0" g="0.58" b="0.434"/>
			</StatusBar>
		</Frames>
		<Scripts>
			<OnLoad>
				PorEnhance_OnLoad(self);
			</OnLoad>
			<OnEvent>
				PorEnhance_OnEvent(self, event, ...);
			</OnEvent>
			<OnUpdate>
				PorEnhance_OnUpdate(self, elapsed);
			</OnUpdate>
		</Scripts>
	</Frame>
	<Frame name="PartyPorEnhanceFrameTemplate" frameStrata="BACKGROUND" hidden="true" toplevel="true" virtual="true">
		<Size>
			<AbsDimension x="86" y="24"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture file="Interface\AddOns\PorEnhance\portrait">
					<Size>
						<AbsDimension x="86" y="24"/>
					</Size>
					<TexCoords left="0.42578125" right="0.76171875" top="0.0" bottom="0.375"/>
				</Texture>
				<FontString name="$parentHealthText"  inherits="MasterFont" font="Fonts\FRIZQT__.TTF" text="8888/8888">
					<Color r="0.0" g="1.0" b="0.0"/>
					<FontHeight>
						<AbsValue val="10"/>
					</FontHeight>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="1" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	<!--	<Frames><Button name="$parentTargetFrame" inherits="SecureUnitButtonTemplate">
				<Size>
					<AbsDimension x= "100" y ="15"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT">
						<Offset>
							<AbsDimension x="150" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
					
					<FontString name="$parentTargetText"  inherits="GameFontHighlightSmallOutline" >
						<FontHeight>
							<AbsValue val="8"/>
						</FontHeight>
						<Anchors>
							<Anchor point="CENTER"/>
						</Anchors>
					</FontString>
					</Layer>
				</Layers>
				<Scripts>
		

				</Scripts>
			</Button>
			
			<StatusBar name="$parentCastingBar" toplevel="true" hidden="true" inherits="CastingBarFrameTemplate">
				<Size>
					<AbsDimension x="195" y="13"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM">
						<Offset>
							<AbsDimension x="30" y="44"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						
					</OnLoad>
				</Scripts>
			</StatusBar>
		</Frames>-->
		<Scripts>
			<OnLoad>
				PartyPorEnhanceFrame_OnLoad(self);
			</OnLoad>
			<OnEvent>
				PartyPorEnhanceFrame_OnEvent(self, event, ...);
			</OnEvent>
		</Scripts>
	</Frame>
	<Button name="PartyPorFrame1" inherits="PartyPorEnhanceFrameTemplate" parent="PartyMemberFrame1" id="1"/>
	<Button name="PartyPorFrame2" inherits="PartyPorEnhanceFrameTemplate" parent="PartyMemberFrame2" id="2"/>
	<Button name="PartyPorFrame3" inherits="PartyPorEnhanceFrameTemplate" parent="PartyMemberFrame3" id="3"/>
	<Button name="PartyPorFrame4" inherits="PartyPorEnhanceFrameTemplate" parent="PartyMemberFrame4" id="4"/>
	<Button name="PlayerPorExhaustionTick" parent="PorEnhanceFrame" hidden="false" frameStrata="DIALOG">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="RIGHT">
				<Offset>
					<AbsDimension x="0" y="5"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnLoad>
				PlayerPorExhaustionTick_OnLoad(self);
			</OnLoad>
			<OnEvent>
				PlayerPorExhaustionTick_Update(self, event, ...);	
			</OnEvent>
			<OnEnter>
				ExhaustionToolTipText();
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<NormalTexture name="PlayerPorExhaustionTickNormal" file="Interface\MainMenuBar\UI-ExhaustionTickNormal"/>
		<HighlightTexture name="PlayerPorExhaustionTickHighlight" file="Interface\MainMenuBar\UI-ExhaustionTickHighlight" alphaMode="ADD"/>
	</Button>
	<Frame name="PorEnhance3DPortraitFrameTemplate" virtual="true" parent="UIParent" hidden="true" frameStrata="BACKGROUND">
		<Size>
			<AbsDimension x="58" y="58"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER">
				<AbsDimension x="20" y="-20"/>
			</Anchor>
		</Anchors>
		<Frames>
			<Frame>
				<Size>
					<AbsDimension x="58" y="58"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<AbsDimension x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Frames>
					<Frame name="$parentBorder">
						<Anchors>
							<Anchor point="TOPLEFT">
								<AbsDimension x="0" y="0"/>
							</Anchor>
						</Anchors>
						<Size>
							<AbsDimension x="58" y="58"/>
						</Size>
						<Layers>
							<Layer level="ARTWORK">
								<Texture file="Interface\AddOns\PorEnhance\3dborder">
									<Size>
										<AbsDimension x="58" y="58"/>
									</Size>
									<TexCoords left="0.0" right="0.90625" top="0.0" bottom="0.90625"/>
								</Texture>
							</Layer>
						</Layers>
					</Frame>
				</Frames>
			</Frame>
			<PlayerModel name="$parentModel" hidden="false">
				<Size>
					<AbsDimension x="49" y="49"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture>
							<Size>
								<AbsDimension x="49" y="49"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT"/>
							</Anchors>
							<Color r="0" g="0" b="0" a="1.0"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						PorEnhance3DPortrait_OnLoad(self);
					</OnLoad>
					<OnEvent>
						PorEnhance3DPortrait_OnEvent(self, event, ...);
					</OnEvent>
					<OnUpdate>
						PorEnhance3DPortrait_OnUpdate(self, elapsed);
					</OnUpdate> 
				</Scripts>
			</PlayerModel>
		</Frames>
	</Frame>
	<Frame name="PorEnhance3DPortraitFramePlayer" parent="UIParent" inherits="PorEnhance3DPortraitFrameTemplate"/>
	<Frame name="PorEnhance3DPortraitFrameTarget" parent="UIParent" inherits="PorEnhance3DPortraitFrameTemplate"/>
</Ui>
