режим предателя + UI референсы и DragonUI

This commit is contained in:
2026-04-09 02:05:29 +04:00
parent 1109d19bb5
commit e8f1ae4ab9
397 changed files with 202750 additions and 37 deletions
+523
View File
@@ -0,0 +1,523 @@
<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="VehicleMenuBar.lua"/>
<CheckButton name="VehicleActionButtonTemplate" inherits="BonusActionButtonTemplate" virtual="true">
<Size>
<AbsDimension x="60" y="60"/>
</Size>
<Scripts>
<OnLoad> <!--Taken directly from BonusActionBarFrame.xml. Added self.alwaysBonus (bug 151189) -->
self.isBonus = 1;
self.alwaysBonus = 1;
ActionButton_OnLoad(self);
self:RegisterEvent("UPDATE_BONUS_ACTIONBAR");
self:SetFrameLevel(self:GetFrameLevel() + 2);
local cooldown = _G[self:GetName().."Cooldown"];
cooldown:SetFrameLevel(cooldown:GetFrameLevel() + 2);
</OnLoad>
<OnClick>
VehicleActionButton_OnClick(self, button, down);
</OnClick>
</Scripts>
</CheckButton>
<Button name="VehicleSeatIndicatorButtonTemplate" virtual="true">
<Size>
<AbsDimension x="25" y="25"/>
</Size>
<Scripts>
<OnLoad>
self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
_G[self:GetName().."Highlight"]:SetAlpha(0.5);
</OnLoad>
<OnClick>
VehicleSeatIndicatorButton_OnClick(self, button, down);
</OnClick>
<OnEnter>
VehicleSeatIndicatorButton_OnEnter(self, motion);
</OnEnter>
<OnLeave>
VehicleSeatIndicatorButton_OnLeave(self, motion);
</OnLeave>
</Scripts>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBG" file="Interface\Vehicles\VehicleSeats">
<TexCoords left="0.0" right="0.1953125" top="0.0" bottom="0.78125"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentPlayerIcon" file="Interface\Vehicles\VehicleSeats">
<Size>
<AbsDimension x="10" y="10"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<TexCoords left="0.390625" right="0.4609375" top="0.0" bottom="0.28125"/>
</Texture>
<Texture name="$parentAllyIcon" file="Interface\Vehicles\VehicleSeats">
<Size>
<AbsDimension x="10" y="10"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<TexCoords left="0.390625" right="0.4609375" top="0.3125" bottom="0.59375"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentPulseTexture" alphaMode="ADD" file="Interface\Vehicles\VehicleSeats" setAllPoints="false" hidden="true">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="-1" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Size>
<AbsDimension x="25" y="25"/>
</Size>
<TexCoords left="0.1875" right="0.3828125" top="0.0" bottom="0.78125"/>
<Color r="0.2" g="0.4" b="0.8"/>
</Texture>
</Layer>
<Layer level="HIGHLIGHT">
<Texture name="$parentHighlight" file="Interface\Vehicles\VehicleSeats" >
<Size>
<AbsDimension x="10" y="10"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<TexCoords left="0.390625" right="0.4609375" top="0.0" bottom="0.28125"/>
</Texture>
</Layer>
</Layers>
</Button>
<Frame name="VehicleSeatIndicator" toplevel="true" enableMouse="false" parent="UIParent" hidden="true">
<Size>
<AbsDimension x="128" y="128"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="MinimapCluster" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="40" y="15"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBackgroundTexture"/>
</Layer>
</Layers>
<Frames>
<Frame name="VehicleSeatIndicatorDropDown" inherits="UIDropDownMenuTemplate" clampedToScreen="true" id="1" hidden="true" />
</Frames>
<Scripts>
<OnLoad function="VehicleSeatIndicator_OnLoad"/>
<OnEvent function="VehicleSeatIndicator_OnEvent"/>
</Scripts>
</Frame>
<Frame name="VehicleMenuBar" toplevel="true" enableMouse="false" parent="UIParent" hidden="true">
<Size>
<AbsDimension x="970" y="53"/>
</Size>
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
<Frames>
<Button name="VehicleMenuBarPitchUpButton">
<Size>
<AbsDimension x="40" y="40"/>
</Size>
<Scripts>
<OnMouseDown function="VehicleAimUpStart"/>
<OnMouseUp function="VehicleAimUpStop"/>
<OnEnter>
GameTooltip_AddNewbieTip(self, AIM_UP, 1.0, 1.0, 1.0, nil);
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
<NormalTexture/>
<PushedTexture/>
<HighlightTexture alphaMode="ADD" file="Interface\Vehicles\UI-Vehicles-Button-Highlight">
<TexCoords left="0.130625" right="0.879375" top="0.130625" bottom="0.879375"/>
</HighlightTexture>
</Button>
<Button name="VehicleMenuBarPitchDownButton">
<Size>
<AbsDimension x="40" y="40"/>
</Size>
<Scripts>
<OnMouseDown function="VehicleAimDownStart"/>
<OnMouseUp function="VehicleAimDownStop"/>
<OnEnter>
GameTooltip_AddNewbieTip(self, AIM_DOWN, 1.0, 1.0, 1.0, nil);
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
<NormalTexture/>
<PushedTexture/>
<HighlightTexture alphaMode="ADD" file="Interface\Vehicles\UI-Vehicles-Button-Highlight">
<TexCoords left="0.130625" right="0.879375" top="0.130625" bottom="0.879375"/>
</HighlightTexture>
</Button>
<Button name="VehicleMenuBarLeaveButton">
<Size>
<AbsDimension x="40" y="40"/>
</Size>
<Scripts>
<OnClick function="VehicleExit"/>
<OnEnter>
GameTooltip_AddNewbieTip(self, LEAVE_VEHICLE, 1.0, 1.0, 1.0, nil);
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
<NormalTexture/>
<PushedTexture/>
<HighlightTexture alphaMode="ADD" file="Interface\Vehicles\UI-Vehicles-Button-Highlight">
<TexCoords left="0.130625" right="0.879375" top="0.130625" bottom="0.879375"/>
</HighlightTexture>
</Button>
<Frame name="VehicleMenuBarActionButtonFrame" frameStrata="HIGH" enableMouse="false" toplevel="true">
<Size>
<AbsDimension x="1" y="1"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT"/>
</Anchors>
<Frames>
<CheckButton name="VehicleMenuBarActionButton1" inherits="VehicleActionButtonTemplate" id="1">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="VehicleMenuBarActionButton2" inherits="VehicleActionButtonTemplate" id="2">
<Anchors>
<Anchor point="LEFT" relativeTo="VehicleMenuBarActionButton1" relativePoint="RIGHT">
<Offset>
<AbsDimension x="2" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="VehicleMenuBarActionButton3" inherits="VehicleActionButtonTemplate" id="3">
<Anchors>
<Anchor point="LEFT" relativeTo="VehicleMenuBarActionButton2" relativePoint="RIGHT">
<Offset>
<AbsDimension x="2" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="VehicleMenuBarActionButton4" inherits="VehicleActionButtonTemplate" id="4">
<Anchors>
<Anchor point="LEFT" relativeTo="VehicleMenuBarActionButton3" relativePoint="RIGHT">
<Offset>
<AbsDimension x="2" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="VehicleMenuBarActionButton5" inherits="VehicleActionButtonTemplate" id="5">
<Anchors>
<Anchor point="LEFT" relativeTo="VehicleMenuBarActionButton4" relativePoint="RIGHT">
<Offset>
<AbsDimension x="2" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="VehicleMenuBarActionButton6" inherits="VehicleActionButtonTemplate" id="6">
<Anchors>
<Anchor point="LEFT" relativeTo="VehicleMenuBarActionButton5" relativePoint="RIGHT">
<Offset>
<AbsDimension x="2" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
</Frames>
</Frame>
<Button name="VehicleMenuBarPitchSlider" enableMouse="true" frameStrata="LOW">
<Size>
<AbsDimension x="31" y="78"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="192" y="5"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBG" file="Interface\Vehicles\UI-Vehicles-Endcap">
<TexCoords left="0.46875" right="0.50390625" top="0.31640625" bottom="0.62109375"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentOverlayThing" file="Interface\Vehicles\UI-Vehicles-Endcap">
<TexCoords left="0.38671875" right="0.46484375" top="0.31640625" bottom="0.62109375"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentMarker" file="Interface\Vehicles\UI-Vehicles-Endcap">
<Size>
<AbsDimension x="30" y="15"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<TexCoords left="0.46875" right="0.50390625" top="0.45" bottom="0.55"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad function="VehicleMenuBarPitch_OnLoad"/>
<OnEvent function="VehicleMenuBarPitch_OnEvent"/>
<OnClick function="VehicleMenuBarPitch_OnClick"/>
</Scripts>
</Button>
<Frame name="VehicleMenuBarArtFrame">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="VehicleMenuBar"/>
<Anchor point="BOTTOMRIGHT" relativeTo="VehicleMenuBar"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBACKGROUND1">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentBACKGROUND2">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentBACKGROUND3">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
</Layer>
<Layer level="BORDER">
<Texture name="$parentBORDER1">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentBORDER2">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentBORDER3">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentBORDER4">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentBORDER5">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentBORDER6">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentBORDER7">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="$parentARTWORK1">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentARTWORK2">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentARTWORK3">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentARTWORK4">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentARTWORK5">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentARTWORK6">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentARTWORK7">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentARTWORK8">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentARTWORK9">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentARTWORK10">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentOVERLAY1">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentOVERLAY2">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentOVERLAY3">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<Texture name="$parentOVERLAY4">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<StatusBar name="VehicleMenuBarHealthBar" drawLayer="ARTWORK" inherits="TextStatusBar" orientation="VERTICAL" rotatesTexture="true">
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBackground">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentOverlay">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<FontString name="$parentText" inherits="VehicleMenuBarStatusBarText">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="3"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
TextStatusBar_Initialize(self);
self.textLockable = 1;
self.cvar = "playerStatusText";
self.cvarLabel = "STATUS_TEXT_PLAYER";
self.showPercentage = true;
self.prefix = HEALTH;
self.tooltipAnchorPoint = "ANCHOR_LEFT";
self.alwaysShow = true;
UnitFrameHealthBar_Initialize("vehicle", self, VehicleMenuBarHealthBarText, true);
UnitFrameHealthBar_Update(self, "vehicle");
</OnLoad>
<OnValueChanged>
UnitFrameHealthBar_OnValueChanged(self, value);
VehicleMenuBarStatusBars_ShowTooltip(self);
</OnValueChanged>
<OnEnter function="VehicleMenuBarStatusBars_ShowTooltip"/>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
</StatusBar>
<StatusBar name="VehicleMenuBarPowerBar" drawLayer="ARTWORK" inherits="TextStatusBar" orientation="VERTICAL" rotatesTexture="true">
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBackground">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentOverlay">
<Anchors>
<Anchor point="BOTTOM"/>
</Anchors>
</Texture>
<FontString name="$parentText" inherits="VehicleMenuBarStatusBarText">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="3"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
TextStatusBar_Initialize(self);
self.textLockable = 1;
self.cvar = "playerStatusText";
self.cvarLabel = "STATUS_TEXT_PLAYER";
self.showPercentage = true;
self.tooltipAnchorPoint = "ANCHOR_RIGHT";
self.alwaysShow = true;
UnitFrameManaBar_Initialize ("vehicle", self, VehicleMenuBarPowerBarText, true);
UnitFrameManaBar_Update(self, "vehicle");
</OnLoad>
<OnValueChanged function="VehicleMenuBarStatusBars_ShowTooltip"/>
<OnEnter function="VehicleMenuBarStatusBars_ShowTooltip"/>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
</StatusBar>
</Frames>
</Frame>
</Frames>
<Scripts>
<OnLoad>
RaiseFrameLevel(VehicleMenuBarArtFrame);
VehicleMenuBar_OnLoad(self);
</OnLoad>
<OnEvent function="VehicleMenuBar_OnEvent"/>
</Scripts>
</Frame>
</Ui>