📄 supermacro.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="SuperMacro.lua"/>
<Script file="SM_ItemLink.lua"/>
<Script file="SM_Slash.lua"/>
<Script file="SM_Tooltip.lua"/>
<Script file="SM_Extend.lua"/>
<Script file="localization.lua"/>
<FontString name="SuperMacroButtonFont" virtual="true" inherits="GameFontNormalLarge">
<Shadow>
<Offset>
<AbsDimension x="2" y="-1"/>
</Offset>
<Color r="0" g="0" b="0"/>
</Shadow>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<CheckButton name="SuperMacroFrameButtonTemplate" virtual="true">
<Size>
<AbsDimension x="36" y="36"/>
</Size>
<Layers>
<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>
</Layer>
<Layer level="BACKGROUND">
<Texture file="Interface\Buttons\UI-EmptySlot-Disabled">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<NormalTexture name="$parentIcon">
<Size>
<AbsDimension x="36" y="36"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</NormalTexture>
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
<CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
</CheckButton>
<Checkbutton name="SuperMacroButtonTemplate" inherits="SuperMacroFrameButtonTemplate" virtual="true">
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentID" inherits="SuperMacroButtonFont">
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:RegisterForDrag("LeftButton");
this:RegisterForClicks("LeftButtonDown", "RightButtonDown")
</OnLoad>
<OnClick>
SuperMacroButton_OnClick();
</OnClick>
<OnDragStart>
PickupMacro(this:GetID());
</OnDragStart>
</Scripts>
</Checkbutton>
<CheckButton name="SuperMacroPopupButtonTemplate" inherits="SuperMacroFrameButtonTemplate" virtual="true">
<Scripts>
<OnClick>
SuperMacroPopupButton_OnClick();
</OnClick>
</Scripts>
</CheckButton>
<Frame name="SuperMacroFrame" toplevel="true" movable="true" parent="UIParent" enableMouse="true" hidden="true" strata="HIGH">
<Size>
<AbsDimension x="590" y="512"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="-104"/>
</Offset>
</Anchor>
</Anchors>
<HitRectInsets>
<AbsInset left="12" right="40" top="12" bottom="71"/>
</HitRectInsets>
<Layers>
<Layer level="BACKGROUND">
<Texture name="SuperMacroFramePortrait" file="Interface\Icons\Ability_Ambush">
<Size>
<AbsDimension x="60" y="60"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="7" y="-6"/>
</Offset>
</Anchor>
</Anchors>
<Gradient orientation="HORIZONTAL">
<MinColor r="0" g="0" b="0"/>
<MaxColor r="1" g="1" b="1"/>
</Gradient>
</Texture>
</Layer>
<Layer level="BORDER">
<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopLeft">
<Size>
<AbsDimension x="256" y="256"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopLeft">
<Size>
<AbsDimension x="206" y="256"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="256" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.30" right="1.0" top="0" bottom="1.0"/>
</Texture>
<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopRight">
<Size>
<AbsDimension x="128" y="256"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT"/>
</Anchors>
</Texture>
<Texture file="Interface\MacroFrame\MacroFrame-BotLeft">
<Size>
<AbsDimension x="256" y="256"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT"/>
</Anchors>
</Texture>
<Texture file="Interface\MacroFrame\MacroFrame-BotLeft">
<Size>
<AbsDimension x="206" y="256"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="256" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.30" right="0.93" top="0" bottom="1.0"/>
</Texture>
<Texture file="Interface\MacroFrame\MacroFrame-BotRight">
<Size>
<AbsDimension x="128" y="256"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT"/>
</Anchors>
</Texture>
<FontString name="SuperMacroFrameTitle" inherits="GameFontNormal" text="SUPERMACRO_TITLE">
<Anchors>
<Anchor point="TOP" relativeTo="SuperMacroFrame">
<Offset>
<AbsDimension x="0" y="-17"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="ARTWORK">
<Texture name="SuperMacroHorizontalBarLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
<Size>
<AbsDimension x="460" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="15" y="-220"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="1.0" top="0" bottom="0.25"/>
</Texture>
<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
<Size>
<AbsDimension x="75" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SuperMacroHorizontalBarLeft" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/>
</Texture>
<Texture name="SuperMacroFrameSelectedMacroBackground" file="Interface\Buttons\UI-EmptySlot">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="16" y="-228"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="SuperMacroFrameGeneralMacroText" inherits="GameFontNormal" justifyH="CENTER" text="GENERAL_MACROS" letters="255">
<Size>
<AbsDimension x="256" y="16"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="162" y="-66"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="SuperMacroFrameCharacterMacroText" inherits="GameFontNormal" justifyH="CENTER" text="CHARACTER_SPECIFIC_MACROS" letters="255">
<Size>
<AbsDimension x="256" y="16"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="420" y="-66"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="SuperMacroFrameSelectedMacroName" inherits="GameFontNormalLarge" justifyH="LEFT">
<Size>
<AbsDimension x="256" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SuperMacroFrameSelectedMacroBackground" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="57" y="-5"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="SuperMacroFrameEnterMacroText" inherits="GameFontHighlightSmall" text="ENTER_MACRO_LABEL">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SuperMacroFrameSelectedMacroBackground" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="55" y="20"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="SuperMacroFrameCharLimitText" inherits="GameFontHighlightSmall">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="25" y="105"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="OVERLAY">
<FontString name="SuperMacroFrameSelectedMacroName" inherits="SuperMacroButtonFont">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SuperMacroFrameSelectedMacroBackground" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-4" y="-13"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<CheckButton name="SuperMacroFrameSelectedMacroButton" inherits="SuperMacroButtonTemplate" id="0">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SuperMacroFrameSelectedMacroBackground">
<Offset>
<AbsDimension x="14" y="-14"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
this:SetChecked(nil);
PickupMacro(SuperMacroFrame.selectedMacro);
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="SuperMacroButton1" inherits="SuperMacroButtonTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="25" y="-83"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SuperMacroButton2" inherits="SuperMacroButtonTemplate" id="2">
<Anchors>
<Anchor point="LEFT" relativeTo="SuperMacroButton1" relativePoint="RIGHT">
<Offset>
<AbsDimension x="5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SuperMacroButton3" inherits="SuperMacroButtonTemplate" id="3">
<Anchors>
<Anchor point="LEFT" relativeTo="SuperMacroButton2" relativePoint="RIGHT">
<Offset>
<AbsDimension x="5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SuperMacroButton4" inherits="SuperMacroButtonTemplate" id="4">
<Anchors>
<Anchor point="LEFT" relativeTo="SuperMacroButton3" relativePoint="RIGHT">
<Offset>
<AbsDimension x="5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SuperMacroButton5" inherits="SuperMacroButtonTemplate" id="5">
<Anchors>
<Anchor point="LEFT" relativeTo="SuperMacroButton4" relativePoint="RIGHT">
<Offset>
<AbsDimension x="5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SuperMacroButton6" inherits="SuperMacroButtonTemplate" id="6">
<Anchors>
<Anchor point="LEFT" relativeTo="SuperMacroButton5" relativePoint="RIGHT">
<Offset>
<AbsDimension x="5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="SuperMacroButton7" inherits="SuperMacroButtonTemplate" id="7">
<Anchors>
<Anchor point="TOP" relativeTo="SuperMacroButton1" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="-10"/>
</Offset>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -