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

📄 applebar.xml

📁 时间太紧了
💻 XML
📖 第 1 页 / 共 5 页
字号:
		</Layers>
	</Frame>
	<Frame name="AppleBarButton45CooldownCountFrame" parent="AppleBarButton45" hidden="true">
        <Size>
            <AbsDimension x="32" y="32"/>
        </Size>
        <Anchors>
            <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER">
                <Offset>
                    <AbsDimension x="0" y="0"/>
                </Offset>
            </Anchor>
        </Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="AppleBarButton45CooldownCount" inherits="GameFontNormalLarge" hidden="true" justifyH="CENTER">
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
	<Frame name="AppleBarButton46CooldownCountFrame" parent="AppleBarButton46" hidden="true">
        <Size>
            <AbsDimension x="32" y="32"/>
        </Size>
        <Anchors>
            <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER">
                <Offset>
                    <AbsDimension x="0" y="0"/>
                </Offset>
            </Anchor>
        </Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="AppleBarButton46CooldownCount" inherits="GameFontNormalLarge" hidden="true" justifyH="CENTER">
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
	<Frame name="AppleBarButton47CooldownCountFrame" parent="AppleBarButton47" hidden="true">
        <Size>
            <AbsDimension x="32" y="32"/>
        </Size>
        <Anchors>
            <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER">
                <Offset>
                    <AbsDimension x="0" y="0"/>
                </Offset>
            </Anchor>
        </Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="AppleBarButton47CooldownCount" inherits="GameFontNormalLarge" hidden="true" justifyH="CENTER">
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
	<Frame name="AppleBarButton48CooldownCountFrame" parent="AppleBarButton48" hidden="true">
        <Size>
            <AbsDimension x="32" y="32"/>
        </Size>
        <Anchors>
            <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER">
                <Offset>
                    <AbsDimension x="0" y="0"/>
                </Offset>
            </Anchor>
        </Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="AppleBarButton48CooldownCount" inherits="GameFontNormalLarge" hidden="true" justifyH="CENTER">
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>

	<Frame name="AppleBarOptionsFrame" frameStrata="LOW" toplevel="true" enableMouse="true" movable="true" hidden="true" parent="UIParent">
		<Size>
			<AbsDimension x="270" y="360" />
		</Size>

		<Anchors>
			<Anchor point="CENTER" />
		</Anchors>

		<TitleRegion setAllPoints="true"/>

		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-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>

		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentText" inherits="GameFontNormal" text="AppleBar设置">
					<Anchors>
					<Anchor point="TOP">
						<Offset>
						<AbsDimension x="0" y="-8"/>
						</Offset>
					</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parent1String" inherits="GameFontNormal" justifyH="LEFT" text="按钮 1-12对应的ID序列:">
					<Size>
						<AbsDimension x="180" y="22"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="10" y="-95"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parent2String" inherits="GameFontNormal" justifyH="LEFT" text="按钮13-24对应的ID序列:">
					<Size>
						<AbsDimension x="180" y="22"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="10" y="-120"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parent3String" inherits="GameFontNormal" justifyH="LEFT" text="按钮25-36对应的ID序列:">
					<Size>
						<AbsDimension x="180" y="22"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="10" y="-145"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parent4String" inherits="GameFontNormal" justifyH="LEFT" text="按钮37-48对应的ID序列:">
					<Size>
						<AbsDimension x="180" y="22"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="10" y="-170"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentClose" inherits="GameMenuButtonTemplate" text="X">
				<Size>
					<AbsDimension x="20" y="20" />
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" relativeTo="$parent">
					<Offset>
						<AbsDimension x="-10" y="-10" />
					</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						AppleBarOptionsFrame:Hide();
					</OnClick>
				</Scripts>
			</Button>

			<CheckButton name="$parentLockIcon" inherits="OptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" >
					<Offset>
						<AbsDimension x="5" y="-20" />
					</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					 <OnLoad>
						AppleBar_ThisSetText("锁定技能图标");
					</OnLoad>
					<OnClick>
						AppleBarSaved.LockIcon = (this:GetChecked() == 1);
					</OnClick>
					<OnShow>
						if (AppleBarSaved.LockIcon) then
							this:SetChecked(1);
						else
							this:SetChecked(0);
						end
					</OnShow>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentNumber" inherits="OptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" >
					<Offset>
						<AbsDimension x="5" y="-45" />
					</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					 <OnLoad>
						AppleBar_ThisSetText("显示物品数量");
					</OnLoad>
					<OnClick>
						AppleBarSaved.number = (this:GetChecked() == 1);
						if(AppleBarSaved.number) then
							setcount()
						else
							setcount(1)
						end
					</OnClick>
					<OnShow>
						if (AppleBarSaved.number) then
							this:SetChecked(1);
						else
							this:SetChecked(0);
						end
					</OnShow>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentShowGrid" inherits="OptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" >
					<Offset>
						<AbsDimension x="5" y="-70" />
					</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					 <OnLoad>
						AppleBar_ThisSetText("按钮智能隐藏");
					</OnLoad>
					<OnClick>
						if( this:GetChecked() == 1 ) then
							AppleBarCommand("showgrid off");
						else							
							AppleBarCommand("showgrid on");
						end
					</OnClick>
					<OnShow>
						if (AppleBarSaved.showgrid == 1) then
							this:SetChecked(0);
						else
							this:SetChecked(1);
						end
					</OnShow>
				</Scripts>
			</CheckButton>				
					<Frame name="Apple1DropDown" inherits="UIDropDownMenuTemplate" hidden="false">
						<Size>
							<AbsDimension x="40" y="16"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="-15" y="-95"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								Apple1DropDown_OnShow();
							</OnShow>
							<OnClick> 
								Apple1DropDown_OnClick();
							</OnClick>
						</Scripts>
					</Frame>
					<Frame name="Apple2DropDown" inherits="UIDropDownMenuTemplate" hidden="false">
						<Size>
							<AbsDimension x="40" y="16"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="-15" y="-120"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								Apple2DropDown_OnShow();
							</OnShow>
							<OnClick> 
								Apple2DropDown_OnClick();
							</OnClick>
						</Scripts>
					</Frame>
					<Frame name="Apple3DropDown" inherits="UIDropDownMenuTemplate" hidden="false">
						<Size>
							<AbsDimension x="40" y="16"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="-15" y="-145"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								Apple3DropDown_OnShow();
							</OnShow>
							<OnClick> 
								Apple3DropDown_OnClick();
							</OnClick>
						</Scripts>
					</Frame>
					<Frame name="Apple4DropDown" inherits="UIDropDownMenuTemplate" hidden="false">
						<Size>
							<AbsDimension x="40" y="16"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="-15" y="-170"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								Apple4DropDown_OnShow();
							</OnShow>
							<OnClick> 
								Apple4DropDown_OnClick();
							</OnClick>
						</Scripts>
					</Frame>
					<Button name="$parentHide" inherits="GameMenuButtonTemplate" text="隐藏全部按钮">
						<Size>
							<AbsDimension x="120" y="30" />
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="-10" y="-220"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								AppleBarCommand("hide button=1-48");
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parentShow" inherits="GameMenuButtonTemplate" text="显示全部按钮">
						<Size>
							<AbsDimension x="120" y="30" />
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="10" y="-220"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								AppleBarCommand("show button=1-48");
							</OnClick>
						</Scripts>
					</Button>
					<Slider name="AppleBarScaleSlider" inherits="OptionsSliderTemplate">
						<Size>
							<AbsDimension x="250" y="20"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="10" y="-280"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								scale_onshow();
							</OnShow>
							<OnValueChanged>
								scale_onvaluechange();
							</OnValueChanged>
						</Scripts>
					</Slider>
		</Frames>
	</Frame>
</Ui>

⌨️ 快捷键说明

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