📄 gathererui.xml
字号:
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_NUMBER);
getglobal(this:GetName().."High"):SetText();
getglobal(this:GetName().."Low"):SetText();
this:SetMinMaxValues(5, 25);
this:SetValueStep(1);
this.tooltipText = GATHERER_TEXT_NUMBER_TIP;
</OnLoad>
<OnShow>
if (GatherConfig.number) then
this:SetValue(GatherConfig.number);
end
</OnShow>
<OnValueChanged>
GatherConfig.number = this:GetValue();
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_NUMBER.." : "..this:GetValue()..".");
</OnValueChanged>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Slider>
<Slider name="GathererUI_SliderMiniIconDist" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="160" y="17"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_DropDownTheme" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="-40" y="-16"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_MINIIDIST);
getglobal(this:GetName().."High"):SetText();
getglobal(this:GetName().."Low"):SetText();
this:SetMinMaxValues(0, 60);
this:SetValueStep(1);
this.tooltipText = GATHERER_TEXT_MINIIDIST_TIP;
</OnLoad>
<OnShow>
if (GatherConfig.miniIconDist) then
this:SetValue(GatherConfig.miniIconDist);
end
</OnShow>
<OnValueChanged>
GatherConfig.miniIconDist = this:GetValue();
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_MINIIDIST.." : "..this:GetValue()..".");
</OnValueChanged>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Slider>
<Slider name="GathererUI_SliderMaxDist" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="160" y="17"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_SliderNumber" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-17"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_MAXDIST);
getglobal(this:GetName().."High"):SetText();
getglobal(this:GetName().."Low"):SetText();
this:SetMinMaxValues(0, 100);
this:SetValueStep(1);
this.tooltipText = GATHERER_TEXT_MAXDIST_TIP;
</OnLoad>
<OnShow>
if (GatherConfig.maxDist) then
this:SetValue(GatherConfig.maxDist);
end
</OnShow>
<OnValueChanged>
GatherConfig.maxDist = this:GetValue();
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_MAXDIST.." : "..this:GetValue()..".");
</OnValueChanged>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Slider>
<CheckButton name="GathererUI_CheckNoMinIcon" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_SliderMiniIconDist" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="-15" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_NO_MINICONDIST);
this.tooltipText = GATHERER_NOMINIICONDIST_TIP
</OnLoad>
<OnClick>
if (this:GetChecked()) then
GatherConfig.NoIconOnMinDist = 1;
else
GatherConfig.NoIconOnMinDist = 0;
end
Gatherer_OnUpdate(0, true);
</OnClick>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="GathererUI_CheckRareOre" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_SliderMaxDist" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="-15" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_RAREORE);
this.tooltipText= GATHERER_RAREORE_TIP;
</OnLoad>
<OnClick>
if (this:GetChecked()) then
GatherConfig.rareOre = 1;
else
GatherConfig.rareOre = 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_CheckHideMiniNotes" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_CheckNoMinIcon" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_HIDEMININOTES);
this.tooltipText = GATHERER_HIDEMININOTES_TIP;
</OnLoad>
<OnClick>
if (this:GetChecked()) then
GatherConfig.HideMiniNotes = 1;
else
GatherConfig.HideMiniNotes = 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_CheckToggleWorldNotes" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_CheckRareOre" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_TOGGLEWORLDNOTES);
this.tooltipText = GATHERER_TOGGLEWORLDNOTES_TIP;
</OnLoad>
<OnClick>
if (this:GetChecked()) then
GatherConfig.ToggleWorldNotes = 1;
else
GatherConfig.ToggleWorldNotes = 0;
end
</OnClick>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<EditBox name="GathererUI_WorldMapIconSize" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="30" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_CheckHideMiniNotes" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="165" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormalSmall" text="GATHERER_TEXT_WMICONSIZEEB" nonspacewrap="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_WorldMapIconSize" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="-160" y="-2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this.tooltipText=GATHERER_WMICONSIZEEB_TIP;
</OnLoad>
<OnEnterPressed>
GathererUI_OnEnterPressed_IconSizeEditBox();
this:ClearFocus();
</OnEnterPressed>
<OnShow>
if ( Gather_Player and GatherConfig.IconSize ) then
this:SetNumber(GatherConfig.IconSize);
else
this:SetNumber(12);
end
</OnShow>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</EditBox>
<EditBox name="GathererUI_WorldMapIconAlpha" letters="3" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
<Size>
<AbsDimension x="32" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_CheckToggleWorldNotes" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="165" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormalSmall" text="GATHERER_TEXT_WMICONALPHAEB" nonspacewrap="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_WorldMapIconAlpha" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="-160" y="-2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this.tooltipText=GATHERER_WMICONALPHAEB_TIP;
</OnLoad>
<OnEnterPressed>
GathererUI_OnEnterPressed_IconAlphaEditBox();
this:ClearFocus();
</OnEnterPressed>
<OnShow>
if ( Gather_Player and GatherConfig.IconAlpha ) then
this:SetNumber(GatherConfig.IconAlpha);
else
this:SetNumber(80);
end
</OnShow>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</EditBox>
<Slider name="GathererUI_SliderAlphaUnderMinIcon" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="160" y="17"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_WorldMapIconSize" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="-150" y="-17"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_ALPHAUNDER_MINICON);
getglobal(this:GetName().."High"):SetText();
getglobal(this:GetName().."Low"):SetText();
this:SetMinMaxValues(35, 100);
this:SetValueStep(1);
this.tooltipText = GATHERER_TEXT_ALPHAUNDER_MINICON_TIP;
</OnLoad>
<OnShow>
if (GatherConfig.alphaUnderMinIcon) then
this:SetValue(GatherConfig.alphaUnderMinIcon);
else
this:SetValue(100);
end
</OnShow>
<OnValueChanged>
GatherConfig.alphaUnderMinIcon = this:GetValue();
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_ALPHAUNDER_MINICON.." : "..this:GetValue()..".");
</OnValueChanged>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Slider>
</Frames>
</Frame>
<!-- UI config options -->
<Frame name="GathererUI_DisplayOptionsBorderFrame" parent="GathererUI_DialogFrame" inherits="OptionFrameBoxTemplate" hidden="true" id="3">
<Size>
<AbsDimension x="410" y="250"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_DialogFrame" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="16" y="-25"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetBackdropColor(0,0,0)
</OnLoad>
</Scripts>
<Frames>
<CheckButton name="GathererUI_CheckShowOnMouse" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="5" y="-5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_SHOWONMOUSE);
this.tooltipText = GATHERER_SHOWONMOUSE_TIP;
</OnLoad>
<OnClick>
if (this:GetChecked()) then
GatherConfig.ShowOnMouse = 1;
else
GatherConfig.ShowOnMouse = 0;
GatherConfig.ShowOnClick = 1;
GathererUI_CheckShowOnClick:SetChecked(GatherConfig.ShowOnClick);
end
</OnClick>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -