режим предателя + UI референсы и DragonUI
This commit is contained in:
@@ -0,0 +1,220 @@
|
||||
<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">
|
||||
<Frame name="WorldMapUnitTemplate" hidden="true" virtual="true">
|
||||
<Size>
|
||||
<AbsDimension x="16" y="16"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER"/>
|
||||
</Anchors>
|
||||
<Layers>
|
||||
<Layer level="ARTWORK">
|
||||
<Texture name="$parentIcon" file="Interface\WorldMap\WorldMapPartyIcon" setAllPoints="true" parentKey="icon"/>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
WorldMapUnit_OnLoad(self);
|
||||
</OnLoad>
|
||||
<OnEnter>
|
||||
WorldMapUnit_OnEnter(self, motion);
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
WorldMapUnit_OnLeave(self, motion);
|
||||
</OnLeave>
|
||||
<OnEvent>
|
||||
WorldMapUnit_OnEvent(self, event, ...);
|
||||
</OnEvent>
|
||||
<OnMouseUp>
|
||||
WorldMapUnit_OnMouseUp(self, button, "WorldMapRaid", "WorldMapParty");
|
||||
</OnMouseUp>
|
||||
<OnShow>
|
||||
WorldMapUnit_OnShow(self);
|
||||
</OnShow>
|
||||
<OnHide>
|
||||
WorldMapUnit_OnHide(self);
|
||||
</OnHide>
|
||||
</Scripts>
|
||||
</Frame>
|
||||
<Frame name="WorldMapPartyUnitTemplate" inherits="WorldMapUnitTemplate" virtual="true">
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
WorldMapUnit_OnLoad(self);
|
||||
self.unit = "party"..self:GetID();
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
</Frame>
|
||||
<Frame name="WorldMapRaidUnitTemplate" inherits="WorldMapUnitTemplate" virtual="true">
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
WorldMapUnit_OnLoad(self);
|
||||
self.unit = "raid"..self:GetID();
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
</Frame>
|
||||
<Frame name="WorldMapFlagTemplate" hidden="true" virtual="true">
|
||||
<Size>
|
||||
<AbsDimension x="24" y="24"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER"/>
|
||||
</Anchors>
|
||||
<Layers>
|
||||
<Layer level="ARTWORK">
|
||||
<Texture name="$parentTexture" setAllPoints="true"/>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
RaiseFrameLevelByTwo(self);
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
</Frame>
|
||||
<Frame name="WorldMapVehicleTemplate" hidden="true" virtual="true">
|
||||
<Size>
|
||||
<AbsDimension x="45" y="45"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER"/>
|
||||
</Anchors>
|
||||
<HitRectInsets>
|
||||
<AbsInset left="10" right="10" top="10" bottom="10"/>
|
||||
</HitRectInsets>
|
||||
<Layers>
|
||||
<Layer level="ARTWORK">
|
||||
<Texture name="$parentTexture" setAllPoints="true"/>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
RaiseFrameLevelByTwo(self);
|
||||
</OnLoad>
|
||||
<OnEnter>
|
||||
WorldMapUnit_OnEnter(self, motion);
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
WorldMapUnit_OnLeave(self, motion);
|
||||
</OnLeave>
|
||||
</Scripts>
|
||||
</Frame>
|
||||
<Frame name="WorldMapCorpseTemplate" hidden="true" virtual="true">
|
||||
<Size>
|
||||
<AbsDimension x="16" y="16"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER"/>
|
||||
</Anchors>
|
||||
<Layers>
|
||||
<Layer level="ARTWORK">
|
||||
<Texture file="Interface\Minimap\POIIcons" setAllPoints="true">
|
||||
<TexCoords left="0.56640625" right="0.6328125" top="0.00390625" bottom="0.0703125"/>
|
||||
</Texture>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
RaiseFrameLevel(self);
|
||||
</OnLoad>
|
||||
<OnEnter>
|
||||
WorldMapPOIFrame.allowBlobTooltip = false;
|
||||
local x, y = self:GetCenter();
|
||||
local parentX, parentY = self:GetParent():GetCenter();
|
||||
if ( x > parentX ) then
|
||||
WorldMapTooltip:SetOwner(self, "ANCHOR_LEFT");
|
||||
else
|
||||
WorldMapTooltip:SetOwner(self, "ANCHOR_RIGHT");
|
||||
end
|
||||
WorldMapTooltip:SetText(CORPSE_RED);
|
||||
WorldMapTooltip:Show();
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
WorldMapPOIFrame.allowBlobTooltip = true;
|
||||
WorldMapTooltip:Hide();
|
||||
</OnLeave>
|
||||
</Scripts>
|
||||
</Frame>
|
||||
<Frame name="WorldMapDebugObjectTemplate" hidden="true" virtual="true">
|
||||
<Layers>
|
||||
<Layer level="ARTWORK">
|
||||
<Texture file="Interface\RaidFrame\UI-RaidFrame-Threat" setAllPoints="true"/>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self.texture = self:GetRegions();
|
||||
</OnLoad>
|
||||
<OnEnter>
|
||||
WorldMapUnit_OnEnter(self, motion);
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
WorldMapUnit_OnLeave(self, motion);
|
||||
</OnLeave>
|
||||
<OnMouseUp>
|
||||
if ( IsModifierKeyDown("CTRL") ) then
|
||||
TeleportToDebugObject(self.index);
|
||||
else
|
||||
WorldMapButton_OnClick(WorldMapButton, button);
|
||||
end
|
||||
</OnMouseUp>
|
||||
</Scripts>
|
||||
</Frame>
|
||||
<Frame name="WorldMapQuestFrameTemplate" enableMouse="true" virtual="true">
|
||||
<Size>
|
||||
<AbsDimension x="281" y="100"/>
|
||||
</Size>
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<FontString name="$parentTitle" inherits="GameFontNormal" justifyH="LEFT" justifyV="TOP" spacing="2" parentKey="title">
|
||||
<Size>
|
||||
<AbsDimension x="240" y="0"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="34" y="-8"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
<Color r="1" g="0.82" b="0" />
|
||||
</FontString>
|
||||
<Texture name="$parentCheck" file="Interface\Buttons\UI-CheckBox-Check" hidden="true" parentKey="check">
|
||||
<Size>
|
||||
<AbsDimension x="16" y="16"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="TOPRIGHT" />
|
||||
</Anchors>
|
||||
</Texture>
|
||||
<FontString name="$parentDashes" inherits="GameFontNormal" justifyH="LEFT" justifyV="BOTTOM" spacing="2" parentKey="dashes">
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="0" y="-4"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
<Color r="0.8" g="0.8" b="0.8" />
|
||||
</FontString>
|
||||
<FontString name="$parentObjectives" inherits="GameFontNormal" justifyH="LEFT" justifyV="BOTTOM" spacing="2" parentKey="objectives">
|
||||
<Size>
|
||||
<AbsDimension x="232" y="0"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="8" y="-4"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
<Color r="0.8" g="0.8" b="0.8" />
|
||||
</FontString>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Scripts>
|
||||
<OnEnter function="WorldMapQuestFrame_OnEnter" />
|
||||
<OnLeave function="WorldMapQuestFrame_OnLeave" />
|
||||
<OnMouseDown function="WorldMapQuestFrame_OnMouseDown" />
|
||||
<OnMouseUp function="WorldMapQuestFrame_OnMouseUp" />
|
||||
</Scripts>
|
||||
</Frame>
|
||||
</Ui>
|
||||
Reference in New Issue
Block a user