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

📄 tipbuddy.xml

📁 时间太紧了
💻 XML
📖 第 1 页 / 共 5 页
字号:
<!--
//////////////////////////////////////////////
//
//		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\FZLBJW.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\FZLBJW.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\FZLBJW.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\FZLBJW.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\FZLBJW.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());

⌨️ 快捷键说明

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