📄 gathererui.xml
字号:
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="GathererUI_CheckHideOnMouse" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="200" y="-5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_HIDEONMOUSE);
this.tooltipText= GATHERER_HIDEONMOUSE_TIP;
</OnLoad>
<OnClick>
if (this:GetChecked()) then
GatherConfig.HideOnMouse = 1;
else
GatherConfig.HideOnMouse = 0;
end
</OnClick>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="GathererUI_CheckHideOnClick" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_CheckHideOnMouse" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_HIDEONCLICK);
this.tooltipText = GATHERER_HIDEONCLICK_TIP;
</OnLoad>
<OnClick>
if (this:GetChecked()) then
GatherConfig.HideOnClick = 1;
else
GatherConfig.HideOnClick = 0;
end
</OnClick>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="GathererUI_CheckHideOnButton" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_CheckHideOnClick" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_HIDEONBUTTON);
this.tooltipText= GATHERER_HIDEONBUTTON_TIP;
</OnLoad>
<OnClick>
if (this:GetChecked()) then
GatherConfig.HideOnButton = 1;
else
GatherConfig.HideOnButton = 0;
end
</OnClick>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="GathererUI_CheckShowOnClick" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_CheckShowOnMouse" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_SHOWONCLICK);
this.tooltipText = GATHERER_SHOWONCLICK_TIP;
</OnLoad>
<OnClick>
if (this:GetChecked()) then
GatherConfig.ShowOnClick = 1;
else
GatherConfig.ShowOnClick = 0;
GatherConfig.ShowOnMouse = 1;
GathererUI_CheckShowOnMouse:SetChecked(GatherConfig.ShowOnMouse);
end
</OnClick>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="GathererUI_CheckHideIcon" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_CheckShowOnClick" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_HIDEICON);
this.tooltipText = GATHERER_HIDEICON_TIP;
</OnLoad>
<OnClick>
if (this:GetChecked()) then
GatherConfig.HideIcon = tonumber("1");;
GathererUI_IconFrame:Hide();
else
GatherConfig.HideIcon = tonumber("0");
GathererUI_IconFrame:Show();
end
</OnClick>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<Slider name="GathererUI_SliderPosition" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="360" y="17"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="GathererUI_CheckHideIcon" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="20" y="-22"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_POSITION);
getglobal(this:GetName().."High"):SetText();
getglobal(this:GetName().."Low"):SetText();
this:SetMinMaxValues(0, 360);
this:SetValueStep(1);
this.tooltipText = GATHERER_TEXT_POSITION_TIP;
</OnLoad>
<OnShow>
if (GatherConfig.Position) then
this:SetValue(GatherConfig.Position);
end
</OnShow>
<OnValueChanged>
GatherConfig.Position = this:GetValue();
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_POSITION.." : "..this:GetValue().."\194\176");
GathererUI_IconFrame:SetPoint("TOPLEFT", "Minimap", "TOPLEFT", 52 - (GathererUI_SliderRadius:GetValue() * cos(this:GetValue())), (GathererUI_SliderRadius:GetValue() * sin(this:GetValue())) - 52);
</OnValueChanged>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Slider>
<Slider name="GathererUI_SliderRadius" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="360" y="17"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="GathererUI_SliderPosition" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-40"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_RADIUS);
getglobal(this:GetName().."High"):SetText();
getglobal(this:GetName().."Low"):SetText();
this:SetMinMaxValues(75, 130);
this:SetValueStep(1);
this.tooltipText = GATHERER_TEXT_RADIUS_TIP;
</OnLoad>
<OnShow>
if (GatherConfig.Radius) then
this:SetValue(GatherConfig.Radius);
end
</OnShow>
<OnValueChanged>
GatherConfig.Radius = this:GetValue();
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_RADIUS.." : "..this:GetValue().."\194\176");
GathererUI_IconFrame:SetPoint("TOPLEFT", "Minimap", "TOPLEFT", 52 - (this:GetValue() * cos(GathererUI_SliderPosition:GetValue())), (this:GetValue() * sin(GathererUI_SliderPosition:GetValue())) - 52);
</OnValueChanged>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Slider>
</Frames>
</Frame>
<!-- Dialog for zone rematch facility -->
<Frame name="GathererUI_ZoneRematchDialog" toplevel="true" movable="true" enableMouse="true" frameStrata="DIALOG" hidden="true" parent="UIParent">
<Size>
<AbsDimension x="250" y="200"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="UIParent" relativePoint="LEFT">
<Offset>
<AbsDimension x="125" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TitleRegion 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>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
<Size>
<AbsDimension x="200" y="64"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="1" y="12"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString inherits="GameFontNormal" text="GATHERER_TEXT_REMATCH_TITLE" nonspacewrap="true">
<Anchors>
<Anchor point="TOP" relativeTo="$parentHeader">
<Offset>
<AbsDimension x="0" y="-13"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Frame name="GathererUI_DataBuildStatus" id="19">
<Size>
<AbsDimension x="200" y="32"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="0" y="-35"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormalSmall" text="GATHERER_TEXT_LASTMATCH" nonspacewrap="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="15" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="GathererUI_DataBuildStatusText" inherits="GameFontNormalSmall" nonspacewrap="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-15" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnShow>
if ( GatherConfig.DataBuild ) then
GathererUI_DataBuildStatusText:SetText(GatherConfig.DataBuild);
else
GathererUI_DataBuildStatusText:SetText(GATHERER_TEXT_LASTMATCH_NONE);
end
</OnShow>
</Scripts>
</Frame>
<Frame name="GathererUI_SourceZoneDropDown" inherits="UIDropDownMenuTemplate" id="20">
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-5" y="-50"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
UIDropDownMenu_SetWidth(70);
this.tooltipText= GATHERER_ZM_SRCDDM_TIP;
</OnLoad>
<OnShow>
UIDropDownMenu_ClearAll(this);
UIDropDownMenu_Initialize(this, GathererUIDropDownSourceZone_Initialize);
</OnShow>
<OnEnter>
GameTooltip:SetOwner(GathererUI_ZoneRematchDialog, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormalSmall" text="Zones Source:" nonspacewrap="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="-110" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
<Frame name="GathererUI_DestinationZoneDropDown" inherits="UIDropDownMenuTemplate" id="21">
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="GathererUI_SourceZoneDropDown" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="0" y="-30"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
UIDropDownMenu_SetWidth(70);
this.tooltipText= GATHERER_ZM_DESTDDM_TIP;
this:Hide();
</OnLoad>
<OnShow>
UIDropDownMenu_ClearAll(this);
UIDropDownMenu_Initialize(this, GathererUIDropDownDestionationZone_Initialize);
</OnShow>
<OnEnter>
GameTooltip:SetOwner(GathererUI_ZoneRematchDialog, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormalSmall" text="Zones Destination:" nonspacewrap="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_SourceZoneDropDown" relativePoint="T
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -