<!--
//////////////////////////////////////////////
//
//		TipBuddy.xml
//
//////////////////////////////////////////////
-->

<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
	<Script file="TipBuddy_Initialize.lua"/>
	<Script file="TipBuddy_GlobalFunctions.lua"/>
	<Script file="TipBuddy_OptionsFrame.lua"/>
	<Script file="TipBuddy_Colors.lua"/>
	<Script file="TipBuddy_Variables.lua"/>
	<Script file="localization.lua"/>
	<Script file="TipBuddy.lua"/>

<!-- DEFAULT -->
<!-- /script GameTooltip:SetBackdrop({bgFile="Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background",edgeFile="Interface\\Tooltips\\UI-Tooltip-Border",tile=true,tileSize=32,edgeSize=16,insets={ left = 5, right = 5, top = 5, bottom = 5 }}); -->

<!-- INFO PANEL -->
<!-- /script GameTooltip:SetBackdrop({bgFile="Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background",edgeFile="Interface\\AddOns\\TipBuddy\\gfx\\InfoPanel-Border",tile=true,tileSize=32,edgeSize=14,insets={ left = 4, right = 4, top = 4, bottom = 4 }}); -->

<!-- TEXT PANEL -->
<!-- /script GameTooltip:SetBackdrop({bgFile="Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background",edgeFile="Interface\\Glues\\Common\\TextPanel-Border",tile=true,tileSize=32,edgeSize=22,insets={ left = 5, right = 5, top = 5, bottom = 5 }}); -->

<!-- ROUNDED -->
<!-- /script GameTooltip:SetBackdrop({bgFile = "Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background", edgeFile = "Interface\\Minimap\\TooltipBackdrop", tile = true, tileSize = 16, edgeSize = 16, insets = { left = 5, right = 5, top = 5, bottom = 5 }}); -->

<!-- DIALOGUE BOX -->
<!-- /script GameTooltip:SetBackdrop({bgFile="Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background",edgeFile="Interface\\DialogFrame\\UI-DialogBox-Border", tile = true, tileSize = 16, edgeSize = 20, insets = { left = 5, right = 5, top = 5, bottom = 5 }}); -->

<!-- GLOW -->
<!-- /script GameTooltip:SetBackdrop({bgFile = "Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background", edgeFile = "Interface\\AddOns\\TipBuddy\\gfx\\Glow-Border", edgeSize = 22, insets = { left = 5, right = 5, top = 5, bottom = 5 }}); -->

	<!-- "Interface\\Glues\\Common\TextPanel-Border" -->
<!-- 	"Interface\\AddOns\\TipBuddy\\gfx\\Glow-Border"
	"Interface\\AddOns\\TipBuddy\\gfx\\Parchment-BG"
	"Interface\\AddOns\\TipBuddy\\gfx\\Parchment-Border"
	"Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background" -->
	<FontString name="TBGameFontNormal" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
		<FontHeight>
			<AbsValue val="10"/>
		</FontHeight>
		<Color r="1.0" g="0.82" b="0"/>
	</FontString>
	<FontString name="TBGameFontHighlight" inherits="TBGameFontNormal" virtual="true">
		<Color r="1.0" g="1.0" b="1.0"/>
	</FontString>
	<FontString name="TBGameFontDisable" inherits="TBGameFontNormal" virtual="true">
		<Color r="0.5" g="0.5" b="0.5"/>
	</FontString>

	<FontString name="TBGameFontNormalSmall" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
		<FontHeight>
			<AbsValue val="7"/>
		</FontHeight>
		<Color r="1.0" g="0.82" b="0"/>
	</FontString>
	<FontString name="TBGameFontHighlightSmall" inherits="TBGameFontNormalSmall" virtual="true">
		<Color r="1.0" g="1.0" b="1.0"/>
	</FontString>

	<FontString name="ToolTipBuddyText" inherits="GameTooltipText" justifyH="LEFT" virtual="true">
		<FontHeight>
			<AbsValue val="11"/>
		</FontHeight>
		<Color r="1.0" g="1.0" b="1.0"/>
<!--  		<Shadow>
			<Offset>
				<AbsDimension x="0.75" y="-0.75"/>
			</Offset>
			<Color r=".4" g="0.4" b="0.4"/>
		</Shadow> -->
	</FontString>

	<FontString name="ToolTipBuddyTextOutline" font="Fonts\FRIZQT__.TTF" justifyH="LEFT" outline="NORMAL" virtual="true">
		<FontHeight>
			<AbsValue val="15"/>
		</FontHeight>
		<Color r="1.0" g="1.0" b="1.0"/>
	</FontString>

	<FontString name="TB_HealthText" inherits="NumberFontNormal" outline="NORMAL" justifyH="LEFT" virtual="true">
		<FontHeight>
			<AbsValue val="14"/>
		</FontHeight>
		<Color r="0.9" g="0.9" b="0.9"/>
<!--   		<Shadow>
			<Offset>
				<AbsDimension x="1" y="-1"/>
			</Offset>
			<Color r="0.1" g="0.1" b="0.1"/>
		</Shadow> -->
	</FontString>
	<FontString name="TB_ManaText" inherits="NumberFontNormal" outline="NORMAL" justifyH="LEFT" virtual="true">
		<FontHeight>
			<AbsValue val="12"/>
		</FontHeight>
		<Color r="0.9" g="0.9" b="0.9"/>
<!--   		<Shadow>
			<Offset>
				<AbsDimension x="1" y="-1"/>
			</Offset>
			<Color r="0.1" g="0.1" b="0.1"/>
		</Shadow> -->
	</FontString>

	<FontString name="TB_TTGameFontNormalSmall" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
		<FontHeight>
			<AbsValue val="9"/>
		</FontHeight>
		<Color r="1.0" g="0.82" b="0"/>
	</FontString>
	<FontString name="TB_TTGameFontNormalSmallHighlight" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
		<FontHeight>
			<AbsValue val="9"/>
		</FontHeight>
		<Color r="1.0" g="1.0" b="1.0"/>
	</FontString>

	<Frame name="TipBuddy_OptionsFrame_UnitsTemplate" inherits="OptionFrameBoxTemplate" virtual="true">
		<Size>
			<AbsDimension x="220" y="380"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER">
				<Offset>
					<AbsDimension x="40" y="-16"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnLoad>
				this:SetBackdropBorderColor(0.4, 0.4, 0.4);
				this:SetBackdropColor(0.15, 0.15, 0.15);
			</OnLoad>
		</Scripts>
	</Frame>

	<Frame name="TipBuddy_OptionsFrame_UnitsOptions_Template" inherits="OptionFrameBoxTemplate" frameStrata="DIALOG" toplevel="true" virtual="true">
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="22"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="16"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		<Size>
			<AbsDimension x="180" y="274"/>
		</Size>
		<Anchors>
			<Anchor point="TOP" relativeTo="$parent">
				<Offset>
					<AbsDimension x="0" y="-22"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>

	<!-- CHECKBOX TEMPLATE -->
	<CheckButton name="TipBuddy_CheckButtonTemplate" inherits="OptionsCheckButtonTemplate" virtual="true">
		<HitRectInsets>
			<AbsInset left="0" right="-50" top="0" bottom="0"/>
		</HitRectInsets>
		<OnClick>
			if ( this:GetChecked() ) then
				PlaySound("igMainMenuOptionCheckBoxOff");
			else
				PlaySound("igMainMenuOptionCheckBoxOn");
			end
		</OnClick>
	</CheckButton>

	<!-- TINY CHECKBOX TEMPLATE -->
 	<CheckButton name="TB_TinyPopupCheckButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="18" y="18"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="TB_TTGameFontNormalSmall" text="x">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
		<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
		<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
		<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
		<Scripts>
			<OnClick>
				if ( this:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOn");
				else
					PlaySound("igMainMenuOptionCheckBoxOff");
				end
			</OnClick>
			<OnEnter>
				if ( this.tooltipText ) then
					GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
					GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
				end
				if ( this.tooltipRequirement ) then
					GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</CheckButton>

	<!-- TINY CHECKBOX TEMPLATE -->
<!-- 	<CheckButton name="TB_TinyPopupCheckButtonTemplate2" virtual="true">
		<Size>
			<AbsDimension x="12" y="12"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="TB_TTGameFontNormalSmall" text="x">
					<Anchors>
						<Anchor point="BOTTOM" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
		<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
		<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
		<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
		<Scripts>
			<OnClick>
				if ( this:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOn");
				else
					PlaySound("igMainMenuOptionCheckBoxOff");
				end
			</OnClick>
			<OnEnter>
				if ( this.tooltipText ) then
					GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
					GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
				end
				if ( this.tooltipRequirement ) then
					GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</CheckButton>
 -->
	<!-- POPUP PLUS BUTTON TEMPLATE -->
	<Frame name="TipBuddy_PlusButton_Template" enableMouse="true" hidden="false" virtual="true">
		<Size>
			<AbsDimension x="12" y="12"/>
		</Size>

		<Anchors>
			<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentArt" file="Interface\Buttons\UI-GuildButton-PublicNote-Up">
					<Size>
						<AbsDimension x="12" y="12"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
	</Frame>

	<!-- TARGET'S TARGET CHECKBOX BUTTON -->
	<CheckButton name="TipBuddy_TargetTargetCheckbox_Template" inherits="TipBuddy_CheckButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="24" y="24"/>
		</Size>
		<Frames>
			<Frame name="$parent_Plus" inherits="TipBuddy_PlusButton_Template">

				<Frames>
					<Frame name="$parentPopup" enableMouse="true" hidden="true">
						<Size>
							<AbsDimension x="120" y="122"/>
						</Size>

						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>

						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>
						<HitRectInsets>
							<AbsInset left="-2" right="-2" top="-2" bottom="-2"/>
						</HitRectInsets>
						
						<Frames>
							<CheckButton name="$parent_1" inherits="TB_TinyPopupCheckButtonTemplate">		
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
										<Offset>
											<AbsDimension x="7" y="-7"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnShow>
										local text = getglobal(this:GetName().."Text");
										text:SetTextColor(0.3, 0.9, 0.3);
									</OnShow>
									<OnEnter>
										TipBuddyPopup_StopCounting(this:GetParent());
									</OnEnter>								
								</Scripts>
							</CheckButton>
							<CheckButton name="$parent_2" inherits="TB_TinyPopupCheckButtonTemplate">		
								<Anchors>
									<Anchor point="TOP" relativeTo="$parent_1" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-3"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnShow>
										local text = getglobal(this:GetName().."Text");
										text:SetTextColor(0.9, 0.2, 0.2);
									</OnShow>
									<OnEnter>
										TipBuddyPopup_StopCounting(this:GetParent());
									</OnEnter>
								</Scripts>
							</CheckButton>
							<CheckButton name="$parent_3" inherits="TB_TinyPopupCheckButtonTemplate">		
								<Anchors>
									<Anchor point="TOP" relativeTo="$parent_2" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-3"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnShow>
										local text = getglobal(this:GetName().."Text");
										text:SetTextColor(0.4, 0.4, 1);
									</OnShow>
									<OnEnter>
										TipBuddyPopup_StopCounting(this:GetParent());
									</OnEnter>								
								</Scripts>
							</CheckButton>
							<CheckButton name="$parent_4" inherits="TB_TinyPopupCheckButtonTemplate">		
								<Anchors>
									<Anchor point="TOP" relativeTo="$parent_3" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-3"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnShow>
										local text = getglobal(this:GetName().."Text");
										text:SetTextColor(1, 0.3, 0.8);
									</OnShow>
									<OnEnter>
										TipBuddyPopup_StopCounting(this:GetParent());
									</OnEnter>
								</Scripts>
							</CheckButton>
							<CheckButton name="$parent_5" inherits="TB_TinyPopupCheckButtonTemplate">		
								<Anchors>
									<Anchor point="TOP" relativeTo="$parent_4" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-3"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnShow>
										local text = getglobal(this:GetName().."Text");
										text:SetTextColor(1, 1, 1);
									</OnShow>
									<OnEnter>
										TipBuddyPopup_StopCounting(this:GetParent());
									</OnEnter>
								</Scripts>
							</CheckButton>
						</Frames>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.8, 0.8, 0.8);
								this:SetBackdropColor(0.35, 0.35, 0.5, 1);
							</OnLoad>
							<OnEnter>
								TipBuddyPopup_StopCounting(this);
							</OnEnter>
							<OnLeave>
								TipBuddyPopup_StartCounting(this);
							</OnLeave>
							<OnHide>
								--CSG_OptionsBarSml:Show();
								--PlaySoundFile("Sound\\Interface\\uSpellIconDrop.wav");
								PlaySound("igMainMenuOptionCheckBoxOn");
							</OnHide>
							<OnUpdate>
								UIDropDownMenu_OnUpdate(arg1);
							</OnUpdate>
						</Scripts>
					</Frame>
				</Frames>
				<Scripts>
					<OnEnter>
						if ( this:GetParent():GetChecked() ) then
							local popframe = getglobal(this:GetParent():GetName().."_PlusPopup");
							popframe:Show();
							PlaySoundFile("Sound\\Interface\\iDeselectTarget.wav");
						end
					</OnEnter>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnShow>
				if ( this:GetChecked() ) then
					getglobal(this:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
				else
					getglobal(this:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
				end
			</OnShow>
			<OnClick>
				if ( this:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOff");
					getglobal(this:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
				else
					PlaySound("igMainMenuOptionCheckBoxOn");
					getglobal(this:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
				end
			</OnClick>
		</Scripts>
	</CheckButton>

	<!-- HEALTH/MANA TEXT CHECKBOX BUTTON -->
	<CheckButton name="TipBuddy_HealthbarCheckbox_Template" inherits="TipBuddy_CheckButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="24" y="24"/>
		</Size>
		<Frames>
			<Frame name="$parent_Plus" inherits="TipBuddy_PlusButton_Template">

				<Frames>
					<Frame name="$parentPopup" enableMouse="true" hidden="true">
						<Size>
							<AbsDimension x="120" y="58"/>
						</Size>

						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="-1" y="-1"/>
								</Offset>
							</Anchor>
						</Anchors>

						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>
						<HitRectInsets>
							<AbsInset left="-2" right="-2" top="-2" bottom="-2"/>
						</HitRectInsets>
						
						<Frames>
							<CheckButton name="$parent_1" inherits="TB_TinyPopupCheckButtonTemplate">		
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
										<Offset>
											<AbsDimension x="7" y="-7"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnShow>
										local text = getglobal(this:GetName().."Text");
										text:SetText("Show Health Text");
										text:SetTextColor(1, 1, 1);
									</OnShow>
									<OnEnter>
										TipBuddyPopup_StopCounting(this:GetParent());
									</OnEnter>								
								</Scripts>
							</CheckButton>
							<CheckButton name="$parent_2" inherits="TB_TinyPopupCheckButtonTemplate">		
								<Anchors>
									<Anchor point="TOP" relativeTo="$parent_1" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-3"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnShow>
										local text = getglobal(this:GetName().."Text");
										text:SetText("Show Mana Text");
										text:SetTextColor(1, 1, 1);
									</OnShow>
									<OnEnter>
										TipBuddyPopup_StopCounting(this:GetParent());
									</OnEnter>
								</Scripts>
							</CheckButton>
						</Frames>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.8, 0.8, 0.8);
								this:SetBackdropColor(0.35, 0.35, 0.5);
							</OnLoad>
							<OnEnter>
								TipBuddyPopup_StopCounting(this);
							</OnEnter>
							<OnLeave>
								TipBuddyPopup_StartCounting(this);
							</OnLeave>
							<OnHide>
								--CSG_OptionsBarSml:Show();
								--PlaySoundFile("Sound\\Interface\\SheathMetal.wav");
								PlaySound("igMainMenuOptionCheckBoxOn");
							</OnHide>
							<OnUpdate>
								UIDropDownMenu_OnUpdate(arg1);
							</OnUpdate>
						</Scripts>
					</Frame>
				</Frames>
				<Scripts>
					<OnEnter>
						if ( this:GetParent():GetChecked() ) then
							local popframe = getglobal(this:GetParent():GetName().."_PlusPopup");
							popframe:Show();
							PlaySoundFile("Sound\\Interface\\iDeselectTarget.wav");
						end
					</OnEnter>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnShow>
				if ( this:GetChecked() ) then
					getglobal(this:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
				else
					getglobal(this:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
				end
			</OnShow>
			<OnClick>
				if ( this:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOff");
					getglobal(this:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
				else
					PlaySound("igMainMenuOptionCheckBoxOn");
					getglobal(this:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
				end
			</OnClick>
		</Scripts>
	</CheckButton>

	<!-- PVP TEXT CHECKBOX BUTTON -->
	<CheckButton name="TipBuddy_PVPCheckbox_Template" inherits="TipBuddy_CheckButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="24" y="24"/>
		</Size>
		<Frames>
			<Frame name="$parent_Plus" inherits="TipBuddy_PlusButton_Template">

				<Frames>
					<Frame name="$parentPopup" enableMouse="true" hidden="true">
						<Size>
							<AbsDimension x="120" y="30"/>
						</Size>

						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="-1" y="-1"/>
								</Offset>
							</Anchor>
						</Anchors>

						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="5" right="5" top="5" bottom="5"/>
							</BackgroundInsets>
						</Backdrop>
						<HitRectInsets>
							<AbsInset left="-2" right="-2" top="-2" bottom="-2"/>
						</HitRectInsets>
						
						<Frames>
							<CheckButton name="$parent_1" inherits="TB_TinyPopupCheckButtonTemplate">		
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
										<Offset>
											<AbsDimension x="7" y="-7"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnShow>
										local text = getglobal(this:GetName().."Text");
										text:SetText("Show Text Only");
										text:SetTextColor(1, 1, 1);
									</OnShow>
									<OnEnter>
										TipBuddyPopup_StopCounting(this:GetParent());
									</OnEnter>								
								</Scripts>
							</CheckButton>
						</Frames>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.8, 0.8, 0.8);
								this:SetBackdropColor(0.35, 0.35, 0.5);
							</OnLoad>
							<OnEnter>
								TipBuddyPopup_StopCounting(this);
							</OnEnter>
							<OnLeave>
								TipBuddyPopup_StartCounting(this);
							</OnLeave>
							<OnHide>
								--PlaySoundFile("Sound\\Interface\\SheathMetal.wav");
								PlaySound("igMainMenuOptionCheckBoxOn");
							</OnHide>
							<OnUpdate>
								UIDropDownMenu_OnUpdate(arg1);
							</OnUpdate>
						</Scripts>
					</Frame>
				</Frames>
				<Scripts>
					<OnEnter>
						if ( this:GetParent():GetChecked() ) then
							local popframe = getglobal(this:GetParent():GetName().."_PlusPopup");
							popframe:Show();
							PlaySoundFile("Sound\\Interface\\iDeselectTarget.wav");
						end
					</OnEnter>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnShow>
				if ( this:GetChecked() ) then
					getglobal(this:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
				else
					getglobal(this:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
				end
			</OnShow>
			<OnClick>
				if ( this:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOff");
					getglobal(this:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
				else
					PlaySound("igMainMenuOptionCheckBoxOn");
					getglobal(this:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
				end
			</OnClick>
		</Scripts>
	</CheckButton>

	<!-- TARGET'S TARGET CHECKBOX BUTTON -->
<!-- 	<CheckButton name="TipBuddy_TargetTargetCheckbox_Template" inherits="TipBuddy_CheckButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="24" y="24"/>
		</Size>
		<Frames>
TipBuddy_TargetTargetPopup_Template
		</Frames>
	</CheckButton> -->

	<!-- CHECKBOX WITH OPTIONAL TEXT BUTTON -->
	<CheckButton name="TipBuddy_CheckboxText_Template" inherits="TipBuddy_CheckButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="24" y="24"/>
		</Size>
		<Frames>
			<CheckButton name="$parentTiny1" inherits="TB_TinyPopupCheckButtonTemplate">		
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="-2" y="4"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						local text = getglobal(this:GetName().."Text");
						text:SetText("T");
						text:SetTextHeight(7);
					</OnLoad>
				</Scripts>
			</CheckButton>
		</Frames>
	</CheckButton>

	<!-- TEMPLATE FOR SLIDERS THAT HAVE A TEXT UPDATE SHOWING THE CURRENT STATE -->
	<Slider name="TipBuddy_SliderWithText_Template" inherits="OptionsSliderTemplate" virtual="true">
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentTextUpdate" inherits="GameFontNormalSmall" text="XXX">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="2" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnUpdate>
				if ( this.updatetext ) then
					if ( (this:GetName() == ( "TipBuddy_OptionsFrame_Slider2" )) 
					or (this:GetName() == ( "TipBuddy_OptionsFrame_Slider3" )) ) then
						this.updatetext:SetText( format("%.1f", ( this:GetValue() ) ) );
					elseif (this:GetName() == ( "TipBuddy_OptionsFrame_Slider6" )) then
						this.updatetext:SetText( format("%.2f", ( this:GetValue() ) ) );
					else
						this.updatetext:SetText( this:GetValue() );
					end
					return;
				end
				this.updatetext = getglobal( this:GetName().."TextUpdate");
			</OnUpdate>	
		</Scripts>
	</Slider>
	<Slider name="TipBuddy_SliderWithText_Template2" orientation="HORIZONTAL" virtual="true" enableMouse="true">
		<Size>
			<AbsDimension x="128" y="17"/>
		</Size>
		<HitRectInsets>
			<AbsInset left="0" right="0" top="-10" bottom="-10"/>
		</HitRectInsets>
		<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
			<EdgeSize>
				<AbsValue val="8"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="8"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="3" right="3" top="6" bottom="6"/>
			</BackgroundInsets>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="TBGameFontNormalSmall">
					<Anchors>
						<Anchor point="BOTTOM" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentLow" inherits="TBGameFontHighlightSmall" text="LOW">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="2" y="3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentHigh" inherits="TBGameFontHighlightSmall" text="HIGH">
					<Anchors>
						<Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="-2" y="3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentTextUpdate" inherits="TBGameFontNormal" text="XXX">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="0.5"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnEnter>
				if ( this.tooltipText ) then
					GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
					GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
				end
				if ( this.tooltipRequirement ) then
					GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnUpdate>
				if ( this.updatetext ) then
					--this.updatetext:SetText( format("%.1f", ( this:GetValue() ) ) );
					this.updatetext:SetText( this:GetValue() );
					return;
				end
				this.updatetext = getglobal( this:GetName().."TextUpdate");
			</OnUpdate>	
		</Scripts>
		<ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
		</ThumbTexture>
	</Slider>

<!-- BUFF TEMPLATE -->
	<Frame name="TipBuddy_Buff_Template" virtual="true">
		<Size>
			<AbsDimension x="14" y="14"/>
		</Size>
		<Scripts>
			<OnEvent>
				TipBuddy_OnEvent();
			</OnEvent>
		</Scripts>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentIcon" file="Interface\Icons\INV_MISC_Book_02">
					<Size>
						<AbsDimension x="14" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
	</Frame>


	<!-- COLOR PICKER BUTTON TEMPLATE -->
	<Button name="TipBuddy_ColorPickerButton_Template" frameStrata="HIGH" virtual="true">
		<Size>
			<AbsDimension x="22" y="22"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentSwatchBg">
					<Size>
						<AbsDimension x="22" y="22"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Color r="1" g="1" b="1"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontNormalSmall" text="XXX">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="2" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnShow>
				getglobal(this:GetName().."SwatchBg"):SetVertexColor(0.5, 0.5, 0.5);
			</OnShow>
			<OnClick>
				TipBuddy_Background_ColorPick( this );
				TB_AddMessage("clicking button: "..this:GetName());
			</OnClick>
			<OnEnter>
				getglobal(this:GetName().."SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
				if ( this.tooltipText ) then
					GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
					GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
				end
				if ( this.tooltipRequirement ) then
					GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				<!-- local type = TipBuddy_GetColorPicker_GetType( this:GetName() ); -->
				getglobal(this:GetName().."SwatchBg"):SetVertexColor(0.5, 0.5, 0.5);
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch">
			<Size>
				<AbsDimension x="24" y="24"/>
			</Size>
			<Anchors>
				<Anchor point="CENTER">
					<Offset>
						<AbsDimension x="0" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</NormalTexture>
	</Button>

	<!-- COLOR PICKER BUTTON TEMPLATE SMALL-->
	<Button name="TipBuddy_ColorPickerButtonSml_Template" virtual="true">
		<Size>
			<AbsDimension x="18" y="18"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentSwatchBg">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Color r="1" g="1" b="1"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontNormalSmall" text="XXX">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="2" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				getglobal(this:GetName().."SwatchBg"):SetVertexColor(0.5, 0.5, 0.5);
			</OnLoad>
			<OnClick>
				TipBuddy_Text_ColorPick( this );
			</OnClick>
			<OnEnter>
				getglobal(this:GetName().."SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
				if ( this.tooltipText ) then
					GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
					GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
				end
				if ( this.tooltipRequirement ) then
					GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				<!-- local type = TipBuddy_GetColorPicker_GetType( this:GetName() ); -->
				getglobal(this:GetName().."SwatchBg"):SetVertexColor(0.5, 0.5, 0.5);
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch">
			<Size>
				<AbsDimension x="18" y="18"/>
			</Size>
			<Anchors>
				<Anchor point="CENTER">
					<Offset>
						<AbsDimension x="0" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</NormalTexture>
	</Button>

	<!-- EDITBOX TEMPLATE 1 (first line)-->
	<EditBox name="TipBuddy_EditBox_Template1" letters="128" enableMouse="true" maxLines="1" virtual="true">
		<Size>
			<AbsDimension x="146" y="20"/>
		</Size>
		<Frames>
			<Frame frameStrata="MEDIUM">
				<Size>
					<AbsDimension x="160" y="129"/>
				</Size>
				<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<EdgeSize>
						<AbsValue val="16"/>
					</EdgeSize>
					<TileSize>
						<AbsValue val="16"/>
					</TileSize>
					<BackgroundInsets>
						<AbsInset left="4" right="4" top="4" bottom="4"/>
					</BackgroundInsets>
				</Backdrop>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="-6" y="2" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:SetBackdropColor(0.2, 0.2, 0.2);
					</OnLoad>
				</Scripts>
			</Frame>
		</Frames>
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent">
				<Offset>
					<AbsDimension x="24" y="-36" />
				</Offset>
			</Anchor>
			<Anchor point="BOTTOMRIGHT" relativePoint="TOPLEFT" relativeTo="$parent">
				<Offset>
					<AbsDimension x="170" y="-58" />
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnClick>
				this:SetFocus();
			</OnClick>
			<OnEnterPressed>
				getglobal("TB_EditBox_0"..this:GetID().."_2"):SetFocus();
				this:ClearFocus();
			</OnEnterPressed>
			<OnEscapePressed>
				this:ClearFocus();
			</OnEscapePressed>
			<OnEditFocusLost>
				this:HighlightText(0, 0);
			</OnEditFocusLost>
<!-- 			<OnEditFocusGained>
				this:HighlightText();
			</OnEditFocusGained> -->
		</Scripts>
		<FontString inherits="GameTooltipText">
			<FontHeight>
				<AbsValue val="14"/>
			</FontHeight>
			<Color r="1.0" g="1.0" b="1.0"/>
		</FontString>
	</EditBox>

	<!-- EDITBOX TEMPLATE 2 -->
	<EditBox name="TipBuddy_EditBox_Template2" letters="1024" multiLine="true" enableMouse="true" historyLines="7" virtual="true">
		<Size>
			<AbsDimension x="146" y="100"/>
		</Size>
<!-- 		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="16"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="2" right="2" top="2" bottom="2"/>
			</BackgroundInsets>
		</Backdrop> -->
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent">
				<Offset>
					<AbsDimension x="24" y="-54" />
				</Offset>
			</Anchor>
			<Anchor point="BOTTOMRIGHT" relativePoint="TOPLEFT" relativeTo="$parent">
				<Offset>
					<AbsDimension x="170" y="-166" />
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnClick>
				this:SetFocus();
			</OnClick>
			<OnEscapePressed>
				this:ClearFocus();
			</OnEscapePressed>
			<OnEditFocusLost>
				this:HighlightText(0, 0);
			</OnEditFocusLost>
<!-- 			<OnEditFocusGained>
				this:HighlightText();
			</OnEditFocusGained> -->
		</Scripts>
		<FontString inherits="GameTooltipText">
			<FontHeight>
				<AbsValue val="11"/>
			</FontHeight>
			<Color r="1.0" g="1.0" b="1.0"/>
		</FontString>
	</EditBox>

	<!-- TOOLTIP STYLE DROPDOWN TEMPLATE -->
	<Frame name="TB_TipStyleDropDown_Template" inherits="UIDropDownMenuTemplate" enableMouse="true" virtual="true">
		<Anchors>
			<Anchor point="TOP" relativePoint="TOP">
				<Offset>
					<AbsDimension x="0" y="-8"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentLabel" inherits="GameFontNormalSmall" text="">
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="18" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>

	<!-- BACKDROP COLOR TEMPLATE -->
	<Frame name="TB_BDColorDropDown_Template" inherits="UIDropDownMenuTemplate" enableMouse="true" virtual="true">
		<Size>
			<AbsDimension x="20" y="22"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
				<Offset>
					<AbsDimension x="-8" y="-82"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentLabel" inherits="GameFontNormalSmall" text="Backdrop Color">
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="18" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>

	<!-- BACKDROPBORDER COLOR TEMPLATE -->
	<Frame name="TB_BDBColorDropDown_Template" inherits="UIDropDownMenuTemplate" enableMouse="true" virtual="true">
		<Size>
			<AbsDimension x="20" y="22"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
				<Offset>
					<AbsDimension x="-8" y="-42"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentLabel" inherits="GameFontNormalSmall" text="Border Color">
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="18" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>

	<!-- END TEMPLATES -->


	<!-- START TIPBUDDY -->

<!-- /script DEFAULT_CHAT_FRAME:AddMessage(TipBuddy_Header_Frame:GetID()); -->
	<!-- TIPBUDDY ANCHOR HEADER -->
	<Button name="TipBuddy_Header_Frame" frameStrata="HIGH" movable="true" hidden="true" parent="UIParent" enableMouse="true">
		<Size>
			<AbsDimension x="128" y="20"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="UIParent" relativePoint="BOTTOMLEFT">
				<Offset>
					<AbsDimension x="202" y="400"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="8"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="8"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="2" right="2" top="2" bottom="2"/>
			</BackgroundInsets>
		</Backdrop>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="TipBuddy_Header_Text" inherits="ToolTipBuddyText" text="TipBuddyAnchor" justifyH="LEFT">
					<Size>
						<AbsDimension x="128" y="24" />
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="4" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentText" inherits="ToolTipBuddyText" hidden="true">
					<Size>
						<AbsDimension x="128" y="24" />
					</Size>
					<Anchors>
						<Anchor point="LEFT"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="TipBuddy_Header_CloseButton">
				<Size>
					<AbsDimension x="24" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:SetAlpha( 0.6 );
					</OnLoad>
					<OnClick>
						HideUIPanel(TipBuddy_Header_Frame);
					</OnClick>
					<OnEnter>
						TipBuddy_Header_Frame:SetAlpha( 0.9 );
						GameTooltip_SetDefaultAnchor(GameTooltip, this);
						GameTooltip:SetText(TB_TIPBUDDYANCHORCLOSE_TOOLTIP, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						TipBuddy_Header_Frame:SetAlpha( 0.1 );
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
				<PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
				<HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
			</Button>
			<Frame name="TipBuddy_Header_FrameDropDown" inherits="UIDropDownMenuTemplate" hidden="true" enableMouse="true">
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						TipBuddy_AnchorDropDown_OnLoad();
					</OnLoad>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonDown", "LeftButtonUp", "RightButtonUp");
				this:RegisterForDrag("LeftButton");
				this:SetBackdropBorderColor(0.1, 0.1, 0.1);
				this:SetBackdropColor(0.09, 0.09, 0.19);
				this:SetAlpha( 0.1 );
			</OnLoad>
			<OnEnter>
				TipBuddy.anchor, TipBuddy.fanchor, TipBuddy.offset = TipBuddy_GetFrameAnchorPos();
				if (TipBuddy_SavedVars["general"].anchored == 1) then
					TipBuddy_Parent_Frame:SetPoint(TipBuddy.anchor, "TipBuddy_Header_Frame", TipBuddy.fanchor, 0, 0);
				end
				this:SetAlpha( 0.9 );
				GameTooltip_SetDefaultAnchor(GameTooltip, TipBuddy_Parent_Frame);
				GameTooltip:SetText(TB_TIPBUDDYANCHOR_TOOLTIP, nil, nil, nil, nil, 1);
				TipBuddy_SavedVars["general"].framepos_L = TipBuddy_Header_Frame:GetLeft();
				TipBuddy_SavedVars["general"].framepos_T = TipBuddy_Header_Frame:GetTop();
			</OnEnter>
			<OnLeave>
				this:SetAlpha( 0.1 );
				GameTooltip:Hide();
			</OnLeave>
			<OnClick>
				PlaySound("UChatScrollButton");
				GameTooltip:Hide();
			</OnClick>
			<OnMouseDown>
				TipBuddy_OnMouseDown(arg1);
			</OnMouseDown>
			<OnMouseUp>
				TipBuddy_OnMouseUp(arg1);
			</OnMouseUp>
			<OnShow>
				this:SetAlpha(0.75);
				UIFrameFlash(TipBuddy_Header_FlashFrame, 0.3, 2.5, 2.9, nil, 0.1, 0);
				TipBuddy_SavedVars["general"].anchor_vis = 1;
			</OnShow>
			<OnHide>
				TipBuddy_SavedVars["general"].anchor_vis = 0;
			</OnHide>
		</Scripts>
	</Button>
	<!-- TIPBUDDY ANCHOR FLASH -->
	<Frame name="TipBuddy_Header_FlashFrame" frameStrata="HIGH" hidden="true" parent="TipBuddy_Header_Frame">
		<Size>
			<AbsDimension x="128" y="128"/>
		</Size>
		<Anchors>
			<Anchor point="LEFT" relativeTo="TipBuddy_Header_Frame" relativePoint="LEFT">
				<Offset>
					<AbsDimension x="8" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentShine" file="Interface\Cooldown\star4" alphaMode="ADD">
					<Size>
						<AbsDimension x="120" y="128"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parent" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="8" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				TipBuddy_Header_FlashFrameShine:SetVertexColor( 0.5, 0.7, 1, 1);
			</OnLoad>
		</Scripts>
	</Frame>
	
	<!-- Parent Tooltip Frame -->
	<Frame name="TipBuddy_Parent_Frame" frameStrata="TOOLTIP" parent="UIParent">
		<Size>
			<AbsDimension x="2" y="2"/>
		</Size>

		<Scripts>
			<OnLoad>
				this:RegisterEvent("UPDATE_MOUSEOVER_UNIT");
				TipBuddy_OnLoad();
			</OnLoad>
			<OnEvent>
				TipBuddy_OnEvent();
			</OnEvent>
			<OnUpdate>
				if (TipBuddy_Main_Frame:IsVisible() or GameTooltip:IsVisible()) then
					TipBuddy_ParentTip_OnUpdate();
				end
			</OnUpdate>
		</Scripts>
	</Frame>

	<Frame name="TipBuddy_Main_Frame" frameStrata="TOOLTIP" hidden="true" parent="TipBuddy_Parent_Frame">
		<Size>
			<AbsDimension x="62" y="32"/>
		</Size>

		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<!-- bgFile="Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background" -->
			<!-- bgFile="Interface\Tooltips\UI-Tooltip-Background" -->
			<EdgeSize>
				<AbsValue val="8"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="16"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="2" right="2" top="2" bottom="2"/>
			</BackgroundInsets>
		</Backdrop>
		<Scripts>
			<OnHide>
				TipBuddy_SetFrame_BackgroundColor();
			</OnHide>
			<OnUpdate>
				TipBuddy_MainTip_OnUpdate();
			</OnUpdate>
		</Scripts>
		<Frames>
		<!-- HEALTH / MANA -->
<!-- 			<Frame name="TipBuddy_TargetHealthManaFrame" parent="TipBuddy_Main_Frame">
				<Size>
					<AbsDimension x="64" y="4"/>
				</Size>

				<Anchors>
					<Anchor point="CENTER" relativeTo="TipBuddy_Main_Frame" relativePoint="CENTER">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						TipBuddy_OnLoad("mouseover");
					</OnLoad>
				</Scripts>
				<Frames> -->
					<StatusBar name="TipBuddy_TargetFrameHealthBar" enableMouse="false" inherits="TextStatusBar" parent="TipBuddy_Main_Frame">
						<Size>
							<AbsDimension x="64" y="4"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="TipBuddy_Main_Frame" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-3"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								this.unit = "mouseover";
								this:RegisterEvent("UNIT_HEALTH");
								this:RegisterEvent("UNIT_MAXHEALTH");
								TextStatusBar_Initialize();
								this.textLockable = 1;
							</OnLoad>
							<OnEvent>
								UnitFrameHealthBar_Update(this, arg1);
							</OnEvent>
							<OnValueChanged>
								UnitFrameHealthBar_OnValueChanged(arg1);
							</OnValueChanged>
						</Scripts>
						<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
					</StatusBar>

					<StatusBar name="TipBuddy_TargetFrameManaBar" inherits="TextStatusBar" parent="TipBuddy_Main_Frame">
						<Size>
							<AbsDimension x="64" y="4"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="TipBuddy_TargetFrameHealthBar" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-3.5"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								this.unit = "mouseover";
								this:RegisterEvent("UNIT_MANA");
								this:RegisterEvent("UNIT_RAGE");
								this:RegisterEvent("UNIT_FOCUS");
								this:RegisterEvent("UNIT_ENERGY");
								this:RegisterEvent("UNIT_HAPPINESS");
								this:RegisterEvent("UNIT_MAXMANA");
								this:RegisterEvent("UNIT_MAXRAGE");
								this:RegisterEvent("UNIT_MAXFOCUS");
								this:RegisterEvent("UNIT_MAXENERGY");
								this:RegisterEvent("UNIT_MAXHAPPINESS");
								this:RegisterEvent("UNIT_DISPLAYPOWER");
								TextStatusBar_Initialize();
								this.textLockable = 1;
							</OnLoad>
							<OnEvent>
								UnitFrameManaBar_Update(this, arg1);
							</OnEvent>
						</Scripts>
						<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
						<BarColor r="0" g="0" b="1.0"/>
					</StatusBar>
					<Frame name="TipBuddy_HealthText" frameStrata="TOOLTIP" parent="TipBuddy_TargetFrameHealthBar">
						<Size>
							<AbsDimension x="38" y="38"/>
						</Size>
						<Anchors>
							<Anchor point="CENTER" relativeTo="TipBuddy_TargetFrameHealthBar" relativePoint="CENTER">
								<Offset>
									<AbsDimension x="0" y="0.5"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="$parentText" inherits="TB_HealthText" justifyH="CENTER">
									<Size>
										<AbsDimension x="256" y="12" />
									</Size>
									<Anchors>
										<Anchor point="CENTER">
											<Offset>
												<AbsDimension x="0" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</Frame>
					<Frame name="TipBuddy_ManaText" frameStrata="TOOLTIP" parent="TipBuddy_TargetFrameManaBar">
						<Size>
							<AbsDimension x="38" y="38"/>
						</Size>
						<Anchors>
							<Anchor point="CENTER" relativeTo="TipBuddy_TargetFrameManaBar" relativePoint="CENTER">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<FontString name="$parentText" inherits="TB_ManaText" justifyH="CENTER">
									<Size>
										<AbsDimension x="256" y="8" />
									</Size>
									<Anchors>
										<Anchor point="CENTER">
											<Offset>
												<AbsDimension x="0" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</Frame>				
<!-- 				</Frames>
			</Frame> -->
		</Frames>
		<Layers>

<!-- NAME -->
			<Layer level="OVERLAY">
				<FontString name="TipBuddy_TargetName_Text" inherits="ToolTipBuddyText" text="Unknown" justifyH="LEFT">
					<Size>
						<AbsDimension x="400" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Main_Frame" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="1" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_TargetName_TextR" inherits="ToolTipBuddyText" text="" justifyH="RIGHT">
					<Size>
						<AbsDimension x="400" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_Main_Frame" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="-2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>

<!-- GUILD -->

			<Layer level="OVERLAY">
				<FontString name="TipBuddy_TargetGuild_Text" inherits="ToolTipBuddyText" text="None" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="9" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_TargetName_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_TargetGuild_TextR" inherits="ToolTipBuddyText" text="" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="9" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_TargetName_TextR" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>

<!-- CITY FACTION -->
			<Layer level="OVERLAY">
				<FontString name="TipBuddy_TargetCityFac_Text" inherits="ToolTipBuddyText" text="--" justifyH="LEFT">
					<Size>
						<AbsDimension x="128" y="11" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_TargetFrameManaBar" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="1" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_TargetCityFac_TextR" inherits="ToolTipBuddyText" text="" justifyH="RIGHT">
					<Size>
						<AbsDimension x="128" y="11" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_TargetFrameManaBar" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
<!-- LEVEL -->

			<Layer level="OVERLAY">
				<FontString name="TipBuddy_TargetLevel_Text" inherits="ToolTipBuddyText" text="--" justifyH="LEFT">
					<Size>
						<AbsDimension x="64" y="11" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_TargetCityFac_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
<!-- CLASS -->

			<Layer level="OVERLAY">
				<FontString name="TipBuddy_TargetClass_Text" inherits="ToolTipBuddyText" text="--" justifyH="RIGHT">
					<Size>
						<AbsDimension x="128" y="11" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_TargetCityFac_TextR" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
<!-- XTRAs -->

			<Layer level="OVERLAY">
				<FontString name="TipBuddy_Xtra1_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_TargetLevel_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra2_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra1_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra3_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra2_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra4_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra3_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra5_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra4_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra6_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra5_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra7_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra6_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra8_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra7_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra9_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra8_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra10_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra9_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra11_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra10_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra12_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra11_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra13_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra12_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra14_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra13_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra15_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra14_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra16_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra15_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra17_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra16_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra18_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra17_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra19_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra18_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_Xtra20_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra19_Text" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="TipBuddy_XtraR1_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_TargetClass_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR2_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR1_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR3_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR2_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR4_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR3_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR5_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR4_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR6_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR5_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR7_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR6_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR8_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR7_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR9_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR8_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR10_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR9_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR11_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR10_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR12_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR11_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR13_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR12_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR14_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR13_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR15_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR14_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR16_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR15_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR17_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR16_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR18_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR17_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR19_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR18_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="TipBuddy_XtraR20_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR19_Text" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

			</Layer>
		</Layers>
	</Frame>

<!-- RANK ICONS -->
	<Frame name="TipBuddy_RankFrame" frameStrata="TOOLTIP" hidden="true" parent="TipBuddy_Main_Frame">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT" relativeTo="TipBuddy_Main_Frame" relativePoint="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="-2"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentIcon">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
				</Texture>
			</Layer>
		</Layers>
	</Frame>

	<Frame name="TipBuddy_RankFrameGTT" frameStrata="TOOLTIP" hidden="true" parent="GameTooltip">
		<Size>
			<AbsDimension x="18" y="18"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT" relativeTo="GameTooltip" relativePoint="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="-5"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentIcon">
					<Size>
						<AbsDimension x="18" y="18"/>
					</Size>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
		</Scripts>
	</Frame>

<!-- FACTION ICONS -->
	<Frame name="TipBuddy_FactionFrame" frameStrata="TOOLTIP" hidden="true" parent="TipBuddy_Main_Frame">
		<Size>
			<AbsDimension x="30" y="30"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="TipBuddy_Main_Frame" relativePoint="TOPRIGHT">
				<Offset>
					<AbsDimension x="-3" y="-2"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKROUND">
				<Texture name="$parentIcon" file="Interface\\TargetingFrame\\UI-PVP-FFA">
					<Size>
						<AbsDimension x="30" y="30"/>
					</Size>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentText" inherits="ToolTipBuddyTextOutline" justifyH="LEFT" text="PvP">
					<Size>
						<AbsDimension x="64" y="16" />
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="1.5" y="8"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>

	<Frame name="TipBuddy_FactionFrameGTT" frameStrata="TOOLTIP" hidden="true" parent="GameTooltip">
		<Size>
			<AbsDimension x="38" y="38"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="GameTooltip" relativePoint="TOPRIGHT">
				<Offset>
					<AbsDimension x="-3" y="-4"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKROUND">
				<Texture name="$parentIcon" file="Interface\\TargetingFrame\\UI-PVP-FFA">
					<Size>
						<AbsDimension x="38" y="38"/>
					</Size>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentText" inherits="ToolTipBuddyTextOutline" justifyH="LEFT" text="PvP">
					<Size>
						<AbsDimension x="64" y="16" />
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="1.5" y="8"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>

	<Frame name="TipBuddy_HealthTextGTT" frameStrata="TOOLTIP" parent="GameTooltipStatusBar">
		<Size>
			<AbsDimension x="38" y="38"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentText" inherits="TB_HealthText" justifyH="CENTER">
					<Size>
						<AbsDimension x="256" y="12" />
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
<!-- 	<Frame name="TipBuddy_ManaTextGTT" frameStrata="TOOLTIP" parent="GameTooltipStatusBar">
		<Size>
			<AbsDimension x="38" y="38"/>
		</Size>
		<Anchors>
			<Anchor point="TOP" relativeTo="GameTooltipStatusBar" relativePoint="BOTTOM">
				<Offset>
					<AbsDimension x="0" y="14"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentText" inherits="TB_ManaText" justifyH="CENTER">
					<Size>
						<AbsDimension x="256" y="8" />
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame> -->

	<Frame name="TipBuddy_BuffFrame" frameStrata="TOOLTIP" parent="TipBuddy_Main_Frame">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Frames>
			<Frame name="$parentB1" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_Main_Frame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEvent>
<!-- 						TB_AddMessage("Buff OnEvent");
						if ( GameTooltip:IsVisible() ) then
							this:ClearAllPoints();
							this:SetPoint( "BOTTOMLEFT", "GameTooltip", "TOPLEFT", 4, 0);
						elseif ( TipBuddy_Xtra_Frame:IsVisible() ) then
							this:ClearAllPoints();
							this:SetPoint( "BOTTOMLEFT", "TipBuddy_Xtra_Frame", "TOPLEFT", 2, 0);
						elseif ( TipBuddy_Main_Frame:IsVisible() ) then
							this:ClearAllPoints();
							this:SetPoint( "BOTTOMLEFT", "TipBuddy_Main_Frame", "TOPLEFT", 2, 0);
						else
							this:Hide();
						end -->		
					</OnEvent>
				</Scripts>
			</Frame>
			<Frame name="$parentB2" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentB3" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB2" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentB4" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB3" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentB5" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB4" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentB6" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB5" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentB7" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB6" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentB8" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB7" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>

			<Frame name="$parentD1" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="TipBuddy_Main_Frame" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEvent>
<!-- 						if ( GameTooltip:IsVisible() ) then
							this:ClearAllPoints();
							this:SetPoint( "TOPLEFT", "GameTooltipStatusBar", "BOTTOMLEFT", 4, 0);
						elseif ( TipBuddy_Xtra_Frame:IsVisible() ) then
							this:ClearAllPoints();
							this:SetPoint( "TOPLEFT", "TipBuddy_Xtra_Frame", "BOTTOMLEFT", 2, 0);
						elseif ( TipBuddy_Main_Frame:IsVisible() ) then
							this:ClearAllPoints();
							this:SetPoint( "TOPLEFT", "TipBuddy_Main_Frame", "BOTTOMLEFT", 2, 0);
						else
							this:Hide();
						end -->		
					</OnEvent>
				</Scripts>
			</Frame>
			<Frame name="$parentD2" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentD3" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD2" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentD4" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD3" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentD5" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD4" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentD6" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD5" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentD7" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD6" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentD8" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD7" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
				
		</Frames>
	</Frame>


	<Frame name="TipBuddy_BuffFrameGTT" frameStrata="TOOLTIP" parent="GameTooltip">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Frames>
			<Frame name="$parentB1" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeTo="GameTooltip" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="4" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentB2" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentB3" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB2" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentB4" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB3" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentB5" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB4" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentB6" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB5" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentB7" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB6" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentB8" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentB7" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>

			<Frame name="$parentD1" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="GameTooltipStatusBar" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="-2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnShow>
						if ( GameTooltipStatusBar:IsVisible() ) then
							this:ClearAllPoints();
							this:SetPoint( "TOPLEFT", "GameTooltipStatusBar", "BOTTOMLEFT", 0, -1);
						else
							this:ClearAllPoints();
							this:SetPoint( "TOPLEFT", "GameTooltip", "BOTTOMLEFT", 4, -1);
						end
					</OnShow>
				</Scripts>
			</Frame>
			<Frame name="$parentD2" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentD3" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD2" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentD4" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD3" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentD5" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD4" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentD6" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD5" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentD7" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD6" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentD8" inherits="TipBuddy_Buff_Template">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentD7" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
				
		</Frames>
	</Frame>

	<!-- OPTIONS FRAME -->
	<Button name="TipBuddy_OptionsMicroButton" inherits="MainMenuBarMicroButton" frameStrata="DIALOG" parent="GameMenuFrame" toplevel="true">
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="GameMenuFrame" relativePoint="TOPRIGHT">
				<Offset>
					<AbsDimension x="-6" y="14"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnLoad>
				LoadTipBuddyButtonTextures("TipBuddy");
			</OnLoad>
			<OnClick>
				TipBuddy_ToggleOptionsFrame();
			</OnClick>
			<OnEnter>
				GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
				GameTooltip:SetText(TB_MENU_BUTTON_TOOLTIP, nil, nil, nil, nil, 1);			
			</OnEnter>
		</Scripts>
	</Button>


	<Frame name="TipBuddy_OptionsFrame" parent="UIParent" movable="true" enableMouse="true" enableKeyboard="true" hidden="true">
		<Size>
			<AbsDimension x="350" y="490"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" />
		</Anchors>
		<Scripts>
			<OnLoad>
				TipBuddy_OptionsFrame_OnLoad();
			</OnLoad>
			<OnKeyDown>
				if ( arg1 == "ESCAPE" ) then
					TipBuddy_ToggleOptionsFrame();
				elseif ( arg1 == "ENTER") then
					ChatFrame_OpenChat("", chatFrame);
				elseif ( arg1 == "/") then
					ChatFrame_OpenChat("/", chatFrame);
				elseif ( arg1 == strupper(GetBindingKey("SCREENSHOT"))) then
					RunBinding("SCREENSHOT");
				end
			</OnKeyDown>
			<OnShow>
 				if (MYADDONS_ACTIVE_OPTIONSFRAME == this) then
					HideUIPanel(GameMenuFrame);
					HideUIPanel(myAddOnsFrame);
					TipBuddy_OptionsFrame_UpdateCheckboxes();
					TipBuddy_OptionsFrame_UpdateSliders();
					TipBuddy_OptionsFrame_UpdateColorButtons();
					TipBuddy_OptionsFrame_UpdateColorButtons_Text();

					TipBuddy_Background_ColorPick_OnLoad();

					PlaySound("igMainMenuQuit");
				end
				if (not TipBuddy_SavedVars["general"].opPos_L) then
					return;
				else
					this:SetPoint("TOPLEFT", "UIParent", "BOTTOMLEFT", TipBuddy_SavedVars["general"].opPos_L, TipBuddy_SavedVars["general"].opPos_T);
				end
			</OnShow>
		</Scripts>

		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>

		<Layers>
			<Layer level="ARTWORK">
				<Texture name="TipBuddy_OptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="290" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="TipBuddy_OptionsFrameHeaderText" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrameHeader">
							<Offset>
								<AbsDimension x="0" y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>

		<Frames>
			<Frame name="$parent_Moveable" moveable="true">
				<Size>
					<AbsDimension x="170" y="48"/>
				</Size>
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="0" y="16"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnMouseDown>
						TB_Options_OnMouseDown(arg1);
					</OnMouseDown>
					<OnMouseUp>
						TB_Options_OnMouseUp(arg1);
					</OnMouseUp>
				</Scripts>
			</Frame>

			<Frame name="TB_TextVariablesFrame" frameStrata="BACKGROUND" moveable="true" hidden="true">
				<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<EdgeSize>
						<AbsValue val="16"/>
					</EdgeSize>
					<TileSize>
						<AbsValue val="16"/>
					</TileSize>
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
				</Backdrop>
				<Size><AbsDimension x="280" y="490"/></Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT"/>
				</Anchors>
<!-- 				<Frames>
					<Button name="$parent_CloseButton" inherits="GameMenuButtonTemplate">
						<Scripts>
							<OnClick>
								TB_TextVariablesFrame:Hide();
							</OnClick>
						</Scripts>
					</Button>
				</Frames> -->
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parent_Title" inherits="GameFontNormal" text="Variable Codes">
							<Color r="1.0" g="1.0" b="0"/>
							<Anchors>
								<Anchor point="TOP">
									<Offset><AbsDimension x="0" y="-6"/></Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parent_Column1" inherits="GameFontNormalSmall" justifyH="LEFT" text="TB_TEXTVARS_HELP_1">
							<Color r="0.9" g="0.9" b="0.5"/>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset><AbsDimension x="10" y="-22"/></Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parent_Column2" inherits="GameFontNormalSmall" justifyH="LEFT" text="TB_TEXTVARS_HELP_2">
							<Color r="0.7" g="0.7" b="0.7"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parent_Column1" relativePoint="TOPRIGHT">
									<Offset><AbsDimension x="10" y="0"/></Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						this:SetBackdropBorderColor(0.8, 0.8, 0.9);
						this:SetBackdropColor(0, 0, 0, 1);
					</OnLoad>
					<OnHide>
						TipBuddy_ShowTextVars:SetText("Show Vars");
					</OnHide>
				</Scripts>
			</Frame>


			<Frame name="TipBuddy_OptionsFrame_PlayersFrame" inherits="TipBuddy_OptionsFrame_UnitsTemplate">

				<Frames>

					<!-- TABFRAME TITLE -->
					<Frame name="TipBuddy_OptionsFrame_PlayersFrameTitle">
						<Size>
							<AbsDimension x="210" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOM" relativePoint="TOP">
								<Offset>
									<AbsDimension x="0" y="20"/>
								</Offset>
							</Anchor>
						</Anchors>			
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="8"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="8"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="2" right="2" top="2" bottom="2"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer>
                                <FontString inherits="GameFontHighlight" text="PLAYERS">
                                    <Anchors>
                                        <Anchor point="CENTER">
                                            <Offset>
                                                <AbsDimension x="0" y="0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>

					<!-- PLAYERS TABS -->
					<Button name="$parentTab1" inherits="TabButtonTemplate" text="Friendly" id="1">
						<Size>
							<AbsDimension x="100" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">>
								<Offset>
									<AbsDimension x="4" y="30"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								PanelTemplates_SelectTab(this);
 								PanelTemplates_TabResize(-10, this);
								getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
							</OnLoad>
							<OnClick>
								TipBuddy_PlayersFrameTab_OnClick(1);
							</OnClick>
						</Scripts>
					</Button>

					<Button name="$parentTab2" inherits="TabButtonTemplate" text="InParty" id="2">
						<Size>
							<AbsDimension x="100" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="$parent" relativePoint="TOP">>
								<Offset>
									<AbsDimension x="0" y="30"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								PanelTemplates_DeselectTab(this);								
								PanelTemplates_TabResize(-10, this);
								getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
							</OnLoad>
							<OnClick>
								TipBuddy_PlayersFrameTab_OnClick(2);
							</OnClick>
						</Scripts>
					</Button>

					<Button name="$parentTab3" inherits="TabButtonTemplate" text="Enemy" id="3">
						<Size>
							<AbsDimension x="100" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension x="-4" y="30"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								PanelTemplates_DeselectTab(this);	
								PanelTemplates_TabResize(-10, this);
								getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
							</OnLoad>
							<OnClick>
								TipBuddy_PlayersFrameTab_OnClick(3);
							</OnClick>
						</Scripts>
					</Button>
					<Frame name="TipBuddy_OptionsFrame_PCFriend_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">

						<Frames>
							<Frame name="TB_PCFriend_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_TipStyleDropDown_OnLoad( "pc_friend" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<CheckButton name="TB_Op_Check1" inherits="TipBuddy_CheckButtonTemplate" id="1" hidden="true">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="10" y="-6"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										<!--TipBuddy_ToggleCheckboxFrame( this );-->
									</OnClick>
								</Scripts>
							</CheckButton>
							<Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PlayersFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>
									<EditBox name="TB_EditBox_01_1" inherits="TipBuddy_EditBox_Template1" id="1">
									</EditBox>
									<EditBox name="TB_EditBox_01_2" inherits="TipBuddy_EditBox_Template2">
									</EditBox>
								</Frames>
							</Frame>
							<Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PlayersFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>
									<CheckButton name="TB_Op_Check78" inherits="TipBuddy_TargetTargetCheckbox_Template" id="78">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check1" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="12" y="-3"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check63" inherits="TipBuddy_CheckButtonTemplate" id="63">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check78" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check2" inherits="TipBuddy_CheckButtonTemplate" id="2">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check63" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check4" inherits="TipBuddy_CheckButtonTemplate" id="4">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check2" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check5" inherits="TipBuddy_CheckButtonTemplate" id="5">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check4" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
								</Frames>
							</Frame>
							<CheckButton name="TB_Op_Check6" inherits="TipBuddy_PVPCheckbox_Template" id="6">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check5" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check7" inherits="TipBuddy_CheckButtonTemplate" id="7">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check6" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check8" inherits="TipBuddy_CheckButtonTemplate" id="8">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check7" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check3" inherits="TipBuddy_HealthbarCheckbox_Template" id="3">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check8" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<Frame name="TB_PCFriend_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDColorDropDown_OnLoad( "pc_friend" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker1" inherits="TipBuddy_ColorPickerButton_Template" id="1">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_PCFriend_BDColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Frame name="TB_PCFriend_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDBColorDropDown_OnLoad( "pc_friend" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker11" inherits="TipBuddy_ColorPickerButton_Template" id="11">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_PCFriend_BDBColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
						</Frames>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
								getglobal(this:GetName().."Title"):SetText( TB_PC_FRIEND );
							</OnLoad>
						</Scripts>
					</Frame>

					<Frame name="TipBuddy_OptionsFrame_PCParty_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">

						<Frames>
							<Frame name="TB_PCParty_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_TipStyleDropDown_OnLoad( "pc_party" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<CheckButton name="TB_Op_Check9" inherits="TipBuddy_CheckButtonTemplate" id="9" hidden="true">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="10" y="-6"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										<!--TipBuddy_ToggleCheckboxFrame( this );-->
									</OnClick>
								</Scripts>
							</CheckButton>
							<Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PlayersFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>
									<EditBox name="TB_EditBox_02_1" inherits="TipBuddy_EditBox_Template1" id="2">
									</EditBox>
									<EditBox name="TB_EditBox_02_2" inherits="TipBuddy_EditBox_Template2">
									</EditBox>
								</Frames>
							</Frame>
							<Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PlayersFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>
									<CheckButton name="TB_Op_Check79" inherits="TipBuddy_TargetTargetCheckbox_Template" id="79">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check9" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="12" y="-3"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check64" inherits="TipBuddy_CheckButtonTemplate" id="64">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check79" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check10" inherits="TipBuddy_CheckButtonTemplate" id="10">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check64" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check12" inherits="TipBuddy_CheckButtonTemplate" id="12">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check10" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check13" inherits="TipBuddy_CheckButtonTemplate" id="13">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check12" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
								</Frames>
							</Frame>
							<CheckButton name="TB_Op_Check14" inherits="TipBuddy_PVPCheckbox_Template" id="14">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check13" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check15" inherits="TipBuddy_CheckButtonTemplate" id="15">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check14" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check16" inherits="TipBuddy_CheckButtonTemplate" id="16">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check15" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check11" inherits="TipBuddy_HealthbarCheckbox_Template" id="11">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check16" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<Frame name="TB_PCParty_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDColorDropDown_OnLoad( "pc_party" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker2" inherits="TipBuddy_ColorPickerButton_Template" id="2">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_PCParty_BDColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Frame name="TB_PCParty_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDBColorDropDown_OnLoad( "pc_party" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker12" inherits="TipBuddy_ColorPickerButton_Template" id="12">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_PCParty_BDBColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
						</Frames>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
								getglobal(this:GetName().."Title"):SetText( TB_PC_PARTY );
							</OnLoad>
						</Scripts>
					</Frame>

					<Frame name="TipBuddy_OptionsFrame_PCEnemy_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">

						<Frames>
							<Frame name="TB_PCEnemy_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_TipStyleDropDown_OnLoad( "pc_enemy" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<CheckButton name="TB_Op_Check17" inherits="TipBuddy_CheckButtonTemplate" id="17" hidden="true">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="10" y="-6"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										<!--TipBuddy_ToggleCheckboxFrame( this );-->
									</OnClick>
								</Scripts>
							</CheckButton>
							<Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PlayersFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>
									<EditBox name="TB_EditBox_03_1" inherits="TipBuddy_EditBox_Template1" id="3">
									</EditBox>
									<EditBox name="TB_EditBox_03_2" inherits="TipBuddy_EditBox_Template2">
									</EditBox>
								</Frames>
							</Frame>
							<Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PlayersFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>

									<CheckButton name="TB_Op_Check80" inherits="TipBuddy_TargetTargetCheckbox_Template" id="80">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check17" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="12" y="-3"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check65" inherits="TipBuddy_CheckButtonTemplate" id="65">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check80" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check18" inherits="TipBuddy_CheckButtonTemplate" id="18">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check65" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<!-- HIDDEN -->
									<CheckButton name="TB_Op_Check20" inherits="TipBuddy_CheckButtonTemplate" id="20">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check18" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check21" inherits="TipBuddy_CheckButtonTemplate" id="21">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check20" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
								</Frames>
							</Frame>
							<CheckButton name="TB_Op_Check22" inherits="TipBuddy_PVPCheckbox_Template" id="22">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check21" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check23" inherits="TipBuddy_CheckButtonTemplate" id="23">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check22" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check24" inherits="TipBuddy_CheckButtonTemplate" id="24">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check23" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check19" inherits="TipBuddy_HealthbarCheckbox_Template" id="19">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check24" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<Frame name="TB_PCEnemy_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDColorDropDown_OnLoad( "pc_enemy" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker3" inherits="TipBuddy_ColorPickerButton_Template" id="3">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_PCEnemy_BDColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Frame name="TB_PCEnemy_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDBColorDropDown_OnLoad( "pc_enemy" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker13" inherits="TipBuddy_ColorPickerButton_Template" id="13">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_PCEnemy_BDBColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
						</Frames>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
								getglobal(this:GetName().."Title"):SetText( TB_PC_ENEMY );
							</OnLoad>
						</Scripts>
					</Frame>
			
				</Frames>
			</Frame>


			<!-- NPC FRAME -->
			<Frame name="TipBuddy_OptionsFrame_NPCsFrame" inherits="TipBuddy_OptionsFrame_UnitsTemplate">

				<Frames>

					<!-- TABFRAME TITLE -->
					<Frame name="TipBuddy_OptionsFrame_NPCsFrameTitle">
						<Size>
							<AbsDimension x="210" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOM" relativePoint="TOP">
								<Offset>
									<AbsDimension x="0" y="20"/>
								</Offset>
							</Anchor>
						</Anchors>		
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="8"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="8"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="2" right="2" top="2" bottom="2"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer>
                                <FontString inherits="GameFontHighlight" text="NPCs">
                                    <Anchors>
                                        <Anchor point="CENTER">
                                            <Offset>
                                                <AbsDimension x="0" y="0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>

					<!-- NPCS TABS -->
					<Button name="$parentTab1" inherits="TabButtonTemplate" text="Friendly" id="1">
						<Size>
							<AbsDimension x="100" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="4" y="30"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								PanelTemplates_SelectTab(this);
 								PanelTemplates_TabResize(-10, this);
								getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
							</OnLoad>
							<OnClick>
								TipBuddy_NPCsFrameTab_OnClick(1);
							</OnClick>
						</Scripts>
					</Button>

					<Button name="$parentTab2" inherits="TabButtonTemplate" text="Neutral" id="2">
						<Size>
							<AbsDimension x="100" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="$parent" relativePoint="TOP">>
								<Offset>
									<AbsDimension x="0" y="30"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								PanelTemplates_DeselectTab(this);								
								PanelTemplates_TabResize(-10, this);
								getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
							</OnLoad>
							<OnClick>
								TipBuddy_NPCsFrameTab_OnClick(2);
							</OnClick>
						</Scripts>
					</Button>

					<Button name="$parentTab3" inherits="TabButtonTemplate" text="Enemy" id="3">
						<Size>
							<AbsDimension x="100" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension x="-4" y="30"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								PanelTemplates_DeselectTab(this);	
								PanelTemplates_TabResize(-10, this);
								getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
							</OnLoad>
							<OnClick>
								TipBuddy_NPCsFrameTab_OnClick(3);
							</OnClick>
						</Scripts>
					</Button>
					<Frame name="TipBuddy_OptionsFrame_NPCFriend_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">

						<Frames>
							<Frame name="TB_NPCFriend_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_TipStyleDropDown_OnLoad( "npc_friend" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<CheckButton name="TB_Op_Check25" inherits="TipBuddy_CheckButtonTemplate" id="25" hidden="true">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="10" y="-6"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										<!--TipBuddy_ToggleCheckboxFrame( this );-->
									</OnClick>
								</Scripts>
							</CheckButton>
							<Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_NPCsFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>
									<EditBox name="TB_EditBox_04_1" inherits="TipBuddy_EditBox_Template1" id="4">
									</EditBox>
									<EditBox name="TB_EditBox_04_2" inherits="TipBuddy_EditBox_Template2">
									</EditBox>
								</Frames>
							</Frame>
							<Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_NPCsFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>

									<CheckButton name="TB_Op_Check81" inherits="TipBuddy_TargetTargetCheckbox_Template" id="81">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check25" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="12" y="-4"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check26" inherits="TipBuddy_CheckButtonTemplate" id="26">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check81" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check28" inherits="TipBuddy_CheckButtonTemplate" id="28">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check26" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check29" inherits="TipBuddy_CheckButtonTemplate" id="29">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check28" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
								</Frames>
							</Frame>
							<CheckButton name="TB_Op_Check30" inherits="TipBuddy_PVPCheckbox_Template" id="30">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check29" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-24"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check31" inherits="TipBuddy_CheckButtonTemplate" id="31">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check30" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<!-- NOT USED  -->
							<CheckButton name="TB_Op_Check32" hidden="true" inherits="TipBuddy_CheckButtonTemplate" id="32">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check31" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check27" inherits="TipBuddy_HealthbarCheckbox_Template" id="27">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check31" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<Frame name="TB_NPCFriend_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDColorDropDown_OnLoad( "npc_friend" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker4" inherits="TipBuddy_ColorPickerButton_Template" id="4">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_NPCFriend_BDColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Frame name="TB_NPCFriend_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDBColorDropDown_OnLoad( "npc_friend" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker14" inherits="TipBuddy_ColorPickerButton_Template" id="14">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_NPCFriend_BDBColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
						</Frames>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
								getglobal(this:GetName().."Title"):SetText( TB_NPC_FRIEND );
							</OnLoad>
						</Scripts>
					</Frame>

					<Frame name="TipBuddy_OptionsFrame_NPCNeutral_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">

						<Frames>
							<Frame name="TB_NPCNeutral_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_TipStyleDropDown_OnLoad( "npc_neutral" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<CheckButton name="TB_Op_Check70" inherits="TipBuddy_CheckButtonTemplate" id="70" hidden="true">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="10" y="-6"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										<!--TipBuddy_ToggleCheckboxFrame( this );-->
									</OnClick>
								</Scripts>
							</CheckButton>
							<Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_NPCsFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>
									<EditBox name="TB_EditBox_05_1" inherits="TipBuddy_EditBox_Template1" id="5">
									</EditBox>
									<EditBox name="TB_EditBox_05_2" inherits="TipBuddy_EditBox_Template2">
									</EditBox>
								</Frames>
							</Frame>
							<Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_NPCsFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>

									<CheckButton name="TB_Op_Check82" inherits="TipBuddy_TargetTargetCheckbox_Template" id="82">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check70" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="12" y="-4"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check71" inherits="TipBuddy_CheckButtonTemplate" id="71">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check82" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check73" inherits="TipBuddy_CheckButtonTemplate" id="73">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check71" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check74" inherits="TipBuddy_CheckButtonTemplate" id="74">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check73" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
								</Frames>
							</Frame>
							<CheckButton name="TB_Op_Check75" inherits="TipBuddy_PVPCheckbox_Template" id="75">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check74" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-24"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check76" inherits="TipBuddy_CheckButtonTemplate" id="76">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check75" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<!-- NOT USED -->
							<CheckButton name="TB_Op_Check77" hidden="true" inherits="TipBuddy_CheckButtonTemplate" id="77">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check76" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check72" inherits="TipBuddy_HealthbarCheckbox_Template" id="72">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check76" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<Frame name="TB_NPCNeutral_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDColorDropDown_OnLoad( "npc_neutral" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker5" inherits="TipBuddy_ColorPickerButton_Template" id="5">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_NPCNeutral_BDColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Frame name="TB_NPCNeutral_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDBColorDropDown_OnLoad( "npc_neutral" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker15" inherits="TipBuddy_ColorPickerButton_Template" id="15">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_NPCNeutral_BDBColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
						</Frames>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
								getglobal(this:GetName().."Title"):SetText( TB_NPC_NEUTRAL );
							</OnLoad>
						</Scripts>
					</Frame>

					<!-- /script TipBuddy_OptionsFrame_NPCEnemy_Options_Checks:Hide(); TipBuddy_OptionsFrame_NPCEnemy_Options_EB:Show() -->
					<Frame name="TipBuddy_OptionsFrame_NPCEnemy_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">

						<Frames>
							<Frame name="TB_NPCEnemy_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_TipStyleDropDown_OnLoad( "npc_enemy" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<CheckButton name="TB_Op_Check33" inherits="TipBuddy_CheckButtonTemplate" id="33" hidden="true">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="10" y="-6"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										<!--TipBuddy_ToggleCheckboxFrame( this );-->
									</OnClick>
								</Scripts>
							</CheckButton>
							<Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_NPCsFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>
									<EditBox name="TB_EditBox_06_1" inherits="TipBuddy_EditBox_Template1" id="6">
									</EditBox>
									<EditBox name="TB_EditBox_06_2" inherits="TipBuddy_EditBox_Template2">
									</EditBox>
								</Frames>
							</Frame>
							<Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_NPCsFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>

									<CheckButton name="TB_Op_Check83" inherits="TipBuddy_TargetTargetCheckbox_Template" id="83">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check33" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="12" y="-4"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check34" inherits="TipBuddy_CheckButtonTemplate" id="34">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check83" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check36" inherits="TipBuddy_CheckButtonTemplate" id="36">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check34" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check37" inherits="TipBuddy_CheckButtonTemplate" id="37">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check36" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
								</Frames>
							</Frame>
							<CheckButton name="TB_Op_Check38" inherits="TipBuddy_PVPCheckbox_Template" id="38">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check37" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-24"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check39" inherits="TipBuddy_CheckButtonTemplate" id="39">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check38" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<!-- NOT USED -->
							<CheckButton name="TB_Op_Check40" hidden="true" inherits="TipBuddy_CheckButtonTemplate" id="40">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check39" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check35" inherits="TipBuddy_HealthbarCheckbox_Template" id="35">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check39" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<Frame name="TB_NPCEnemy_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDColorDropDown_OnLoad( "npc_enemy" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker6" inherits="TipBuddy_ColorPickerButton_Template" id="6">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_NPCEnemy_BDColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Frame name="TB_NPCEnemy_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDBColorDropDown_OnLoad( "npc_enemy" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker16" inherits="TipBuddy_ColorPickerButton_Template" id="16">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_NPCEnemy_BDBColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
						</Frames>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
								getglobal(this:GetName().."Title"):SetText( TB_NPC_ENEMY );
							</OnLoad>
						</Scripts>
					</Frame>
			
				</Frames>
			</Frame>


			<!-- PET FRAME -->
			<Frame name="TipBuddy_OptionsFrame_PetsFrame" inherits="TipBuddy_OptionsFrame_UnitsTemplate">

				<Frames>

					<!-- TABFRAME TITLE -->
					<Frame name="TipBuddy_OptionsFrame_PetsFrameTitle">
						<Size>
							<AbsDimension x="210" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOM" relativePoint="TOP">
								<Offset>
									<AbsDimension x="0" y="20"/>
								</Offset>
							</Anchor>
						</Anchors>			
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="8"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="8"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="2" right="2" top="2" bottom="2"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer>
                                <FontString inherits="GameFontHighlight" text="PETS">
                                    <Anchors>
                                        <Anchor point="CENTER">
                                            <Offset>
                                                <AbsDimension x="0" y="0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>

					<!-- PET TABS -->
					<Button name="$parentTab1" inherits="TabButtonTemplate" text="Friendly" id="1">
						<Size>
							<AbsDimension x="100" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="4" y="30"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								PanelTemplates_SelectTab(this);
 								PanelTemplates_TabResize(-10, this);
								getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
							</OnLoad>
							<OnClick>
								TipBuddy_PetsFrameTab_OnClick(1);
							</OnClick>
						</Scripts>
					</Button>

					<Button name="$parentTab2" inherits="TabButtonTemplate" text="Enemy" id="2">
						<Size>
							<AbsDimension x="100" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension x="-4" y="30"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								PanelTemplates_DeselectTab(this);	
								PanelTemplates_TabResize(-10, this);
								getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
							</OnLoad>
							<OnClick>
								TipBuddy_PetsFrameTab_OnClick(2);
							</OnClick>
						</Scripts>
					</Button>
					<Frame name="TipBuddy_OptionsFrame_PETFriend_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">

						<Frames>
							<Frame name="TB_PETFriend_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_TipStyleDropDown_OnLoad( "pet_friend" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<CheckButton name="TB_Op_Check41" inherits="TipBuddy_CheckButtonTemplate" id="41" hidden="true">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="10" y="-6"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										<!--TipBuddy_ToggleCheckboxFrame( this );-->
									</OnClick>
								</Scripts>
							</CheckButton>
							<Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PetsFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>
									<EditBox name="TB_EditBox_07_1" inherits="TipBuddy_EditBox_Template1" id="7">
									</EditBox>
									<EditBox name="TB_EditBox_07_2" inherits="TipBuddy_EditBox_Template2">
									</EditBox>
								</Frames>
							</Frame>
							<Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PetsFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>

									<CheckButton name="TB_Op_Check84" inherits="TipBuddy_TargetTargetCheckbox_Template" id="84">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check25" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="12" y="-4"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check42" inherits="TipBuddy_CheckButtonTemplate" id="42">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check84" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check44" inherits="TipBuddy_CheckButtonTemplate" id="44">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check42" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check45" inherits="TipBuddy_CheckButtonTemplate" id="45">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check44" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
								</Frames>
							</Frame>
							<CheckButton name="TB_Op_Check46" inherits="TipBuddy_PVPCheckbox_Template" id="46">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check45" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-24"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check47" inherits="TipBuddy_CheckButtonTemplate" id="47">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check46" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check43" inherits="TipBuddy_HealthbarCheckbox_Template" id="43">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check47" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<!-- NOT USED  -->
							<CheckButton name="TB_Op_Check48" inherits="TipBuddy_CheckButtonTemplate" id="48" hidden="true">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check47" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<Frame name="TB_PETFriend_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDColorDropDown_OnLoad( "pet_friend" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker7" inherits="TipBuddy_ColorPickerButton_Template" id="7">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_PETFriend_BDColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Frame name="TB_PETFriend_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDBColorDropDown_OnLoad( "pet_friend" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker17" inherits="TipBuddy_ColorPickerButton_Template" id="17">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_PETFriend_BDBColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
						</Frames>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
								getglobal(this:GetName().."Title"):SetText( TB_PET_FRIEND );
							</OnLoad>
						</Scripts>
					</Frame>

					<Frame name="TipBuddy_OptionsFrame_PETEnemy_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">

						<Frames>
							<Frame name="TB_PETEnemy_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_TipStyleDropDown_OnLoad( "pet_enemy" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<CheckButton name="TB_Op_Check49" inherits="TipBuddy_CheckButtonTemplate" id="41" hidden="true">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="10" y="-6"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										<!--TipBuddy_ToggleCheckboxFrame( this );-->
									</OnClick>
								</Scripts>
							</CheckButton>
							<Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PetsFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>
									<EditBox name="TB_EditBox_08_1" inherits="TipBuddy_EditBox_Template1" id="8">
									</EditBox>
									<EditBox name="TB_EditBox_08_2" inherits="TipBuddy_EditBox_Template2">
									</EditBox>
								</Frames>
							</Frame>
							<Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PetsFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>

									<CheckButton name="TB_Op_Check85" inherits="TipBuddy_TargetTargetCheckbox_Template" id="85">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check25" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="12" y="-4"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check50" inherits="TipBuddy_CheckButtonTemplate" id="50">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check85" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check52" inherits="TipBuddy_CheckButtonTemplate" id="52">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check50" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check53" inherits="TipBuddy_CheckButtonTemplate" id="53">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check52" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
								</Frames>
							</Frame>
							<CheckButton name="TB_Op_Check54" inherits="TipBuddy_PVPCheckbox_Template" id="54">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check53" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-24"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check55" inherits="TipBuddy_CheckButtonTemplate" id="55">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check54" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<CheckButton name="TB_Op_Check51" inherits="TipBuddy_HealthbarCheckbox_Template" id="51">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check55" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<!-- NOT USED  -->
							<CheckButton name="TB_Op_Check56" inherits="TipBuddy_CheckButtonTemplate" id="56" hidden="true">
								<Size>
									<AbsDimension x="24" y="24"/>
								</Size>
								<Anchors>
									<Anchor point="TOP" relativeTo="TB_Op_Check51" relativePoint="BOTTOM">
										<Offset>
											<AbsDimension x="0" y="-1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</CheckButton>
							<Frame name="TB_PETEnemy_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDColorDropDown_OnLoad( "pet_enemy" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker8" inherits="TipBuddy_ColorPickerButton_Template" id="8">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_PETEnemy_BDColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Frame name="TB_PETEnemy_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDBColorDropDown_OnLoad( "pet_enemy" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker18" inherits="TipBuddy_ColorPickerButton_Template" id="18">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_PETEnemy_BDBColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
						</Frames>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
								getglobal(this:GetName().."Title"):SetText( TB_PET_ENEMY );
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>
			</Frame>


			<!-- CORPSE FRAME -->
			<Frame name="TipBuddy_OptionsFrame_CORPSEFrame" inherits="TipBuddy_OptionsFrame_UnitsTemplate">

				<Frames>

					<!-- TABFRAME TITLE -->
					<Frame name="TipBuddy_OptionsFrame_CORPSEFrameTitle">
						<Size>
							<AbsDimension x="210" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOM" relativePoint="TOP">
								<Offset>
									<AbsDimension x="0" y="20"/>
								</Offset>
							</Anchor>
						</Anchors>			
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="8"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="8"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="2" right="2" top="2" bottom="2"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer>
                                <FontString inherits="GameFontHighlight" text="CORPSE">
                                    <Anchors>
                                        <Anchor point="CENTER">
                                            <Offset>
                                                <AbsDimension x="0" y="0"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>

					<Frame name="TipBuddy_OptionsFrame_CORPSE_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">

						<Frames>
							<Frame name="TB_CORPSE_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_TipStyleDropDown_OnLoad( "corpse" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<CheckButton name="TB_Op_Check86" inherits="TipBuddy_CheckButtonTemplate" id="86" hidden="true">
								<Anchors>
									<Anchor point="TOPLEFT">
										<Offset>
											<AbsDimension x="10" y="-6"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Scripts>
									<OnClick>
										<!--TipBuddy_ToggleCheckboxFrame( this );-->
									</OnClick>
								</Scripts>
							</CheckButton>
							<Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_CORPSEFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>
									<EditBox name="TB_EditBox_09_1" inherits="TipBuddy_EditBox_Template1" id="9">
									</EditBox>
									<EditBox name="TB_EditBox_09_2" inherits="TipBuddy_EditBox_Template2">
									</EditBox>
								</Frames>
							</Frame>
							<Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
								<Size>
									<AbsDimension x="164" y="246"/>
								</Size>
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_CORPSEFrame">
										<Offset>
											<AbsDimension x="12" y="-22"/>
										</Offset>
									</Anchor>
								</Anchors>
								<Frames>

									<CheckButton name="TB_Op_Check87" inherits="TipBuddy_CheckButtonTemplate" id="87">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check25" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="12" y="-4"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check88" inherits="TipBuddy_CheckButtonTemplate" id="88">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check87" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
									<CheckButton name="TB_Op_Check89" inherits="TipBuddy_CheckButtonTemplate" id="89">
										<Size>
											<AbsDimension x="24" y="24"/>
										</Size>
										<Anchors>
											<Anchor point="TOP" relativeTo="TB_Op_Check88" relativePoint="BOTTOM">
												<Offset>
													<AbsDimension x="0" y="-1"/>
												</Offset>
											</Anchor>
										</Anchors>
									</CheckButton>
								</Frames>
							</Frame>
							<Frame name="TB_CORPSE_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDColorDropDown_OnLoad( "corpse" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker10" inherits="TipBuddy_ColorPickerButton_Template" id="10">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_CORPSE_BDColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
							<Frame name="TB_CORPSE_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
								<Scripts>
									<OnShow>
										TipBuddy_BDBColorDropDown_OnLoad( "corpse" );
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
										GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
							</Frame>
							<Button name="TipBuddy_OptionsFrame_ColorPicker20" inherits="TipBuddy_ColorPickerButton_Template" id="20">
								<Size>
									<AbsDimension x="32" y="32"/>
								</Size>
								<Anchors>
									<Anchor point="LEFT" relativeTo="TB_CORPSE_BDBColorDropDown" relativePoint="RIGHT">
										<Offset>
											<AbsDimension x="-8" y="1"/>
										</Offset>
									</Anchor>
								</Anchors>
							</Button>
						</Frames>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
								getglobal(this:GetName().."Title"):SetText( TB_CORPSE );
							</OnLoad>
						</Scripts>
					</Frame>
			
				</Frames>
			</Frame>


			<Frame name="TipBuddy_OptionsFrame_General_Options" inherits="OptionFrameBoxTemplate">
				<Size>
					<AbsDimension x="220" y="380"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="40" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:SetBackdropBorderColor(0.4, 0.4, 0.4);
						this:SetBackdropColor(0.15, 0.15, 0.15);
					</OnLoad>
				</Scripts>
				<Frames>




					<Slider name="TipBuddy_OptionsFrame_Slider6" inherits="TipBuddy_SliderWithText_Template">
						<Anchors>
							<Anchor point="TOP">
								<Offset>
									<AbsDimension x="-6" y="-38"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Slider>
					<CheckButton name="TB_Op_Check59" inherits="TipBuddy_CheckButtonTemplate" id="59">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_Slider6" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-34"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>

						</Scripts>
					</CheckButton>

					<CheckButton name="TB_Op_Check61" hidden="true" inherits="TipBuddy_CheckButtonTemplate" id="61">
						<Size>
							<AbsDimension x="24" y="24"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="TB_Op_Check57" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="6" y="1"/>
								</Offset>
							</Anchor>
						</Anchors>
					</CheckButton>
					<CheckButton name="TB_Op_Check58" inherits="TipBuddy_CheckButtonTemplate" id="58">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="TB_Op_Check59" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>

						</Scripts>
					</CheckButton>
					<!-- DIFF AS BACK (HIDDEN) -->
					<CheckButton name="TB_Op_Check62" hidden="true" inherits="TipBuddy_CheckButtonTemplate" id="62">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="TB_Op_Check60" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>

						</Scripts>					
					</CheckButton>
					<Button name="TipBuddy_OptionsFrame_ColorPicker9" toplevel="true" frameStrata="HIGH" inherits="TipBuddy_ColorPickerButton_Template" id="9">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="TB_Op_Check58" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-18"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker19" toplevel="true" frameStrata="HIGH" inherits="TipBuddy_ColorPickerButton_Template" id="19">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker9" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker21" toplevel="true" frameStrata="HIGH" inherits="TipBuddy_ColorPickerButton_Template" id="21">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker19" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-22"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker22" toplevel="true" frameStrata="HIGH" inherits="TipBuddy_ColorPickerButton_Template" id="22">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker21" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<CheckButton name="TB_Op_Check60" inherits="TipBuddy_CheckButtonTemplate" id="60">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker22" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="0" y="-12"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>

						</Scripts>
					</CheckButton>
					<Frame name="TipBuddy_OptionsFrame_GeneralOptionsTitle">
						<Size>
							<AbsDimension x="210" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOM" relativePoint="TOP">
								<Offset>
									<AbsDimension x="0" y="-4"/>
								</Offset>
							</Anchor>
						</Anchors>			
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="8"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="8"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="2" right="2" top="2" bottom="2"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer>
								<FontString name="$parentText" inherits="GameFontHighlight" text="GENERAL OPTIONS">
									<Anchors>
										<Anchor point="CENTER">
											<Offset>
												<AbsDimension x="0" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>
			</Frame>

			<Frame name="TipBuddy_OptionsFrame_Anchoring_Options" hidden="true" inherits="OptionFrameBoxTemplate" frameStrata="DIALOG" toplevel="true">
				<Size>
					<AbsDimension x="220" y="320"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="40" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:SetBackdropBorderColor(0.4, 0.4, 0.4);
						this:SetBackdropColor(0.15, 0.15, 0.15);
					</OnLoad>
				</Scripts>
				<Frames>
					<Frame name="TipBuddy_CursorPosDropDown" inherits="UIDropDownMenuTemplate" enableMouse="true">
						<Size>
							<AbsDimension x="40" y="32"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="22" y="-46"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<FontString name="$parentLabel" inherits="GameFontNormalSmall" text="Tooltip Cursor Position">
									<Anchors>
										<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
											<Offset>
												<AbsDimension x="18" y="2"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnShow>
								TipBuddy_CursorPosDropDown_OnLoad();
							</OnShow>
 							<OnEnter>
								GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
								GameTooltip:SetText(TB_OPTION_CURSORPOS_TOOLTIP, nil, nil, nil, nil, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
					</Frame>
					<Slider name="TipBuddy_OptionsFrame_Slider4" inherits="TipBuddy_SliderWithText_Template2">
						<Size>
							<AbsDimension x="128" y="16"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_CursorPosDropDown" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Slider>
					<Slider name="TipBuddy_OptionsFrame_Slider5" inherits="TipBuddy_SliderWithText_Template2">
						<Size>
							<AbsDimension x="128" y="16"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_Slider4" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-4"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Slider>
					<CheckButton name="TB_Op_Check57" inherits="TipBuddy_CheckButtonTemplate" id="57">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="TipBuddy_CursorPosDropDown" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="22" y="-70"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								if ( this:GetChecked() ) then
									TipBuddy_Header_Frame:Show();
<!-- 									TB_Op_Check61:Disable();
									getglobal("TB_Op_Check61Text"):SetTextColor(GRAY_FONT_COLOR.r, GRAY_FONT_COLOR.g, GRAY_FONT_COLOR.b); -->
								else
<!-- 									TB_Op_Check61:Enable();
									getglobal("TB_Op_Check61Text"):SetTextColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b); -->
								end
							</OnClick>
						</Scripts>
					</CheckButton>
					<Frame name="TipBuddy_NonUnitTipPosDropDown" inherits="UIDropDownMenuTemplate" enableMouse="true">
						<Anchors>
							<Anchor point="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="22" y="84"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<FontString name="$parentLabel" inherits="GameFontNormalSmall" text="Non-Unit Tooltips">
									<Anchors>
										<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
											<Offset>
												<AbsDimension x="18" y="2"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnShow>
								TipBuddy_NonUnitTipPosDropDown_OnLoad();
							</OnShow>
 							<OnEnter>
								GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
								GameTooltip:SetText(TB_OPTION_NONUNITPOS_TOOLTIP, nil, nil, nil, nil, 1);
							</OnEnter>
							<OnLeave>
								GameTooltip:Hide();
							</OnLeave>
						</Scripts>
					</Frame>
					<Button name="TipBuddy_ShowAnchorButton" inherits="GameMenuButtonTemplate" text="Display TipBuddyAnchor">
						<Anchors>
							<Anchor point="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="28" y="44"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Size>
							<AbsDimension x="154" y="24"/>
						</Size>

						<NormalText name="$parentText" inherits="TBGameFontNormal"/>
						<DisabledText inherits="TBGameFontDisable"/>
						<HighlightText inherits="TBGameFontHighlight"/>
						<NormalTexture inherits="UIPanelButtonUpTexture"/>
						<PushedTexture inherits="UIPanelButtonDownTexture"/>
						<DisabledTexture inherits="UIPanelButtonDisabledTexture"/>
						<HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
						<Scripts>
							<OnClick>
								TipBuddy_Header_Frame:Show();
								PlaySound("igMainMenuOptionCheckBoxOn");
							</OnClick>
						</Scripts>
					</Button>
					<Button name="TipBuddy_ResetAnchorButton" inherits="GameMenuButtonTemplate" text="Reset TipBuddyAnchor ">
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_ShowAnchorButton" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="1"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Size>
							<AbsDimension x="118" y="18"/>
						</Size>

						<NormalText name="$parentText" inherits="TB_TTGameFontNormalSmall"/>
						<DisabledText inherits="TB_TTGameFontNormalSmallHighlight"/>
						<HighlightText inherits="TB_TTGameFontNormalSmallHighlight"/>
						<NormalTexture inherits="UIPanelButtonDisabledTexture"/>
						<PushedTexture inherits="UIPanelButtonDownTexture"/>
						<DisabledTexture inherits="UIPanelButtonDisabledTexture"/>
						<HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
						<Scripts>
							<OnShow>
								--TipBuddy_ResetAnchorButtonText:SetTextHeight(8);
							</OnShow>
							<OnClick>
								TipBuddy_ResetAnchorPos();
								DEFAULT_CHAT_FRAME:AddMessage("|cff20ff20TipBuddy: Resetting TipBuddyAnchor position.");
								PlaySound("igMainMenuOptionCheckBoxOn");
							</OnClick>
						</Scripts>
					</Button>

					<Frame name="TipBuddy_OptionsFrame_AnchoringOptionsTitle">
						<Size>
							<AbsDimension x="210" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOM" relativePoint="TOP">
								<Offset>
									<AbsDimension x="0" y="-4"/>
								</Offset>
							</Anchor>
						</Anchors>			
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="8"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="8"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="2" right="2" top="2" bottom="2"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer>
								<FontString name="$parentText" inherits="GameFontHighlight" text="ANCHORING OPTIONS">
									<Anchors>
										<Anchor point="CENTER">
											<Offset>
												<AbsDimension x="0" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>
			</Frame>


			<Frame name="TipBuddy_OptionsFrame_Compact_Options" hidden="true" inherits="OptionFrameBoxTemplate" frameStrata="DIALOG" toplevel="true">
				<Size>
					<AbsDimension x="220" y="320"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="40" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:SetBackdropBorderColor(0.4, 0.4, 0.4);
						this:SetBackdropColor(0.15, 0.15, 0.15);
					</OnLoad>
				</Scripts>
				<Frames>

					<Slider name="TipBuddy_OptionsFrame_Slider1" inherits="TipBuddy_SliderWithText_Template">
						<Anchors>
							<Anchor point="CENTER">
								<Offset>
									<AbsDimension x="-4" y="-36"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Slider>				

					<Slider name="TipBuddy_OptionsFrame_Slider2" inherits="TipBuddy_SliderWithText_Template">
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_Slider1" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-25"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Slider>
					<Slider name="TipBuddy_OptionsFrame_Slider3" inherits="TipBuddy_SliderWithText_Template">
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_Slider2" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-25"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Slider>
					<Frame name="TipBuddy_OptionsFrame_CompactOptionsTitle">
						<Size>
							<AbsDimension x="210" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOM" relativePoint="TOP">
								<Offset>
									<AbsDimension x="0" y="-4"/>
								</Offset>
							</Anchor>
						</Anchors>			
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="8"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="8"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="2" right="2" top="2" bottom="2"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer>
								<FontString name="$parentText" inherits="GameFontHighlight" text="COMPACT ONLY OPTIONS">
									<Anchors>
										<Anchor point="CENTER">
											<Offset>
												<AbsDimension x="0" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.4, 0.4, 0.4);
								this:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>
			</Frame>




			<Button name="TipBuddy_OptionsFrameApply" inherits="GameMenuButtonTemplate" text="Apply">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-20" y="16"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TipBuddy_OptionsFrame_OnSave();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="TipBuddy_OptionsFrameCancel" inherits="GameMenuButtonTemplate" text="Cancel">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT" relativeTo="TipBuddy_OptionsFrameApply" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TipBuddy_ToggleOptionsFrame();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="TipBuddy_OptionsFrameOkay" inherits="GameMenuButtonTemplate" text="Okay">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT" relativeTo="TipBuddy_OptionsFrameCancel" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-2" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TipBuddy_OptionsFrame_OnSave();
						TipBuddy_ToggleOptionsFrame();
					</OnClick>
				</Scripts>
			</Button>

	<!-- SIDE TAB BUTTONS -->
			<Button name="TipBuddy_OptionsTabButton_Players" inherits="GameMenuButtonTemplate" text="Players">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="14" y="-38"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TipBuddy_HideOptionPanels();
						PlaySound("igMainMenuOptionCheckBoxOn");
						TipBuddy_OptionsFrame_PlayersFrame:Show();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="TipBuddy_OptionsTabButton_NPCs" inherits="GameMenuButtonTemplate" text="NPCs">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_Players" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TipBuddy_HideOptionPanels();
						PlaySound("igMainMenuOptionCheckBoxOn");
						TipBuddy_OptionsFrame_NPCsFrame:Show();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="TipBuddy_OptionsTabButton_Pets" inherits="GameMenuButtonTemplate" text="Pets">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_NPCs" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TipBuddy_HideOptionPanels();
						PlaySound("igMainMenuOptionCheckBoxOn");
						TipBuddy_OptionsFrame_PetsFrame:Show();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="TipBuddy_OptionsTabButton_CORPSE" inherits="GameMenuButtonTemplate" text="Corpse">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_Pets" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TipBuddy_HideOptionPanels();
						PlaySound("igMainMenuOptionCheckBoxOn");
						TipBuddy_OptionsFrame_CORPSEFrame:Show();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="TipBuddy_OptionsTabButton_General" inherits="GameMenuButtonTemplate" text="General">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_CORPSE" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-32"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TipBuddy_HideOptionPanels();
						PlaySound("igMainMenuOptionCheckBoxOn");
						TipBuddy_OptionsFrame_General_Options:Show();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="TipBuddy_OptionsTabButton_Anchoring" inherits="GameMenuButtonTemplate" text="Anchoring">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_General" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TipBuddy_HideOptionPanels();
						PlaySound("igMainMenuOptionCheckBoxOn");
						TipBuddy_OptionsFrame_Anchoring_Options:Show();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="TipBuddy_OptionsTabButton_Compact" inherits="GameMenuButtonTemplate" text="Compact">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_Anchoring" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TipBuddy_HideOptionPanels();
						PlaySound("igMainMenuOptionCheckBoxOn");
						TipBuddy_OptionsFrame_Compact_Options:Show();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="TipBuddy_ShowColorsButton" inherits="GameMenuButtonTemplate" text="Text Colors">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_Compact" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-32"/>
						</Offset>
					</Anchor>
				</Anchors>

				<NormalText name="$parentText" inherits="TBGameFontNormal"/>
				<DisabledText inherits="TBGameFontDisable"/>
				<HighlightText inherits="TBGameFontHighlight"/>
				<NormalTexture inherits="UIPanelButtonUpTexture"/>
				<PushedTexture inherits="UIPanelButtonDownTexture"/>
				<DisabledTexture inherits="UIPanelButtonDisabledTexture"/>
				<HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
				<Scripts>
					<OnClick>
						TipBuddy_ColorOptionsFrame:Show();
						PlaySound("igMainMenuOptionCheckBoxOn");
						TipBuddy_ToggleOptionsFrame();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
						GameTooltip:SetText( TB_OPTION_COLORTEXTBUTTON_TOOLTIP, nil, nil, nil, nil, 1);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
			<Button name="TipBuddy_ShowTextVars" inherits="GameMenuButtonTemplate" text="Show Vars">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativeTo="TipBuddy_ShowColorsButton" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-16"/>
						</Offset>
					</Anchor>
				</Anchors>
				<NormalText name="$parentText" inherits="TBGameFontNormal"/>
				<DisabledText inherits="TBGameFontDisable"/>
				<HighlightText inherits="TBGameFontHighlight"/>
				<NormalTexture inherits="UIPanelButtonUpTexture"/>
				<PushedTexture inherits="UIPanelButtonDownTexture"/>
				<DisabledTexture inherits="UIPanelButtonDisabledTexture"/>
				<HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
				<Scripts>
					<OnClick>
						if (TB_TextVariablesFrame:IsVisible()) then
							TB_TextVariablesFrame:Hide();
							TipBuddy_ShowTextVars:SetText("Show Vars");
						else
							TB_TextVariablesFrame:Show();
							TipBuddy_ShowTextVars:SetText("Hide Vars");
						end
					</OnClick>
				</Scripts>
			</Button>
			<Button name="TipBuddy_OptionsFrameResetVars" inherits="GameMenuButtonTemplate" text="Reset All">
				<Size>
					<AbsDimension x="80" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativeTo="TipBuddy_ShowTextVars" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-64"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TipBuddy_ClickResetVarsButton();
					</OnClick>
				</Scripts>
			</Button>

		</Frames>
	</Frame>







	<Frame name="TipBuddy_ColorOptionsFrame" parent="UIParent" enableMouse="true" enableKeyboard="true" hidden="true">
		<Size>
			<AbsDimension x="572" y="464"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" />
		</Anchors>
		<Scripts>
			<OnLoad>
				TipBuddy_OptionsFrame_OnLoad();
			</OnLoad>
			<OnKeyDown>
				if ( arg1 == "ESCAPE" ) then
					this:Hide();
					TipBuddy_ToggleOptionsFrame();
				elseif ( arg1 == "ENTER") then
					ChatFrame_OpenChat("", chatFrame);
				elseif ( arg1 == "/") then
					ChatFrame_OpenChat("/", chatFrame);
				elseif ( arg1 == strupper(GetBindingKey("SCREENSHOT"))) then
					RunBinding("SCREENSHOT");
				end
			</OnKeyDown>
		</Scripts>

		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>

		<Layers>
			<Layer level="ARTWORK">
				<Texture name="TipBuddy_ColorOptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="290" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="" inherits="GameFontNormal" text="Text Colors">
					<Anchors>
						<Anchor point="TOP" relativeTo="TipBuddy_ColorOptionsFrameHeader">
							<Offset>
								<AbsDimension x="0" y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>

		<Frames>
			<Frame name="TipBuddy_OptionsFrame_Color_Options" inherits="OptionFrameBoxTemplate" frameStrata="DIALOG" toplevel="true">
				<Size>
					<AbsDimension x="534" y="400"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="40"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:SetBackdropBorderColor(0.4, 0.4, 0.4);
						this:SetBackdropColor(0.15, 0.15, 0.15);
					</OnLoad>
				</Scripts>
				<Frames>

					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text1" inherits="TipBuddy_ColorPickerButtonSml_Template" id="1">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="16" y="-36"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Frame name="TipBuddy_ColorSub_Name" frameStrata="DIALOG" toplevel="true">
						<Size>
							<AbsDimension x="120" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text1" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="2" right="2" top="2" bottom="2"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="" inherits="GameFontNormal" text="|cffffffffNames">
									<Anchors>
										<Anchor point="CENTER"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.6, 0.6, 0.7);
								this:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text2" inherits="TipBuddy_ColorPickerButtonSml_Template" id="2">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text1" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text3" inherits="TipBuddy_ColorPickerButtonSml_Template" id="3">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text2" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text4" inherits="TipBuddy_ColorPickerButtonSml_Template" id="4">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text3" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text5" inherits="TipBuddy_ColorPickerButtonSml_Template" id="5">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text4" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text6" inherits="TipBuddy_ColorPickerButtonSml_Template" id="6">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text15" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text7" inherits="TipBuddy_ColorPickerButtonSml_Template" id="7">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text6" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text8" inherits="TipBuddy_ColorPickerButtonSml_Template" id="8">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text1" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="96" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Frame name="TipBuddy_ColorSub_Guild" frameStrata="DIALOG" toplevel="true">
						<Size>
							<AbsDimension x="120" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text8" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="2" right="2" top="2" bottom="2"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="" inherits="GameFontNormal" text="|cffffffffGuild/Titles">
									<Anchors>
										<Anchor point="CENTER"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.6, 0.6, 0.7);
								this:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text9" inherits="TipBuddy_ColorPickerButtonSml_Template" id="9">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text8" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text10" inherits="TipBuddy_ColorPickerButtonSml_Template" id="10">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text9" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text11" inherits="TipBuddy_ColorPickerButtonSml_Template" id="11">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text10" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text12" inherits="TipBuddy_ColorPickerButtonSml_Template" id="12">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text11" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text13" inherits="TipBuddy_ColorPickerButtonSml_Template" id="13">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text12" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text14" inherits="TipBuddy_ColorPickerButtonSml_Template" id="14">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text13" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text15" inherits="TipBuddy_ColorPickerButtonSml_Template" id="15">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text14" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text16" inherits="TipBuddy_ColorPickerButtonSml_Template" id="16">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text8" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="96" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Frame name="TipBuddy_ColorSub_Level" frameStrata="DIALOG" toplevel="true">
						<Size>
							<AbsDimension x="120" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text16" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="2" right="2" top="2" bottom="2"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="" inherits="GameFontNormal" text="|cffffffffLevel Difficulty">
									<Anchors>
										<Anchor point="CENTER"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.6, 0.6, 0.7);
								this:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text17" inherits="TipBuddy_ColorPickerButtonSml_Template" id="17">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text16" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text18" inherits="TipBuddy_ColorPickerButtonSml_Template" id="18">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text17" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text19" inherits="TipBuddy_ColorPickerButtonSml_Template" id="19">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text18" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text20" inherits="TipBuddy_ColorPickerButtonSml_Template" id="20">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text19" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text21" inherits="TipBuddy_ColorPickerButtonSml_Template" id="21">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text20" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text22" inherits="TipBuddy_ColorPickerButtonSml_Template" id="22">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text16" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="96" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Frame name="TipBuddy_ColorSub_Classes" frameStrata="DIALOG" toplevel="true">
						<Size>
							<AbsDimension x="120" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text22" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="2" right="2" top="2" bottom="2"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="" inherits="GameFontNormal" text="|cffffffffClasses">
									<Anchors>
										<Anchor point="CENTER"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.6, 0.6, 0.7);
								this:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text23" inherits="TipBuddy_ColorPickerButtonSml_Template" id="23">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text22" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text24" inherits="TipBuddy_ColorPickerButtonSml_Template" id="24">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text23" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text25" inherits="TipBuddy_ColorPickerButtonSml_Template" id="25">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text24" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text26" inherits="TipBuddy_ColorPickerButtonSml_Template" id="26">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text25" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text27" inherits="TipBuddy_ColorPickerButtonSml_Template" id="27">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text26" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text28" inherits="TipBuddy_ColorPickerButtonSml_Template" id="28">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text27" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text29" inherits="TipBuddy_ColorPickerButtonSml_Template" id="29">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text28" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text30" inherits="TipBuddy_ColorPickerButtonSml_Template" id="30">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text29" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text31" inherits="TipBuddy_ColorPickerButtonSml_Template" id="31">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text30" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text32" inherits="TipBuddy_ColorPickerButtonSml_Template" id="32">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text7" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-42"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Frame name="TipBuddy_ColorSub_UniqueUnits" frameStrata="DIALOG" toplevel="true">
						<Size>
							<AbsDimension x="120" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text32" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="2" right="2" top="2" bottom="2"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="" inherits="GameFontNormal" text="|cffffffffUnique Units">
									<Anchors>
										<Anchor point="CENTER"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.6, 0.6, 0.7);
								this:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text33" inherits="TipBuddy_ColorPickerButtonSml_Template" id="33">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text32" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text34" inherits="TipBuddy_ColorPickerButtonSml_Template" id="34">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text21" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-32"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Frame name="TipBuddy_ColorSub_Other" frameStrata="DIALOG" toplevel="true">
						<Size>
							<AbsDimension x="120" y="22"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text34" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
							<EdgeSize>
								<AbsValue val="16"/>
							</EdgeSize>
							<TileSize>
								<AbsValue val="16"/>
							</TileSize>
							<BackgroundInsets>
								<AbsInset left="2" right="2" top="2" bottom="2"/>
							</BackgroundInsets>
						</Backdrop>
						<Layers>
							<Layer level="ARTWORK">
								<FontString name="" inherits="GameFontNormal" text="|cffffffffOther">
									<Anchors>
										<Anchor point="CENTER"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								this:SetBackdropBorderColor(0.6, 0.6, 0.7);
								this:SetBackdropColor(0.15, 0.15, 0.15);
							</OnLoad>
						</Scripts>
					</Frame>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text35" inherits="TipBuddy_ColorPickerButtonSml_Template" id="35">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text34" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text36" inherits="TipBuddy_ColorPickerButtonSml_Template" id="36">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text35" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="TipBuddy_OptionsFrame_ColorPicker_Text37" inherits="TipBuddy_ColorPickerButtonSml_Template" id="37">
						<Size>
							<AbsDimension x="32" y="30"/>
						</Size>
						<Anchors>
							<Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text36" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="-2"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>

				</Frames>
			</Frame>

			<Button name="TipBuddy_ColorOptionsFrameOkay" inherits="GameMenuButtonTemplate" text="Okay">
				<Anchors>
					<Anchor point="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="16"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TipBuddy_ColorOptionsFrame:Hide();
						TipBuddy_OptionsFrame_OnSave();
						TipBuddy_ToggleOptionsFrame();
					</OnClick>
				</Scripts>
			</Button>

		</Frames>
	</Frame>


	<!-- THIS IS A HORRIBLE HACK because bliz harcodes the target's tooltip to show on TextStatusBar mouseover  :(   -->
	<Frame name="TipBuddy_TargetFrameBarCover" toplevel="true" parent="TargetFrame">
		<Size>
			<AbsDimension x="121" y="26"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT">
				<Offset>
					<AbsDimension x="-106" y="-41"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnEnter>
					<!-- TIPBUDDY -->
				TipBuddy.unitframe = 1;
				TB_AddMessage("entering unit frame: "..TargetFrame.unit);
				TipBuddy.targetType = TipBuddy_TargetInfo_GetTargetType( TargetFrame.unit );

				GameTooltip_SetDefaultAnchor(GameTooltip, UIParent);
				GameTooltip:SetUnit(TargetFrame.unit);
				TipBuddy_SetFrame_Visibility( TipBuddy.targetType, TargetFrame.unit );
				-- hiding health and mana bars because they won't update
				if ( TipBuddy_SavedVars[TipBuddy.targetType].off ~= 0 ) then
					TipBuddy_TargetFrameHealthBar:Hide();
					TipBuddy_TargetFrameManaBar:Hide();
					-- setting frame size again
					TipBuddy_FrameHeights_Initialize(TipBuddy.targetType);
					TipBuddy_SetFrame_Width();
				end

				TipBuddy_ShowRank( TipBuddy.targetType, TargetFrame.unit );
				TipBuddy_SetFrame_BackgroundColor( TipBuddy.targetType, TargetFrame.unit );
				TipBuddy_TargetBuffs_Update( TipBuddy.targetType, TargetFrame.unit );

			</OnEnter>
			<OnLeave>
				UnitFrame_OnLeave();
				<!-- GameTooltip:Hide(); -->
			</OnLeave>
		</Scripts>
		<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
	</Frame>

	<!-- MY COLOR PICKER -->
	<ColorSelect name="TBColorPickerFrame" frameStrata="DIALOG" toplevel="true" parent="UIParent" enableMouse="true" enableKeyboard="true" hidden="true">
		<Size>
			<AbsDimension x="365" y="200"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="TBColorSwatch">
					<Size>
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="225" y="-32"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Color r="1.0" g="1.0" b="1.0" a="1.0"/>
				</Texture>
				<Texture name="TBColorPickerFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="256" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="COLOR_PICKER">
					<Anchors>
						<Anchor point="TOP" relativeTo="TBColorPickerFrameHeader">
							<Offset>
								<AbsDimension x="0" y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="TipBuddy_ColorOptionsFrame_Cover" enableMouse="true">
				<Size>
					<AbsDimension x="600" y="500"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER" />
				</Anchors>
				<Scripts>
					<OnLoad>
						this:SetFrameLevel(TBColorPickerFrame:GetFrameLevel() - 1);
					</OnLoad>
				</Scripts>
			</Frame>
			<Button name="TBColorPickerCancelButton" inherits="GameMenuButtonTemplate" text="CANCEL">
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-10" y="10"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						HideUIPanel(this:GetParent());
						if ( TBColorPickerFrame.cancelFunc ) then
							TBColorPickerFrame.cancelFunc(TBColorPickerFrame.previousValues);
						end
					</OnClick>
				</Scripts>
			</Button>
			<Button name="TBColorPickerOkayButton" inherits="GameMenuButtonTemplate" text="OKAY">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="TBColorPickerCancelButton" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						HideUIPanel(this:GetParent());
						TBColorPickerFrame.func();
						if ( TBColorPickerFrame.opacityFunc ) then
							TBColorPickerFrame.opacityFunc();
						end
						TipBuddy_Background_SetColor();
						TipBuddy_OptionsFrame_UpdateColorButtons();
						TipBuddy_InitializeTextColors();
					</OnClick>
				</Scripts>
			</Button>
			<Slider name="TBOpacitySliderFrame" orientation="VERTICAL" minValue="0" maxValue="1" valueStep="0.05" defaultValue="1">
				<Size>
					<AbsDimension x="16" y="128"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="TBColorSwatch" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="32" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
					<EdgeSize>
						<AbsValue val="8"/>
					</EdgeSize>
					<TileSize>
						<AbsValue val="8"/>
					</TileSize>
					<BackgroundInsets>
						<AbsInset left="3" right="3" top="6" bottom="6"/>
					</BackgroundInsets>
				</Backdrop>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" inherits="GameFontNormalSmall">
							<Anchors>
								<Anchor point="BOTTOM" relativePoint="TOP"/>
							</Anchors>
						</FontString>
						<FontString inherits="GameFontHighlightSmall" text="0%">
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="2" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString inherits="GameFontHighlightSmall" text="100%">
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
									<Offset>
										<AbsDimension x="-2" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentTextUpdate" inherits="GameFontHighlightSmall" text="Alpha">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="4" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnValueChanged>
						if ( TBColorPickerFrame.opacityFunc ) then
							TBColorPickerFrame.opacityFunc();
						end
					</OnValueChanged>
					<OnUpdate>
						if ( this.updatetext ) then
							<!-- we should cap this somehow ("%.2f")? ( format("%.2f", ( this:GetValue() ) ) ) -->
							this.updatetext:SetText( "Alpha:\n"..(format("%.0f", ( ((this:GetValue() - 1)*-100) ) )).."%" ); 
							return;
						end
						this.updatetext = getglobal( this:GetName().."TextUpdate");
					</OnUpdate>
				</Scripts>
				<ThumbTexture file="Interface\Buttons\UI-SliderBar-Button-Vertical">
					<Size>
						<AbsDimension x="32" y="32"/>
					</Size>
				</ThumbTexture>
			</Slider>
		</Frames>
		<Scripts>
			<OnShow>
				this:Raise();
				if ( this.hasOpacity ) then
					TBOpacitySliderFrame:Show();
					TBOpacitySliderFrame:SetValue(this.opacity);
					this:SetWidth(365);
				else
					TBOpacitySliderFrame:Hide();
					this:SetWidth(305);
				end
				PlaySound("gsTitleOptionOK");
			</OnShow>
			<OnHide>
				PlaySound("gsTitleOptionOK");
			</OnHide>
			<OnColorSelect>
				TBColorSwatch:SetTexture(arg1, arg2, arg3);
				if ( this.func ) then
					this.func();
				end
			</OnColorSelect>
			<OnKeyDown>
				if (arg1 == "ESCAPE") then
					HideUIPanel(this);
					if ( TBColorPickerFrame.cancelFunc ) then
						TBColorPickerFrame.cancelFunc(TBColorPickerFrame.previousValues);
					end
				end
			</OnKeyDown>
		</Scripts>
		<ColorWheelTexture name="TBColorPickerWheel">
			<Size>
				<AbsDimension x="128" y="128"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="16" y="-32"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ColorWheelTexture>
		<ColorWheelThumbTexture file="Interface\Buttons\UI-ColorPicker-Buttons">
			<Size>
				<AbsDimension x="10" y="10"/>
			</Size>
			<TexCoords left="0" right="0.15625" top="0" bottom="0.625"/>
		</ColorWheelThumbTexture>
		<ColorValueTexture>
			<Size>
				<AbsDimension x="32" y="128"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="TBColorPickerWheel" relativePoint="RIGHT">
					<Offset>
						<AbsDimension x="24" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ColorValueTexture>
		<ColorValueThumbTexture file="Interface\Buttons\UI-ColorPicker-Buttons">
			<Size>
				<AbsDimension x="48" y="14"/>
			</Size>
			<TexCoords left="0.25" right="1.0" top="0" bottom="0.875"/>
		</ColorValueThumbTexture>
	</ColorSelect>

	<!-- MY COLOR PICKER_Text -->
	<ColorSelect name="TBColorPickerFrame_Text" frameStrata="DIALOG" toplevel="true" parent="UIParent" enableMouse="true" enableKeyboard="true" hidden="true">
		<Size>
			<AbsDimension x="365" y="200"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="TBColorSwatch_Text">
					<Size>
						<AbsDimension x="32" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="225" y="-32"/>
							</Offset>
						</Anchor>
					</Anchors>
					<Color r="1.0" g="1.0" b="1.0" a="1.0"/>
				</Texture>
				<Texture name="TBColorPickerFrameHeader_Text" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="256" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="COLOR_PICKER">
					<Anchors>
						<Anchor point="TOP" relativeTo="TBColorPickerFrameHeader_Text">
							<Offset>
								<AbsDimension x="0" y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="TipBuddy_ColorOptionsFrame_Cover_Text" enableMouse="true">
				<Size>
					<AbsDimension x="600" y="500"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER" />
				</Anchors>
				<Scripts>
					<OnLoad>
						this:SetFrameLevel(TBColorPickerFrame_Text:GetFrameLevel() - 1);
					</OnLoad>
				</Scripts>
			</Frame>
			<Button name="TBColorPickerCancelButton_Text" inherits="GameMenuButtonTemplate" text="CANCEL">
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-10" y="10"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						HideUIPanel(this:GetParent());
						if ( TBColorPickerFrame_Text.cancelFunc ) then
							TBColorPickerFrame_Text.cancelFunc(TBColorPickerFrame_Text.previousValues);
						end
					</OnClick>
				</Scripts>
			</Button>
			<Button name="TBColorPickerOkayButton_Text" inherits="GameMenuButtonTemplate" text="OKAY">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="TBColorPickerCancelButton_Text" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						HideUIPanel(this:GetParent());
						TBColorPickerFrame_Text.func();
						if ( TBColorPickerFrame_Text.opacityFunc ) then
							TBColorPickerFrame_Text.opacityFunc();
						end
						TipBuddy_Background_SetColor_Text();
						TipBuddy_OptionsFrame_UpdateColorButtons_Text();
						TipBuddy_InitializeTextColors();
					</OnClick>
				</Scripts>
			</Button>
			<Slider name="TBOpacitySliderFrame_Text" orientation="VERTICAL" minValue="0" maxValue="1" valueStep="0.05" defaultValue="1">
				<Size>
					<AbsDimension x="16" y="128"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="TBColorSwatch_Text" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="32" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
					<EdgeSize>
						<AbsValue val="8"/>
					</EdgeSize>
					<TileSize>
						<AbsValue val="8"/>
					</TileSize>
					<BackgroundInsets>
						<AbsInset left="3" right="3" top="6" bottom="6"/>
					</BackgroundInsets>
				</Backdrop>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentText" inherits="GameFontNormalSmall">
							<Anchors>
								<Anchor point="BOTTOM" relativePoint="TOP"/>
							</Anchors>
						</FontString>
						<FontString inherits="GameFontHighlightSmall" text="0%">
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="2" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString inherits="GameFontHighlightSmall" text="100%">
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
									<Offset>
										<AbsDimension x="-2" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnValueChanged>
						if ( TBColorPickerFrame_Text.opacityFunc ) then
							TBColorPickerFrame_Text.opacityFunc();
						end
					</OnValueChanged>
				</Scripts>
				<ThumbTexture file="Interface\Buttons\UI-SliderBar-Button-Vertical">
					<Size>
						<AbsDimension x="32" y="32"/>
					</Size>
				</ThumbTexture>
			</Slider>
		</Frames>
		<Scripts>
			<OnShow>
				this:Raise();
				if ( this.hasOpacity ) then
					TBOpacitySliderFrame_Text:Show();
					TBOpacitySliderFrame_Text:SetValue(this.opacity);
					this:SetWidth(365);
				else
					TBOpacitySliderFrame_Text:Hide();
					this:SetWidth(305);
				end
				PlaySound("gsTitleOptionOK");
			</OnShow>
			<OnHide>
				PlaySound("gsTitleOptionOK");
			</OnHide>
			<OnColorSelect>
				TBColorSwatch_Text:SetTexture(arg1, arg2, arg3);
				if ( this.func ) then
					this.func();
				end
			</OnColorSelect>
			<OnKeyDown>
				if (arg1 == "ESCAPE") then
					HideUIPanel(this);
					if ( TBColorPickerFrame_Text.cancelFunc ) then
						TBColorPickerFrame_Text.cancelFunc(TBColorPickerFrame_Text.previousValues);
					end
				end
			</OnKeyDown>
		</Scripts>
		<ColorWheelTexture name="TBColorPickerWheel_Text">
			<Size>
				<AbsDimension x="128" y="128"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="16" y="-32"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ColorWheelTexture>
		<ColorWheelThumbTexture file="Interface\Buttons\UI-ColorPicker-Buttons">
			<Size>
				<AbsDimension x="10" y="10"/>
			</Size>
			<TexCoords left="0" right="0.15625" top="0" bottom="0.625"/>
		</ColorWheelThumbTexture>
		<ColorValueTexture>
			<Size>
				<AbsDimension x="32" y="128"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="TBColorPickerWheel" relativePoint="RIGHT">
					<Offset>
						<AbsDimension x="24" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ColorValueTexture>
		<ColorValueThumbTexture file="Interface\Buttons\UI-ColorPicker-Buttons">
			<Size>
				<AbsDimension x="48" y="14"/>
			</Size>
			<TexCoords left="0.25" right="1.0" top="0" bottom="0.875"/>
		</ColorValueThumbTexture>
	</ColorSelect>

		<!-- EXTRA CHECKBUTTONS -->
	<CheckButton name="TB_Op_Check66" inherits="TipBuddy_CheckButtonTemplate" id="66">
	</CheckButton>
	<CheckButton name="TB_Op_Check67" inherits="TipBuddy_CheckButtonTemplate" id="67">
	</CheckButton>
	<CheckButton name="TB_Op_Check68" inherits="TipBuddy_CheckButtonTemplate" id="68">
	</CheckButton>
	<CheckButton name="TB_Op_Check69" inherits="TipBuddy_CheckButtonTemplate" id="69">
	</CheckButton>
	
	<Frame name="TB_ExtraStuff" hidden="true" parent="UIParent">
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="16"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		<Size>
			<AbsDimension x="128" y="128"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Frames>
			<Button name="TipBuddy_OptionsFrame_ColorPicker10" toplevel="true" frameStrata="HIGH" inherits="TipBuddy_ColorPickerButton_Template" id="10">
				<Size>
					<AbsDimension x="32" y="30"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="TipBuddy_OptionsFrame_ColorPicker20" toplevel="true" frameStrata="HIGH" inherits="TipBuddy_ColorPickerButton_Template" id="20">
				<Size>
					<AbsDimension x="32" y="30"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
	</Frame>
</Ui>