📄 gathererui.xml
字号:
if (this:GetChecked()) then
GatherConfig.users[Gather_Player].filterRecording[2] = 1;
else
GatherConfig.users[Gather_Player].filterRecording[2] = nil;
GathererUI_CheckHerbRecord:SetChecked(GatherConfig.users[Gather_Player].filterRecording[2]);
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_CheckTreasureRecord" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="280" y="-48"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_LINKRECORD);
this.tooltipText = GATHERER_TEXT_LINKRECORD_TIP;
</OnLoad>
<OnClick>
if (this:GetChecked()) then
GatherConfig.users[Gather_Player].filterRecording[0] = 1;
else
GatherConfig.users[Gather_Player].filterRecording[0] = nil;
GathererUI_CheckHerbRecord:SetChecked(GatherConfig.users[Gather_Player].filterRecording[0]);
end
</OnClick>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<Button name="GathererUI_ButtonResetHerb" text="Reset" inherits="UIPanelButtonTemplate">
<Size>
<AbsDimension x="100" y="25"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_CheckHerbRecord" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( Gather_Player and GatherConfig.users[Gather_Player].interested ) then
if ( GatherConfig.users[Gather_Player].interested[1] ) then
local i;
for i in GatherConfig.users[Gather_Player].interested[1] do
GatherConfig.users[Gather_Player].interested[1][i] = true;
end
end
end
</OnClick>
</Scripts>
</Button>
<Button name="GathererUI_ButtonResetOre" text="Reset" inherits="UIPanelButtonTemplate">
<Size>
<AbsDimension x="100" y="25"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_CheckOreRecord" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( Gather_Player and GatherConfig.users[Gather_Player].interested ) then
if ( GatherConfig.users[Gather_Player].interested[2] ) then
local i;
for i in GatherConfig.users[Gather_Player].interested[2] do
GatherConfig.users[Gather_Player].interested[2][i] = true;
end
end
end
</OnClick>
</Scripts>
</Button>
<Button name="GathererUI_ButtonResetTreasure" text="Reset" inherits="UIPanelButtonTemplate">
<Size>
<AbsDimension x="100" y="25"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_CheckTreasureRecord" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( Gather_Player and GatherConfig.users[Gather_Player].interested ) then
if ( GatherConfig.users[Gather_Player].interested[0] ) then
local i;
for i in GatherConfig.users[Gather_Player].interested[0] do
GatherConfig.users[Gather_Player].interested[0][i] = true;
end
end
end
</OnClick>
</Scripts>
</Button>
<CheckButton name="GathererUI_CheckToggleWorldFilters" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_ButtonResetHerb" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_WMFILTERS);
this.tooltipText = GATHERER_TEXT_WMFILTERS_TIP;
</OnLoad>
<OnClick>
if (this:GetChecked()) then
GatherConfig.showWorldMapFilters = 1;
GathererWD_DropDownFilters:Show();
else
GatherConfig.showWorldMapFilters = 0;
GathererWD_DropDownFilters:Hide();
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_CheckDisableWMFix" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_CheckToggleWorldFilters" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="150" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_DISABLEWMFIX);
this.tooltipText = GATHERER_TEXT_DISABLEWMFIX_TIP;
</OnLoad>
<OnClick>
if (this:GetChecked()) then
GatherConfig.disableWMFreezeWorkaround = 1;
Gatherer_WorldMapDisplay:Show()
else
GatherConfig.disableWMFreezeWorkaround = 0;
Gatherer_WorldMapDisplay:Hide()
end
</OnClick>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
</Frames>
</Frame>
<!-- Gatherer specific options -->
<Frame name="GathererUI_GathererOptionsBorderFrame" parent="GathererUI_DialogFrame" inherits="OptionFrameBoxTemplate" hidden="true" id="2">
<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>
<!-- Map Minder options -->
<CheckButton name="GathererUI_CheckMapMinder" 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_MAPMINDER);
this.tooltipText=GATHERER_MAPMINDER_TIP;
</OnLoad>
<OnShow>
if ( GatherConfig.mapMinder ~= nil ) then
this:SetChecked(GatherConfig.mapMinder)
end
</OnShow>
<OnClick>
if (this:GetChecked()) then
GatherConfig.mapMinder = true;
else
GatherConfig.mapMinder = false;
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_SliderMapMinder" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="160" y="17"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="215" y="-17"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_MAPMINDER_VALUE);
getglobal(this:GetName().."High"):SetText();
getglobal(this:GetName().."Low"):SetText();
this:SetMinMaxValues(0, 30);
this:SetValueStep(1);
this.tooltipText = GATHERER_TEXT_MAPMINDER_TIP;
</OnLoad>
<OnShow>
if (GatherConfig.minderTime) then
this:SetValue(GatherConfig.minderTime);
end
</OnShow>
<OnValueChanged>
GatherConfig.minderTime = this:GetValue();
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_MAPMINDER_VALUE.." : "..this:GetValue().."s");
</OnValueChanged>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Slider>
<!-- Display Options -->
<Slider name="GathererUI_SliderFadePercent" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="160" y="17"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_CheckMapMinder" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="15" y="-12"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_FADEPERC);
getglobal(this:GetName().."High"):SetText();
getglobal(this:GetName().."Low"):SetText();
this:SetMinMaxValues(0, 100);
this:SetValueStep(1);
this.tooltipText = GATHERER_TEXT_FADEPERC_TIP;
</OnLoad>
<OnShow>
if (GatherConfig.fadePerc) then
this:SetValue(GatherConfig.fadePerc);
end
</OnShow>
<OnValueChanged>
GatherConfig.fadePerc = this:GetValue();
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_FADEPERC.." : "..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_SliderFadeDist" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="160" y="17"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_SliderMapMinder" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-17"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_FADEDIST);
getglobal(this:GetName().."High"):SetText();
getglobal(this:GetName().."Low"):SetText();
this:SetMinMaxValues(10, 60);
this:SetValueStep(1);
this.tooltipText = GATHERER_TEXT_FADEDIST_TIP;
</OnLoad>
<OnShow>
if (GatherConfig.fadeDist) then
this:SetValue(GatherConfig.fadeDist);
end
</OnShow>
<OnValueChanged>
GatherConfig.fadeDist = this:GetValue();
getglobal(this:GetName().."Text"):SetText(GATHERER_TEXT_FADEDIST.." : "..this:GetValue()..".");
</OnValueChanged>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Slider>
<Frame name="GathererUI_DropDownTheme" inherits="UIDropDownMenuTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_SliderFadePercent" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="40" y="-4"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
UIDropDownMenu_SetWidth(90);
this.tooltipText= GATHERER_THEME_TIP;
</OnLoad>
<OnShow>
UIDropDownMenu_Initialize(this, GathererUIDropDownTheme_Initialize);
</OnShow>
<OnEvent>
<!--LocationDropDown_OnEvent();-->
</OnEvent>
<OnEnter>
GameTooltip:SetOwner(GathererUI_DialogFrame, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltipText);
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontNormal" text="GATHERER_TEXT_THEME" nonspacewrap="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_SliderFadePercent" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
<Slider name="GathererUI_SliderNumber" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="160" y="17"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="GathererUI_SliderFadeDist" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-17"/>
</Offset>
</Anchor>
</Anchors>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -