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

📄 decursive.xml

📁 时间太紧了
💻 XML
📖 第 1 页 / 共 5 页
字号:
			<OnShow>
				DecursiveListFrameWarrior:SetText(DCR_AB_WARRIOR);
				DecursiveListFramePriest:SetText(DCR_AB_PRIEST);
				DecursiveListFrameMage:SetText(DCR_AB_MAGE);
				DecursiveListFrameWarlock:SetText(DCR_AB_WARLOCK);
				DecursiveListFrameHunter:SetText(DCR_AB_HUNTER);
				DecursiveListFrameRogue:SetText(DCR_AB_ROGUE);
				DecursiveListFrameDruid:SetText(DCR_AB_DRUID);

				local _, faction = UnitFactionGroup("player");
				if (faction == DCR_FACTION_ALLIANCE) then
					DecursiveListFrameOther:SetText(DCR_AB_PALADIN);
					DecursiveListFrameOther.ClassType = "PALADIN";
				else
					DecursiveListFrameOther:SetText(DCR_AB_SHAMAN);
					DecursiveListFrameOther.ClassType = "SHAMAN";
				end
			</OnShow>
		</Scripts>

		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentText" inherits="GameFontNormal" text="Decursive Priority">
					<Anchors>
					<Anchor point="TOP" relativePoint="TOP" relativeTo="$parent">
						<Offset>
							<AbsDimension x="0" y="-5" />
						</Offset>
					</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>

		<Frames>

			<Button name="$parentClear" inherits="GameMenuButtonTemplate" text="C">
				<Size>
					<AbsDimension x="40" y="20" />
				</Size>
				<Anchors>
					<Anchor point="TOP" relativePoint="TOP" relativeTo="$parent">
						<Offset>
							<AbsDimension x="20" y="-20" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
			    	this:SetText(DCR_STR_CLEAR);
					</OnLoad>
					<OnClick>
					if DecursiveListFrame.IsPrio  then
						Dcr_ClearPriorityList();
					else
						Dcr_ClearSkipList();
					end
					</OnClick>
					<OnEnter>
						Dcr_DisplayTooltip(BINDING_NAME_DCRCLEAR);
					</OnEnter>
					<OnLeave>
						DcrDisplay_Tooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>

			<Button name="$parentClose" inherits="GameMenuButtonTemplate" text="X">
				<Size>
					<AbsDimension x="40" y="20" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentClear"/>
				</Anchors>
				<Scripts>
					<OnLoad>
			    	this:SetText(DCR_STR_CLOSE);
					</OnLoad>
					<OnClick>
						DecursiveListFrame:Hide();
						Dcr_AutoAdd = false;
						DecursiveAddTip:Hide();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="$parentSwitchList" inherits="GameMenuButtonTemplate" text="SwitchList">
				<Size>
					<AbsDimension x="100" y="20" />
				</Size>
				<Anchors>
					<Anchor point="BOTTOM" relativePoint="BOTTOM" relativeTo="$parent">
						<Offset>
							<AbsDimension x="0" y="5" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnUpdate>
						if DecursiveListFrame.IsPrio and (this:GetText() ~= DCR_P_TO_S) then
							this:SetText(DCR_P_TO_S);
						elseif (not DecursiveListFrame.IsPrio) and (this:GetText() ~= DCR_S_TO_P) then
							this:SetText(DCR_S_TO_P);
						end
					</OnUpdate>
					<OnLoad>
						this:SetText(DCR_P_TO_S);
					</OnLoad>
					<OnClick>
						Dcr_AutoAdd = false;
						DecursiveAddTip:Hide();
						DecursiveListFrame.IsPrio = not DecursiveListFrame.IsPrio;
						if DecursiveListFrame.IsPrio then
							Dcr_HideSkipIndex();
						else
							Dcr_HidePrioIndex();
						end
					</OnClick>
				</Scripts>
			</Button>

			<Button name="$parentAdd" inherits="GameMenuButtonTemplate" text="+">
				<Size>
					<AbsDimension x="80" y="20" />
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="$parentClear"/>
				</Anchors>
				<Scripts>
					<OnClick>
						Dcr_AutoAdd = not Dcr_AutoAdd;
						if Dcr_AutoAdd then
							DecursiveAddTip:Show();
							if DecursiveListFrame.IsPrio then
								DecursiveAddTipText:SetText(DCR_ADDPRIO_TEXT);
								DecursiveAddTipToTop:Show();
								Dcr_AddTargetToPriorityList();
							else
								DecursiveAddTipText:SetText(DCR_ADDSKIP_TEXT);
								Dcr_AddTargetToSkipList();
							end
						else
							DecursiveAddTip:Hide();
							DecursiveAddTipToTop:Hide();
						end
					</OnClick>
					<OnUpdate>
						if DecursiveAddTip:IsVisible() and (this:GetText() ~= DCR_STR_STOPADD) then
							this:SetText(DCR_STR_STOPADD);
						elseif not DecursiveAddTip:IsVisible() and (this:GetText() ~= DCR_STR_ADD) then
							this:SetText(DCR_STR_ADD);
						end
					</OnUpdate>
					<OnEnter>
						Dcr_DisplayTooltip(DCR_ADDBUTTON_TIP);
					</OnEnter>
					<OnLeave>
						DcrDisplay_Tooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>

			<Slider name="$parentSlider" orientation="VERTICAL" valueStep="1">
				<Size>
					<AbsDimension x="15" y="160"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-5" y="-40"/>
						</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="$parentLow" inherits="GameFontHighlightSmall" text="1">
							<Anchors>
								<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
									<Offset>
										<AbsDimension x="-3" y="-3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentHigh" inherits="GameFontHighlightSmall" text="99">
							<Anchors>
								<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="-3" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<ThumbTexture file="Interface\Buttons\UI-SliderBar-Button-Vertical">
					<Size>
						<AbsDimension x="35" y="35"/>
					</Size>
				</ThumbTexture>
				<Scripts>
					<OnValueChanged>
						if DecursiveListFrame.IsPrio then
							DecursiveListFrame.PrioOffset = this:GetValue();
						else
							DecursiveListFrame.SkipOffset = this:GetValue();
						end
					</OnValueChanged>
				</Scripts>
			</Slider>

			<!--
			快速添加器
			-->
			<Button name="$parentGroup1" inherits="GameMenuButtonTemplate" text="1">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent">
						<Offset>
							<AbsDimension x="10" y="50" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this.GroupNumber = 1;
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentGroup2" inherits="GameMenuButtonTemplate" text="2">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentGroup1">
						<Offset>
							<AbsDimension x="0" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this.GroupNumber = 2;
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentGroup3" inherits="GameMenuButtonTemplate" text="3">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentGroup2">
						<Offset>
							<AbsDimension x="0" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this.GroupNumber = 3;
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentGroup4" inherits="GameMenuButtonTemplate" text="4">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentGroup3">
						<Offset>
							<AbsDimension x="0" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this.GroupNumber = 4;
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentGroup5" inherits="GameMenuButtonTemplate" text="5">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentGroup1">
						<Offset>
							<AbsDimension x="0" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this.GroupNumber = 5;
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentGroup6" inherits="GameMenuButtonTemplate" text="6">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentGroup5">
						<Offset>
							<AbsDimension x="0" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this.GroupNumber = 6;
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentGroup7" inherits="GameMenuButtonTemplate" text="7">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentGroup6">
						<Offset>
							<AbsDimension x="0" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this.GroupNumber = 7;
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentGroup8" inherits="GameMenuButtonTemplate" text="8">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentGroup7">
						<Offset>
							<AbsDimension x="0" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this.GroupNumber = 8;
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>



			<Button name="$parentWarrior" inherits="GameMenuButtonTemplate" text="Wr">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentGroup4">
						<Offset>
							<AbsDimension x="0" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this.ClassType = "WARRIOR";
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentRogue" inherits="GameMenuButtonTemplate" text="Rg">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentGroup8">
						<Offset>
							<AbsDimension x="0" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this.ClassType = "ROGUE";
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentPriest" inherits="GameMenuButtonTemplate" text="Pr">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentWarrior">
						<Offset>
							<AbsDimension x="0" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this.ClassType = "PRIEST";
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentMage" inherits="GameMenuButtonTemplate" text="Mg">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentRogue">
						<Offset>
							<AbsDimension x="0" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this.ClassType = "MAGE";
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentOther" inherits="GameMenuButtonTemplate" text="8c">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentPriest">
						<Offset>
							<AbsDimension x="0" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentWarlock" inherits="GameMenuButtonTemplate" text="Wl">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentMage">
						<Offset>
							<AbsDimension x="0" y="0" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this.ClassType = "WARLOCK";
						Dcr_PopulateButtonPress();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentDruid" inherits="GameMenuButtonTemplate" text="Dr">
				<Size>
					<AbsDimension x="20" y="20" />

⌨️ 快捷键说明

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