📄 gatherer.xml
字号:
</Anchor>
</Anchors>
<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>
<Layers>
<Layer level="ARTWORK">
<Texture name="GathererUI_NodesEditHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
<Size>
<AbsDimension x="256" y="64"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="12"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString inherits="GameFontNormal" text="Edit Node(s)">
<Anchors>
<Anchor point="TOP" relativeTo="GathererUI_NodesEditHeader">
<Offset>
<AbsDimension x="0" y="-14"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:SetBackdropColor(240,240,240)
this:RegisterEvent("WORLD_MAP_UPDATE");
this:SetScale(1);
</OnLoad>
<OnShow>
this:SetScale(1);
</OnShow>
<OnEvent>
this:Hide();
</OnEvent>
</Scripts>
<Frames>
<!-- Node modification (name, icon) -->
<EditBox name="Gatherer_WMNodeNameEditBox" letters="50" numeric="false" autoFocus="false" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="270" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="Gatherer_NodesEditFrame" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="25" y="-30"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
</OnLoad>
<OnEnterPressed>
this:ClearFocus();
GatherMainMapItem.newGatherName = this:GetText();
if (GatherMainMapItem.newGatherName ~= "") then
GatherMainMapItem.oldGatherName = GatherMainMapItem.oldGatherName or GatherMainMapItem.gatherName;
GatherMainMapItem.gatherName = GatherMainMapItem.newGatherName;
else
GatherMainMapItem.newGatherName = nil;
GatherMainMapItem.gatherName = GatherMainMapItem.oldGatherName;
end
</OnEnterPressed>
<OnShow>
this:SetText(GatherMainMapItem.gatherName or "");
</OnShow>
</Scripts>
</EditBox>
<Frame name="Gatherer_WMDropDownGType" inherits="UIDropDownMenuTemplate" id="10">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="Gatherer_WMNodeNameEditBox" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="-20" y="-5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
UIDropDownMenu_SetWidth(100);
</OnLoad>
<OnShow>
UIDropDownMenu_ClearAll(this);
UIDropDownMenu_Initialize(this, Gatherer_WMDropDownGType_Initialize);
</OnShow>
</Scripts>
</Frame>
<Frame name="Gatherer_WMDropDownIcons" inherits="UIDropDownMenuTemplate" id="11">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="Gatherer_WMDropDownGType" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-5" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
UIDropDownMenu_SetWidth(100);
</OnLoad>
<OnShow>
UIDropDownMenu_ClearAll(this);
UIDropDownMenu_Initialize(this, Gatherer_WMDropDownIcons_Initialize);
</OnShow>
</Scripts>
</Frame>
<!-- Scope selector -->
<Frame name="Gatherer_WMDropDownScope" inherits="UIDropDownMenuTemplate" id="12">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="Gatherer_WMDropDownGType" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
UIDropDownMenu_SetWidth(100);
</OnLoad>
<OnShow>
UIDropDownMenu_ClearAll(this);
UIDropDownMenu_Initialize(this, Gatherer_WMDropDownScope_Initialize);
</OnShow>
</Scripts>
</Frame>
<!-- Control Buttons -->
<Button name="Gatherer_WMItemDialog_Bugged" parent="Gatherer_NodesEditFrame" hidden="false" text="Toggle Bugged" inherits="UIPanelButtonTemplate" toplevel="true">
<Size>
<AbsDimension x="100" y="25"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="Gatherer_NodesEditFrame" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="20" y="20"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:Show();
</OnLoad>
<OnClick>
Gatherer_ToggleBuggedItem();
Gatherer_NodesEditFrame:Hide();
</OnClick>
</Scripts>
</Button>
<Button name="Gatherer_WMItemDialog_Delete" parent="Gatherer_NodesEditFrame" hidden="false" text="DELETE" inherits="UIPanelButtonTemplate" toplevel="true">
<Size>
<AbsDimension x="80" y="25"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="Gatherer_WMItemDialog_Bugged" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="10" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:Show();
</OnLoad>
<OnClick>
Gatherer_DeleteItem();
Gatherer_NodesEditFrame:Hide()
GatherMainMapItem = {};
</OnClick>
</Scripts>
</Button>
<Button name="Gatherer_WMItemDialog_Cancel" parent="Gatherer_NodesEditFrame" hidden="false" text="CANCEL" inherits="UIPanelButtonTemplate" toplevel="true">
<Size>
<AbsDimension x="80" y="25"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="Gatherer_NodesEditFrame" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-20" y="20"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:Show();
</OnLoad>
<OnClick>
GatherMainMapItem.newGatherName = nil;
Gatherer_ToggleBuggedItem();
Gatherer_NodesEditFrame:Hide()
GatherMainMapItem = {};
</OnClick>
</Scripts>
</Button>
<Button name="Gatherer_WMItemDialog_Modify" parent="Gatherer_NodesEditFrame" hidden="false" text="ACCEPT" inherits="UIPanelButtonTemplate" toplevel="true">
<Size>
<AbsDimension x="80" y="25"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="Gatherer_WMItemDialog_Cancel" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="-10" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:Show();
</OnLoad>
<OnClick>
Gatherer_ModifyItem();
Gatherer_NodesEditFrame:Hide()
GatherMainMapItem = {};
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
</Ui>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -