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

📄 options.xml

📁 时间太紧了
💻 XML
📖 第 1 页 / 共 3 页
字号:
<!-- MikeyHealthBar V0.1 -->
<!-- Options Pane Definition -->

<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/"> 
	<Script file="options.lua"/>
	
	<!-- CHECKBUTTON TEMPLATE -->
	<CheckButton name="DSCTCheckTemplate" inherits="UICheckButtonTemplate" virtual="true">
		<HitRectInsets>
			<AbsInset left="0" right="0" top="0" bottom="0"/>
		</HitRectInsets>
		<Scripts>
			<OnClick>				
				DSCT_OptionsCheckButtonOnClick(this:GetParent():GetName(),this:GetName());
			</OnClick>
			<OnEnter>
				if ( this.tooltipText ) then
					GameTooltip_AddNewbieTip(this.tooltipText, 1.0, 1.0, 1.0);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</CheckButton>
	
	<!-- SLIDER TEMPLATE -->
	<Slider name="DSCTSliderTemplate" inherits="OptionsSliderTemplate" virtual="true">
		<Scripts>
			<OnEnter>
				if ( this.tooltipText ) then
					GameTooltip_AddNewbieTip(this.tooltipText, 1.0, 1.0, 1.0);
				end
			</OnEnter>
			<OnValueChanged>
				DSCT_OptionsSliderOnValueChanged();
			</OnValueChanged>
			<OnMouseUp>
				DSCT_OptionsSliderMouseUp();
			</OnMouseUp>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Slider >
	
	<Frame name="DSCTColorPickerTemplate" virtual="true">		
		<Frames>
			<Button name="$parent_ColorSwatch">
				<Size>
					<AbsDimension x="20" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parent_SwatchBg">
							<Size>
								<AbsDimension x="18" y="18"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Color r="1.0" g="1.0" b="1.0"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick>
						DSCT_OpenColorPicker(this:GetParent());
					</OnClick>
					<OnEnter>
						getglobal(this:GetName().."_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
					</OnEnter>
					<OnLeave>
						getglobal(this:GetName().."_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
					</OnLeave>
				</Scripts>
				<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
			</Button>			
		</Frames>
	</Frame>
	
	<Frame name="DSCTColorPickerExTemplate" inherits="DSCTColorPickerTemplate" virtual="true">
		<Size>
			<AbsDimension x="160" y="22"/>
		</Size>		
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parent_Text" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="30" y="0" />
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>			
		</Layers>
	</Frame>
	
	<Frame name="DSCTListTemplate" virtual="true" hidden="false">
		<Size>
			<AbsDimension x="140" y="50"/>
		</Size>		
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parent_TileText" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parent" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="0" />
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parent_Text" inherits="GameFontNormal">
					<Color r="1.0" g="1.0" b="1.0"/>
					<Anchors>
						<Anchor point="TOP" relativeTo="$parent_TileText" relativePoint="BOTTOM">
							<Offset>
								<AbsDimension x="0" y="-5" />
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>			
		</Layers>
		<Scripts>
			<OnEnter>
				if ( this.tooltipText ) then
					GameTooltip_AddNewbieTip(this.tooltipText, 1.0, 1.0, 1.0);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<Frames>
			<Button name="$parent_P">
				<Size>
					<AbsDimension x="20" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER" relativeTo="$parent_Text" relativePoint="CENTER">
						<Offset>
							<AbsDimension x="-55" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						DSCT_ButtonToggle(this:GetName(),-1);
					</OnClick>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
				<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
				<HighlightTexture file="Interface\Buttons\GlowStar" alphaMode="ADD"/>
			</Button>
			<Button name="$parent_N">
				<Size>
					<AbsDimension x="20" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER" relativeTo="$parent_Text" relativePoint="CENTER">
						<Offset>
							<AbsDimension x="55" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						DSCT_ButtonToggle(this:GetName(),1);
					</OnClick>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
				<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
				<HighlightTexture file="Interface\Buttons\GlowStar" alphaMode="ADD"/>
			</Button>
		</Frames>
	</Frame>		
		
	<!-- EVENT TEMPLATE -->
	<Frame name="DSCTEventOptionTemplate" inherits="DSCTColorPickerTemplate" virtual="true">
		<Size>
			<AbsDimension x="160" y="22"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parent_Text" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent">
							<Offset>
								<AbsDimension x="55" y="0" />
							</Offset>
						</Anchor>
					</Anchors>	
				</FontString>				
			</Layer>			
		</Layers>
		<Frames>
			<Button name="$parent_Button" inherits="GameMenuButtonTemplate" text="A">
				<Size>
					<AbsDimension x="22" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent_ColorSwatch" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>						
						DSCT_Event_Button_Click(this:GetName());
					</OnClick>
					<OnEnter>
						GameTooltip_AddNewbieTip(this.tooltipText, 1.0, 1.0, 1.0);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
		</Frames>		
	</Frame>		
	
	<!-- MAIN OPTION FRAME -->
	<Frame name="DSCTOptions" toplevel="false" frameStrata="MEDIUM" movable="true" enableMouse="true" hidden="true" parent="UIParent">
		<Size>
			<AbsDimension x="550" y="435"/>
		</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" />	
				<Size>
					<AbsDimension x="128" y="17" />
				</Size>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32" />
			</TileSize>
			<EdgeSize>
				<AbsValue val="32" />
			</EdgeSize>
		</Backdrop>
		
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="DSCTFrameTitle" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="360" y="64" />
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12" />
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="DSCT_MAIN_OPTION">
					<Anchors>
						<Anchor point="TOP" relativeTo="DSCTOptions">
							<Offset>
								<AbsDimension x="0" y="-3" />
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			
		</Layers>
		
		<Frames>		
			<!-- EVENTS OPTION FRAME -->
			<Frame name="DSCTOptions_EventsFrame" inherits="OptionFrameBoxTemplate">
				<Size>
					<AbsDimension x="340" y="360"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="180" y="-50"/>
						</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="DSCTOptions_EventsFrameTitle">
						<Size>
							<AbsDimension x="140" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="100" 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="DSCT_EVENT_OPTION">
									<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="SHOWHIT" inherits="DSCTEventOptionTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="DSCTOptions_EventsFrame" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="20" y="-15" />
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="SHOWMISS" inherits="DSCTEventOptionTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeTo="SHOWHIT" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="-30" />
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="SHOWDODGE" inherits="DSCTEventOptionTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeTo="SHOWMISS" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="-30" />
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="SHOWPARRY" inherits="DSCTEventOptionTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeTo="SHOWDODGE" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="-30" />
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="SHOWBLOCK" inherits="DSCTEventOptionTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeTo="SHOWPARRY" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="-30" />
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="SHOWRESIST" inherits="DSCTEventOptionTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeTo="SHOWBLOCK" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="-30" />
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="SHOWABSORB" inherits="DSCTEventOptionTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeTo="SHOWRESIST" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="-30" />
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="SHOWCOMBATIN" inherits="DSCTEventOptionTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeTo="SHOWABSORB" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="-30" />
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="SHOWCOMBATOUT" inherits="DSCTEventOptionTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeTo="SHOWCOMBATIN" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="-30" />
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="SHOWSPELLCRIT" inherits="DSCTEventOptionTemplate">
						<Anchors>
							<Anchor point="LEFT" relativeTo="SHOWCOMBATOUT" relativePoint="LEFT">
								<Offset>
									<AbsDimension x="0" y="-30" />
								</Offset>
							</Anchor>
						</Anchors>

⌨️ 快捷键说明

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