📄 felwoodgathermap.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/">
<Script file="Localization.lua"/>
<Script file="FelwoodGatherMap.lua"/>
<Button name="FWG_PartyTemplate" virtual="true">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentIcon" file="Interface\WorldMap\WorldMapPartyIcon">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:SetFrameLevel(this:GetFrameLevel() + 1);
this.toolTip="";
if ( this:GetID() == 0 ) then
this.unit = "player";
getglobal(this:GetName().."Icon"):SetTexture("Interface\\WorldMap\\WorldMapPlayerIcon");
else
this.unit = "party"..this:GetID();
-- getglobal(this:GetName().."Icon"):SetTexture("Interface\\WorldMap\\WorldMapPartyIcon");
getglobal(this:GetName().."Icon"):SetTexture("Interface\\AddOns\\FelwoodGather\\PartyIcon.tga");
end
this:SetFrameLevel(this:GetFrameLevel() + 1);
this:RegisterForClicks("LeftButtonUp");
</OnLoad>
<OnEnter>
FelwoodGatherMap_SetupPCToolTip(this);
</OnEnter>
<OnLeave>
FWG_Tooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Frame name="FWG_RaidTemplate" inherits="FWG_PartyTemplate" virtual="true">
<Scripts>
<OnLoad>
this:SetFrameLevel(this:GetFrameLevel() + 1);
this.unit = "raid"..this:GetID();
this:RegisterForClicks("LeftButtonUp");
-- getglobal(this:GetName().."Icon"):SetTexture("Interface\\WorldMap\\WorldMapPartyIcon");
getglobal(this:GetName().."Icon"):SetTexture("Interface\\AddOns\\FelwoodGather\\PartyIcon.tga");
</OnLoad>
</Scripts>
</Frame>
<Button name="FWG_FramePOIButtonTemplate" virtual="true">
<Size>
<AbsDimension x="12" y="12"/>
</Size>
<Scripts>
<OnLoad>
this.toolTip="no time";
this:SetFrameLevel(this:GetFrameLevel() + 2);
this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
</OnLoad>
<OnEnter>
id = this:GetID();
FelwoodGatherMap_SetupToolTip(id);
</OnEnter>
<OnLeave>
FWG_Tooltip:Hide();
</OnLeave>
<OnClick>
id = this:GetID();
FelwoodGather_OnClick(arg1, id, this:GetName());
</OnClick>
</Scripts>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentTexture" file="Interface\Minimap\POIIcons">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
<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>
<!-- the main frame -->
<Frame name="FWG_Frame" hidden="true" movable="true" parent="UIParent">
<Size>
<AbsDimension x="260" y="573"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="100" y="50"/>
</Offset>
</Anchor>
</Anchors>
<Frames>
<Frame name="FWG_BorderFrame">
<Size>
<AbsDimension x="256" y="551"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FWG_Frame" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="2" y="-22"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString name="FWG_MapTitle" inherits="GameFontNormal" text="FelwoodGather Map">
<Anchors>
<Anchor point="TOP" relativeTo="FWG_Frame" relativePoint="TOP">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="FWG_CloseButton" inherits="UIPanelCloseButton">
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="FWG_Frame" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="5" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
FWG_Frame:Hide();
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
<!-- the map frame -->
<Frame name="FWG_WrapperFrame">
<Size>
<AbsDimension x="256" y="551"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FWG_Frame" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="2" y="-22"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<!-- The map, in pieces -->
<Texture name="FWG_Bg1" file="Interface\AddOns\FelwoodGather\FelwoodGatherBG1.tga">
<Size>
<AbsDimension x="256" y="256" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FWG_WrapperFrame" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="FWG_Bg2" file="Interface\AddOns\FelwoodGather\FelwoodGatherBG2.tga">
<Size>
<AbsDimension x="256" y="256" />
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="FWG_Bg1" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="FWG_Bg3" file="Interface\AddOns\FelwoodGather\FelwoodGatherBG3.tga">
<Size>
<AbsDimension x="256" y="64" />
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="FWG_Bg2" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:SetFrameLevel(FWG_BorderFrame:GetFrameLevel() + 1);
FelwoodGatherMap_OnLoad();
</OnLoad>
<OnUpdate>
FelwoodGatherMap_OnUpdate(arg1);
</OnUpdate>
<OnEvent>
FelwoodGatherMap_OnEvent(event)
</OnEvent>
<OnMouseDown>
if(arg1 == "RightButton") then
FelwoodGatherMap_PingMap(arg1);
end
</OnMouseDown>
</Scripts>
</Frame>
<!-- the blip frame -->
<Frame name="FWG_BlipFrame">
<Size>
<AbsDimension x="256" y="551"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FWG_Frame" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="2" y="-22"/>
</Offset>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -