⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tipbuddy.xml

📁 时间太紧了
💻 XML
📖 第 1 页 / 共 5 页
字号:
					<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="TIPBUDDY_XML_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">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -