supermacro.xml
字号:
<Button name="SuperMacroSaveButton" inherits="UIPanelButtonTemplate" text="SAVE_MACRO">
<Size>
<AbsDimension x="80" y="22"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="SuperMacroFrame">
<Offset>
<AbsDimension x="97" y="79"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
SuperMacroFrame_SaveMacro();
</OnClick>
</Scripts>
</Button>
<Button name="SuperMacroOptionsButton" inherits="UIPanelButtonTemplate" text="SUPERMACRO_OPTIONS">
<Size>
<AbsDimension x="100" y="22"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="226" y="-422"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
SuperMacroOptionsButton_OnClick();
</OnClick>
</Scripts>
</Button>
<Button name="SuperMacroSaveExtendButton" inherits="UIPanelButtonTemplate" text="SAVE_EXTEND">
<Size>
<AbsDimension x="100" y="22"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-170" y="-422"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
SuperMacroSaveExtendButton_OnClick();
</OnClick>
</Scripts>
</Button>
<Button name="SuperMacroDeleteExtendButton" inherits="UIPanelButtonGrayTemplate" text="DELETE_EXTEND">
<Size>
<AbsDimension x="100" y="22"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-267" y="-422"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
SuperMacroDeleteExtendButton_OnClick();
</OnClick>
</Scripts>
</Button>
<Button name="SuperMacroNewAccountButton" inherits="UIPanelButtonTemplate" text="SUPERMACRO_NEW_ACCOUNT">
<Size>
<AbsDimension x="160" y="22"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SuperMacroFrame">
<Offset>
<AbsDimension x="82" y="-37"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
SuperMacroNewAccountButton_OnClick();
</OnClick>
</Scripts>
</Button>
<Button name="SuperMacroNewCharacterButton" inherits="UIPanelButtonTemplate" text="SUPERMACRO_NEW_CHARACTER">
<Size>
<AbsDimension x="160" y="22"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SuperMacroFrame">
<Offset>
<AbsDimension x="342" y="-37"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
SuperMacroNewCharacterButton_OnClick();
</OnClick>
</Scripts>
</Button>
<Button name="SuperMacroExitButton" inherits="UIPanelButtonTemplate" text="EXIT">
<Size>
<AbsDimension x="80" y="22"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-80" y="-422"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
HideUIPanel(this:GetParent());
</OnClick>
</Scripts>
</Button>
<Button name="SuperMacroFrameCloseButton" inherits="UIPanelCloseButton">
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-29" y="-8"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<ScrollFrame name="SuperMacroFrameExtendScrollFrame" inherits="UIPanelScrollFrameTemplate">
<Size>
<AbsDimension x="209" y="138"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SuperMacroFrame">
<Offset>
<AbsDimension x="308" y="-252"/>
</Offset>
</Anchor>
</Anchors>
<ScrollChild>
<EditBox name="SuperMacroFrameExtendText" multiLine="true" autoFocus="false" nonspacewrap="true">
<Size>
<AbsDimension x="205" y="138"/>
</Size>
<Scripts>
<OnTextChanged>
SuperMacroFrame.extendChanged=1;
SuperMacroFrameExtendCharLimitText:SetText(format(TEXT(SUPERMACROFRAME_EXTEND_CHAR_LIMIT), strlen(SuperMacroFrameExtendText:GetText())));
local scrollBar = getglobal(this:GetParent():GetName().."ScrollBar")
this:GetParent():UpdateScrollChildRect();
local min;
local max;
min, max = scrollBar:GetMinMaxValues();
if ( max > 0 and (this.max ~= max) ) then
this.max = max;
scrollBar:SetValue(max);
end
</OnTextChanged>
<OnEscapePressed>
this:ClearFocus();
</OnEscapePressed>
<OnEditFocusGained>
</OnEditFocusGained>
<OnEditFocusLost>
</OnEditFocusLost>
</Scripts>
<FontString inherits="GameFontHighlightSmall"/>
</EditBox>
</ScrollChild>
</ScrollFrame>
<Button name="SuperMacroFrameExtendTextButton">
<Size>
<AbsDimension x="226" y="138"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SuperMacroFrameExtendText"/>
</Anchors>
<Scripts>
<OnClick>
SuperMacroFrameExtendText:SetFocus();
</OnClick>
</Scripts>
</Button>
<Frame name="SuperMacroFrameExtendTextBackground">
<Size>
<AbsDimension x="245" y="150"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SuperMacroFrame">
<Offset>
<AbsDimension x="300" y="-247"/>
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-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="ARTWORK">
<FontString name="SuperMacroFrameEnterExtendText" inherits="GameFontHighlightSmall" text="ENTER_EXTEND_LABEL">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="8" y="13"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="SuperMacroFrameExtendCharLimitText" inherits="GameFontHighlightSmall">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="8" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
</OnLoad>
</Scripts>
</Frame>
</Frames>
<Scripts>
<OnLoad>
SuperMacroFrame_OnLoad();
</OnLoad>
<OnShow>
SuperMacroFrame_OnShow();
</OnShow>
<OnHide>
SuperMacroFrame_OnHide();
</OnHide>
<OnEvent>
SuperMacroFrame_OnEvent(event);
</OnEvent>
<OnMouseWheel>
return;
</OnMouseWheel>
</Scripts>
</Frame>
<Frame name="SuperMacroPopupFrame" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true">
<Size>
<AbsDimension x="297" y="298"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="SuperMacroFrame" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-40" y="-40"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture file="Interface\MacroFrame\MacroPopup-TopLeft">
<Size>
<AbsDimension x="256" y="256"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
<Texture file="Interface\MacroFrame\MacroPopup-TopRight">
<Size>
<AbsDimension x="64" y="256"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="256" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture file="Interface\MacroFrame\MacroPopup-BotLeft">
<Size>
<AbsDimension x="256" y="64"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="-256"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture file="Interface\MacroFrame\MacroPopup-BotRight">
<Size>
<AbsDimension x="64" y="64"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="256" y="-256"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString inherits="GameFontHighlightSmall" text="MACRO_POPUP_TEXT">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="24" y="-21"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString inherits="GameFontHighlightSmall" text="MACRO_POPUP_CHOOSE_ICON">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="24" y="-69"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<EditBox name="SuperMacroPopupEditBox" letters="16" historyLines="0">
<Size>
<AbsDimension x="200" y="20"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="29" y="-35"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="SuperMacroPopupNameLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
<Size>
<AbsDimension x="12" y="29"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-11" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.09375" top="0" bottom="1.0"/>
</Texture>
<Texture name="SuperMacroPopupNameMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
<Size>
<AbsDimension x="175" y="29"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SuperMacroPopupNameLeft" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/>
</Texture>
<Texture name="SuperMacroPopupNameRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
<Size>
<AbsDimension x="12" y="29"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="SuperMacroPopupNameMiddle" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnTextChanged>
SuperMacroPopupOkayButton_Update();
SuperMacroFrameSelectedMacroName:SetText(this:GetText());
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -