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

📄 tipbuddy.xml

📁 时间太紧了
💻 XML
📖 第 1 页 / 共 5 页
字号:
									</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(TIPBUDDY_XML_SHOWHEALTHTEXT);
										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(TIPBUDDY_XML_SHOWMANATEXT);
										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(TIPBUDDY_XML_SHOWTEXTONLY);
										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" ))
					or (this:GetName() == ( "TipBuddy_OptionsFrame_Slider6" )) ) then
						this.updatetext:SetText( format("%.1f", ( 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

⌨️ 快捷键说明

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