📄 applebar.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/
..\FrameXML\UI.xsd">
<Script file="AppleBar.lua"/>
<Script file="AppleBarFuntion.lua"/>
<CheckButton name="AppleBarButtonTemplate" virtual="true" movable="true">
<Size>
<AbsDimension x="36" y="36"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentIcon"/>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentFlash" file="Interface\Buttons\UI-QuickslotRed" hidden="true"/>
<FontString name="$parentHotKey" inherits="NumberFontNormalSmallGray" justifyH="RIGHT">
<Size>
<AbsDimension x="32" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="2" y="-2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT">
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-2" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="OVERLAY">
<FontString name="$parentName" inherits="GameFontHighlightSmallOutline">
<Size>
<AbsDimension x="36" y="10"/>
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<Texture name="$parentBorder" file="Interface\Buttons\UI-ActionButton-Border" hidden="false" alphaMode="ADD">
<Size>
<AbsDimension x="62" y="62"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Model name="$parentCooldown" inherits="CooldownFrameTemplate">
<Size x="36" y="36"/>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</Model>
</Frames>
<NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2">
<Size>
<AbsDimension x="66" y="66"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</NormalTexture>
<PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
<CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
</CheckButton>
<CheckButton name="AppleBarButton" inherits="AppleBarButtonTemplate" parent="MainMenuBarArtFrame" virtual="true" hidden="false">
<Size>
<AbsDimension x="36" y="36"/>
</Size>
<Scripts>
<OnLoad>
AppleBarButton_OnLoad();
</OnLoad>
<OnShow>
AppleBarButton_Update();
</OnShow>
<OnEvent>
AppleBarButton_OnEvent(event);
</OnEvent>
<OnClick>
if ( IsShiftKeyDown() and not AppleBarSaved["LockIcon"]) then
PickupAction(AppleButton_GetPagedID(this));
else
if ( MacroFrame_SaveMacro ) then
MacroFrame_SaveMacro();
end
UseAction(AppleButton_GetPagedID(this), 1);
end
AppleButton_UpdateState();
</OnClick>
<OnDragStart>
if(IsControlKeyDown()) then
AppleBarMoving(this);
else
if ( not AppleBarSaved["LockIcon"] ) then
PickupAction(AppleButton_GetPagedID(this));
end
AppleButton_UpdateState();
end
</OnDragStart>
<OnReceiveDrag>
PlaceAction(AppleButton_GetPagedID(this));
AppleButton_UpdateState();
</OnReceiveDrag>
<OnEnter>
AppleBarButton_SetTooltip();
</OnEnter>
<OnLeave>
this.updateTooltip = nil;
GameTooltip:Hide();
</OnLeave>
<OnUpdate>
AppleBarButton_OnUpdate(arg1);
</OnUpdate>
<OnDragStop>
this:StopMovingOrSizing();
</OnDragStop>
</Scripts>
</CheckButton>
<CheckButton name="AppleBarButton1" inherits="AppleBarButton" id="1">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-215" Y="176"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton2" inherits="AppleBarButton" id="2">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-176" Y="176"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton3" inherits="AppleBarButton" id="3">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-137" Y="176"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton4" inherits="AppleBarButton" id="4">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-98" Y="176"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton5" inherits="AppleBarButton" id="5">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-59" Y="176"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton6" inherits="AppleBarButton" id="6">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-20" Y="176"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton7" inherits="AppleBarButton" id="7">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="19" Y="176"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton8" inherits="AppleBarButton" id="8">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="58" Y="176"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton9" inherits="AppleBarButton" id="9">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="97" Y="176"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton10" inherits="AppleBarButton" id="10">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="136" Y="176"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton11" inherits="AppleBarButton" id="11">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="175" Y="176"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton12" inherits="AppleBarButton" id="12">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="214" Y="176"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton13" inherits="AppleBarButton" id="13">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-215" Y="137"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton14" inherits="AppleBarButton" id="14">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-176" Y="137"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton15" inherits="AppleBarButton" id="15">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-137" Y="137"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton16" inherits="AppleBarButton" id="16">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-98" Y="137"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton17" inherits="AppleBarButton" id="17">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-59" Y="137"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton18" inherits="AppleBarButton" id="18">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-20" Y="137"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton19" inherits="AppleBarButton" id="19">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="19" Y="137"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton20" inherits="AppleBarButton" id="20">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="58" Y="137"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton21" inherits="AppleBarButton" id="21">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="97" Y="137"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton22" inherits="AppleBarButton" id="22">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="136" Y="137"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton23" inherits="AppleBarButton" id="23">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="175" Y="137"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton24" inherits="AppleBarButton" id="24">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="214" Y="137"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton25" inherits="AppleBarButton" id="25">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-215" Y="98"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton26" inherits="AppleBarButton" id="26">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-176" Y="98"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton27" inherits="AppleBarButton" id="27">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-137" Y="98"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton28" inherits="AppleBarButton" id="28">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-98" Y="98"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton29" inherits="AppleBarButton" id="29">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-59" Y="98"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton30" inherits="AppleBarButton" id="30">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="-20" Y="98"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="AppleBarButton31" inherits="AppleBarButton" id="31">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="CENTER">
<Offset>
<AbsDimension x="19" Y="98"/>
</Offset>
</Anchor>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -