📄 earthmenutemplate.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="EarthMenu.lua"/>
<!-- The Color Swatches -->
<Button name="EarthMenuColorSwatchGraphicTemplate" inherits="EarthObjectTemplate" virtual="true" hidden="true">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="-6" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentSwatchBg">
<Size>
<AbsDimension x="14" y="14"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Color r="1.0" g="1.0" b="1.0"/>
</Texture>
</Layer>
</Layers>
<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
</Button>
<Button name="EarthMenuColorSwatchScriptedTemplate" inherits="EarthMenuColorSwatchGraphicTemplate" virtual="true" hidden="true">
<Scripts>
<OnClick>
EarthMenu_ColorSwatchScriptedTemplate_OnClick();
</OnClick>
<OnEnter>
EarthMenu_ColorSwatchScriptedTemplate_OnEnter();
</OnEnter>
<OnLeave>
EarthMenu_ColorSwatchScriptedTemplate_OnLeave();
</OnLeave>
</Scripts>
</Button>
<Button name="EarthMenuColorSwatchTemplate" inherits="EarthMenuColorSwatchScriptedTemplate" virtual="true" hidden="true"/>
<!-- "Normal" Submenu Indicator Arrows -->
<Button name="EarthMenuExpandArrowGraphicTemplate" inherits="EarthObjectTemplate" virtual="true" hidden="true">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="-6" y="0"/>
</Offset>
</Anchor>
</Anchors>
<NormalTexture file="Interface\ChatFrame\ChatFrameExpandArrow"/>
</Button>
<Button name="EarthMenuExpandArrowScriptedTemplate" inherits="EarthMenuExpandArrowGraphicTemplate" virtual="true" hidden="true">
<Scripts>
<OnClick>
EarthMenu_ExpandArrowScriptedTemplate_OnClick();
</OnClick>
<OnEnter>
EarthMenu_ExpandArrowScriptedTemplate_OnEnter();
</OnEnter>
<OnLeave>
EarthMenu_ExpandArrowScriptedTemplate_OnLeave();
</OnLeave>
</Scripts>
</Button>
<Button name="EarthMenuExpandArrowTemplate" inherits="EarthMenuExpandArrowScriptedTemplate" virtual="true" hidden="true"/>
<!-- An invisible, clickable area -->
<Button name="EarthMenuInvisibleButtonGraphicTemplate" inherits="EarthObjectTemplate" virtual="true" hidden="true">
<Anchors>
<Anchor point="TOPLEFT"/>
<Anchor point="BOTTOMLEFT"/>
<Anchor point="RIGHT" relativeTo="$parentColorSwatch" relativePoint="LEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="EarthMenuInvisibleButtonScriptedTemplate" inherits="EarthMenuInvisibleButtonGraphicTemplate" virtual="true" hidden="true">
<Scripts>
<OnEnter>
EarthMenu_InvisibleButtonScriptedTemplate_OnEnter();
</OnEnter>
<OnLeave>
EarthMenu_InvisibleButtonScriptedTemplate_OnLeave();
</OnLeave>
</Scripts>
</Button>
<Button name="EarthMenuInvisibleButtonTemplate" inherits="EarthMenuInvisibleButtonScriptedTemplate" virtual="true" hidden="true"/>
<!-- These are the menu buttons for highlights and checks -->
<Button name="EarthMenuButtonGraphicTemplate" inherits="EarthObjectTemplate" virtual="true">
<Size>
<AbsDimension x="128" y="16"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentHighlight" file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD" setAllPoints="true" hidden="true"/>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentCheck" file="Interface\Buttons\UI-CheckBox-Check">
<Size>
<AbsDimension x="24" y="24"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Button name="$parentColorSwatch" hidden="true" inherits="EarthMenuColorSwatchTemplate"/>
<Button name="$parentExpandArrow" hidden="true" inherits="EarthMenuExpandArrowTemplate"/>
<Button name="$parentInvisibleButton" hidden="true" inherits="EarthMenuInvisibleButtonTemplate"/>
</Frames>
<NormalText name="$parentNormalText" inherits="GameFontHighlightSmall" justifyH="LEFT"/>
<HighlightText name="$parentHighlightText" inherits="GameFontHighlightSmall" justifyH="LEFT"/>
<DisabledText name="$parentDisabledText" inherits="GameFontDisableSmall" justifyH="LEFT"/>
</Button>
<Button name="EarthMenuButtonScriptedTemplate" inherits="EarthMenuButtonGraphicTemplate" virtual="true">
<Scripts>
<OnClick>
EarthMenu_ButtonScriptedTemplate_OnClick();
</OnClick>
<OnEnter>
EarthMenu_ButtonScriptedTemplate_OnEnter();
</OnEnter>
<OnLeave>
EarthMenu_ButtonScriptedTemplate_OnLeave();
</OnLeave>
</Scripts>
</Button>
<Button name="EarthMenuButtonTemplate" inherits="EarthMenuButtonScriptedTemplate" virtual="true"/>
<!-- Earth Menu List Template -->
<Button name="EarthMenuListGraphicTemplate" inherits="EarthObjectTemplate" frameStrata="DIALOG" enableMouse="true" virtual="true">
<Frames>
<Frame name="$parentBackdrop" setAllPoints="true">
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
<BackgroundInsets>
<AbsInset left="11" right="12" top="12" bottom="11"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="32"/>
</TileSize>
<EdgeSize>
<AbsValue val="32"/>
</EdgeSize>
</Backdrop>
</Frame>
<Frame name="$parentMenuBackdrop" setAllPoints="true">
<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>
<Scripts>
<OnLoad>
EarthMenu_ListGraphicTemplateMenuBackdrop_OnLoad();
</OnLoad>
</Scripts>
</Frame>
<Button name="$parentButton1" inherits="EarthMenuButtonTemplate" id="1"/>
<Button name="$parentButton2" inherits="EarthMenuButtonTemplate" id="2"/>
<Button name="$parentButton3" inherits="EarthMenuButtonTemplate" id="3"/>
<Button name="$parentButton4" inherits="EarthMenuButtonTemplate" id="4"/>
<Button name="$parentButton5" inherits="EarthMenuButtonTemplate" id="5"/>
<Button name="$parentButton6" inherits="EarthMenuButtonTemplate" id="6"/>
<Button name="$parentButton7" inherits="EarthMenuButtonTemplate" id="7"/>
<Button name="$parentButton8" inherits="EarthMenuButtonTemplate" id="8"/>
<Button name="$parentButton9" inherits="EarthMenuButtonTemplate" id="9"/>
<Button name="$parentButton10" inherits="EarthMenuButtonTemplate" id="10"/>
<Button name="$parentButton11" inherits="EarthMenuButtonTemplate" id="11"/>
<Button name="$parentButton12" inherits="EarthMenuButtonTemplate" id="12"/>
<Button name="$parentButton13" inherits="EarthMenuButtonTemplate" id="13"/>
<Button name="$parentButton14" inherits="EarthMenuButtonTemplate" id="14"/>
<Button name="$parentButton15" inherits="EarthMenuButtonTemplate" id="15"/>
<Button name="$parentButton16" inherits="EarthMenuButtonTemplate" id="16"/>
<Button name="$parentButton17" inherits="EarthMenuButtonTemplate" id="17"/>
<Button name="$parentButton18" inherits="EarthMenuButtonTemplate" id="18"/>
<Button name="$parentButton19" inherits="EarthMenuButtonTemplate" id="19"/>
<Button name="$parentButton20" inherits="EarthMenuButtonTemplate" id="20"/>
<Button name="$parentButton21" inherits="EarthMenuButtonTemplate" id="21"/>
<Button name="$parentButton22" inherits="EarthMenuButtonTemplate" id="22"/>
<Button name="$parentButton23" inherits="EarthMenuButtonTemplate" id="23"/>
<Button name="$parentButton24" inherits="EarthMenuButtonTemplate" id="24"/>
<Button name="$parentButton25" inherits="EarthMenuButtonTemplate" id="25"/>
<Button name="$parentButton26" inherits="EarthMenuButtonTemplate" id="26"/>
<Button name="$parentButton27" inherits="EarthMenuButtonTemplate" id="27"/>
<Button name="$parentButton28" inherits="EarthMenuButtonTemplate" id="28"/>
<Button name="$parentButton29" inherits="EarthMenuButtonTemplate" id="29"/>
<Button name="$parentButton30" inherits="EarthMenuButtonTemplate" id="30"/>
<Button name="$parentButton31" inherits="EarthMenuButtonTemplate" id="31"/>
<Button name="$parentButton32" inherits="EarthMenuButtonTemplate" id="32"/>
</Frames>
</Button>
<Frame name="EarthMenuListScriptedTemplate" inherits="EarthMenuListGraphicTemplate" virtual="true">
<Scripts>
<OnClick>
EarthMenu_ListScriptedTemplate_OnClick();
</OnClick>
<OnEnter>
EarthMenu_ListScriptedTemplate_OnEnter();
</OnEnter>
<OnLeave>
EarthMenu_ListScriptedTemplate_OnLeave();
</OnLeave>
<OnUpdate>
EarthMenu_ListScriptedTemplate_OnUpdate(arg1);
</OnUpdate>
<OnShow>
EarthMenu_ListScriptedTemplate_OnShow();
</OnShow>
<OnHide>
EarthMenu_ListScriptedTemplate_OnHide();
</OnHide>
</Scripts>
</Frame>
<Frame name="EarthMenuListTemplate" inherits="EarthMenuListScriptedTemplate" virtual="true"/>
<!-- Checkbutton Graphic Templates -->
<Button name="EarthMenuTemplateButtonGraphicTemplate" inherits="EarthObjectTemplate" virtual="true">
<Size>
<AbsDimension x="24" y="24"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="$parentRight">
<Offset>
<AbsDimension x="-16" y="-18"/>
</Offset>
</Anchor>
</Anchors>
<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up">
<Size>
<AbsDimension x="24" y="24"/>
</Size>
<Anchors>
<Anchor point="RIGHT"/>
</Anchors>
</NormalTexture>
<PushedTexture name="$parentPushedTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down">
<Size>
<AbsDimension x="24" y="24"/>
</Size>
<Anchors>
<Anchor point="RIGHT"/>
</Anchors>
</PushedTexture>
<DisabledTexture name="$parentDisabledTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled">
<Size>
<AbsDimension x="24" y="24"/>
</Size>
<Anchors>
<Anchor point="RIGHT"/>
</Anchors>
</DisabledTexture>
<HighlightTexture name="$parentHighlightTexture" file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD">
<Size>
<AbsDimension x="24" y="24"/>
</Size>
<Anchors>
<Anchor point="RIGHT"/>
</Anchors>
</HighlightTexture>
</Button>
<Button name="EarthMenuTemplateScriptedButtonTemplate" inherits="EarthMenuTemplateButtonGraphicTemplate" virtual="true">
<Scripts>
<OnClick>
EarthMenu_TemplateScriptedButtonTemplate_OnClick();
</OnClick>
</Scripts>
</Button>
<Button name="EarthMenuTemplateButtonTemplate" inherits="EarthMenuTemplateScriptedButtonTemplate" virtual="true"/>
<!-- Earth Menu Graphic Template -->
<Frame name="EarthMenuGraphicTemplate" inherits="EarthObjectTemplate" virtual="true">
<Size>
<AbsDimension x="40" y="32"/>
</Size>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentLeft" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
<Size>
<AbsDimension x="25" y="64"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="17"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.1953125" top="0" bottom="1"/>
</Texture>
<Texture name="$parentMiddle" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
<Size>
<AbsDimension x="115" y="64"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0.1953125" right="0.8046875" top="0" bottom="1"/>
</Texture>
<Texture name="$parentRight" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
<Size>
<AbsDimension x="25" y="64"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0.8046875" right="1" top="0" bottom="1"/>
</Texture>
<FontString name="$parentText" inherits="GameFontHighlightSmall" justifyH="RIGHT">
<Size>
<AbsDimension x="0" y="10"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentRight">
<Offset>
<AbsDimension x="-43" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$parentButton" inherits="EarthMenuTemplateButtonTemplate"/>
</Frames>
</Frame>
<Frame name="EarthMenuScriptedTemplate" inherits="EarthMenuGraphicTemplate" virtual="true">
<Scripts>
<OnHide>
EarthMenu_ScriptedTemplate_OnHide();
</OnHide>
</Scripts>
</Frame>
<Frame name="EarthMenuTemplate" inherits="EarthMenuScriptedTemplate" virtual="true"/>
<!-- Example Menus -->
<Button name="EarthDropDownList1" toplevel="true" frameStrata="FULLSCREEN_DIALOG" inherits="EarthMenuListTemplate" hidden="true" id="1">
<Size>
<AbsDimension x="180" y="10"/>
</Size>
</Button>
<Button name="EarthDropDownList2" toplevel="true" frameStrata="FULLSCREEN_DIALOG" inherits="EarthMenuListTemplate" hidden="true" id="2">
<Size>
<AbsDimension x="180" y="10"/>
</Size>
</Button>
<Button name="EarthDropDownList3" toplevel="true" frameStrata="FULLSCREEN_DIALOG" inherits="EarthMenuListTemplate" hidden="true" id="3">
<Size>
<AbsDimension x="180" y="10"/>
</Size>
</Button>
<Frame name="EarthMenu" inherits="EarthMenuTemplate" id="1" hidden="false">
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="25" y="66"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
EarthMenu_DefaultDropDownMenu_OnLoad();
</OnLoad>
<OnShow>
EarthMenu_DefaultDropDownMenu_OnShow();
</OnShow>
</Scripts>
</Frame>
</Ui>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -