📄 felwoodgather.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="Localization.lua"/>
<Script file="FelwoodGather.lua"/>
<Frame name="FelwoodGather" parent="UIParent">
<Size>
<AbsDimension x="0" y="0"/>
</Size>
<Scripts>
<OnLoad>
FelwoodGather_OnLoad();
</OnLoad>
<OnEvent>
FelwoodGather_OnEvent(event);
</OnEvent>
<OnUpdate>
FelwoodGather_TimeCheck(arg1);
</OnUpdate>
</Scripts>
</Frame>
<Frame name="FelwoodMapOverlayFrame" parent="WorldMapDetailFrame" hidden="true" enablemouse="false" movable="false">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
<AbsDimension x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetWidth(WorldMapDetailFrame:GetWidth());
this:SetHeight(WorldMapDetailFrame:GetHeight());
this:SetFrameLevel(WorldMapPlayer:GetFrameLevel() - 1);
</OnLoad>
<OnUpdate>
FelwoodGather_TimeCheck(arg1);
FelwoodGather_MapUpdate(arg1);
</OnUpdate>
</Scripts>
<Frames>
<Frame name="FelwoodMapOverlayFrame1" parent="FelwoodMapOverlayFrame" hidden="false" enablemouse="false" movable="false">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
<AbsDimension x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetWidth(this:GetParent():GetWidth());
this:SetHeight(this:GetParent():GetHeight());
this:SetFrameLevel(this:GetParent():GetFrameLevel() + 1);
-- this:SetWidth(WorldMapDetailFrame:GetWidth());
-- this:SetHeight(WorldMapDetailFrame:GetHeight());
-- this:SetFrameLevel(WorldMapPlayer:GetFrameLevel() - 1);
</OnLoad>
</Scripts>
</Frame>
</Frames>
</Frame>
<Button name="FelwoodMainTemplate" inherits="ActionButtonTemplate" hidden="true" virtual="true">
<Size>
<AbsDimension x="12" y="12"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Scripts>
<OnLoad>
this.toolTip="no time";
</OnLoad>
<OnEnter>
local x, y = this:GetCenter();
local parentX, parentY = this:GetParent():GetCenter();
if ( x~=nil and parentX ~= nil and x > parentX ) then
WorldMapTooltip:SetOwner(this, "ANCHOR_LEFT");
else
WorldMapTooltip:SetOwner(this, "ANCHOR_RIGHT");
end
WorldMapTooltip:SetText(this.toolTip);
WorldMapTooltip:Show();
</OnEnter>
<OnLeave>
WorldMapTooltip:Hide();
</OnLeave>
<OnClick>
id = this:GetID();
FelwoodGather_OnClick(arg1, id, this:GetName());
</OnClick>
</Scripts>
<NormalTexture name="$parentTexture" file="Interface\Icons\INV_Misc_Food_45.blp"/>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentLabel" inherits="GameFontHighlightSmallOutline" justifyH="LEFT">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-2" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Button>
<Frame name="FelwoodMainMenu" inherits="UIDropDownMenuTemplate" hidden="true">
<Size>
<AbsDimension x="10" y="10"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-20" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
<Button name="FelwoodMain1" id="1" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain2" id="2" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain3" id="3" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain4" id="4" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain5" id="5" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain6" id="6" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain7" id="7" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain8" id="8" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain9" id="9" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain10" id="10" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain11" id="11" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain12" id="12" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain13" id="13" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain14" id="14" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain15" id="15" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain16" id="16" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain17" id="17" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain18" id="18" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Button name="FelwoodMain19" id="19" inherits="FelwoodMainTemplate" parent="FelwoodMapOverlayFrame1" toplevel="true"/>
<Frame name="FelwoodGather_OptionsFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent" enableKeyboard="true">
<Size>
<AbsDimension x="300" y="300"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</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="FelwoodGather_OptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
<Size>
<AbsDimension x="350" y="64"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="12"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString inherits="GameFontNormal" text="FELWOODGATHER_OPTIONS">
<Anchors>
<Anchor point="TOP" relativeTo="FelwoodGather_OptionsFrameHeader">
<Offset>
<AbsDimension x="0" y="-14"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<CheckButton name="FelwoodGather_AcceptTimer" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="40" y="-30"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(FELWOODGATHER_OPTIONS_ACCEPTTIMER);
</OnLoad>
<OnClick>
FelwoodGather_Config.acceptTimer = (not FelwoodGather_Config.acceptTimer);
</OnClick>
</Scripts>
</CheckButton>
<CheckButton name="FelwoodGather_Notify" inherits="OptionsCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="40" y="-60"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(FWG_NOTIFY);
</OnLoad>
<OnClick>
FelwoodGather_Config.notify = (not FelwoodGather_Config.notify);
</OnClick>
</Scripts>
</CheckButton>
<Slider name="FelwoodGather_SliderWarn1" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="220" y="16"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-110" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(FELWOODGATHER_OPTIONS_WARN1);
getglobal(this:GetName().."High"):SetText(FELWOODGATHER_OPTIONS_WARN_HIGH);
getglobal(this:GetName().."Low"):SetText(FELWOODGATHER_OPTIONS_WARN_LOW);
FelwoodGather_SliderWarn1:SetMinMaxValues(0, 1500);
FelwoodGather_SliderWarn1:SetValueStep(60);
</OnLoad>
<OnValueChanged>
FelwoodGather_Config.warn1 = FelwoodGather_SliderWarn1:GetValue();
FelwoodGather_SliderWarn1Label:SetText((FelwoodGather_Config.warn1/60)..FELWOODGATHER_OPTIONS_MINUTE);
</OnValueChanged>
</Scripts>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentLabel" inherits="GameFontHighlightSmallOutline" justifyH="CENTER">
<Anchors>
<Anchor point="TOP" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Slider>
<Slider name="FelwoodGather_SliderWarn2" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="220" y="16"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-150" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(FELWOODGATHER_OPTIONS_WARN2);
getglobal(this:GetName().."Low"):SetText(FELWOODGATHER_OPTIONS_WARN_HIGH);
getglobal(this:GetName().."High"):SetText(FELWOODGATHER_OPTIONS_WARN_HIGH);
FelwoodGather_SliderWarn2:SetMinMaxValues(0, 1500);
FelwoodGather_SliderWarn2:SetValueStep(60);
</OnLoad>
<OnValueChanged>
FelwoodGather_Config.warn2 = FelwoodGather_SliderWarn2:GetValue();
if(FelwoodGather_Config.warn2 > FelwoodGather_Config.warn1) then
FelwoodGather_Config.warn2 = FelwoodGather_Config.warn1;
FelwoodGather_SliderWarn2:SetValue(FelwoodGather_Config.warn2);
end
FelwoodGather_SliderWarn2Label:SetText((FelwoodGather_Config.warn2/60) ..FELWOODGATHER_OPTIONS_MINUTE);
</OnValueChanged>
</Scripts>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentLabel" inherits="GameFontHighlightSmallOutline" justifyH="CENTER">
<Anchors>
<Anchor point="TOP" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Slider>
<Slider name="FelwoodGather_SliderAlpha" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="220" y="16"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-190" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(FELWOODGATHER_OPTIONS_TRANSPARENCY);
getglobal(this:GetName().."High"):SetText("100%");
getglobal(this:GetName().."Low"):SetText("0%");
FelwoodGather_SliderAlpha:SetMinMaxValues(0.0,1.0);
FelwoodGather_SliderAlpha:SetValueStep(0.1);
</OnLoad>
<OnValueChanged>
FelwoodGather_Config.alpha = FelwoodGather_SliderAlpha:GetValue();
</OnValueChanged>
</Scripts>
</Slider>
<Slider name="FelwoodGather_SliderScale" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="220" y="16"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-220" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(FELWOODGATHER_OPTIONS_ICONSIZE);
getglobal(this:GetName().."High"):SetText("16");
getglobal(this:GetName().."Low"):SetText("4");
FelwoodGather_SliderScale:SetMinMaxValues(4,16);
FelwoodGather_SliderScale:SetValueStep(2);
</OnLoad>
<OnValueChanged>
FelwoodGather_Config.scale = FelwoodGather_SliderScale:GetValue();
</OnValueChanged>
</Scripts>
</Slider>
<Button name="FelwoodGather_OptionsFrameDone" inherits="OptionsButtonTemplate" text="Done">
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="0" y="20"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetText(FELWOODGATHER_OPTIONS_DONE);
</OnLoad>
<OnClick>
FelwoodGather_ToggleConfigWindow();
</OnClick>
</Scripts>
</Button>
</Frames>
<Scripts>
<OnLoad>
FelwoodGather_Options_OnLoad();
</OnLoad>
<OnHide>
FelwoodGather_Options_OnHide();
</OnHide>
</Scripts>
</Frame>
</Ui>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -