Merge remote-tracking branch 'upstream/master' into ed-28-07-2024-upstream

# Conflicts:
#	Resources/Prototypes/Maps/core.yml
#	Resources/Prototypes/Maps/train.yml
#	Resources/Prototypes/Traits/categories.yml
#	Resources/Prototypes/Traits/disabilities.yml
This commit is contained in:
Ed
2024-07-28 20:58:48 +03:00
302 changed files with 7542 additions and 4673 deletions

View File

@@ -380,7 +380,7 @@ namespace Content.Client.Arcade
{
PanelOverride = back,
HorizontalExpand = true,
SizeFlagsStretchRatio = 60
SizeFlagsStretchRatio = 34.25f
};
var backgroundPanel = new PanelContainer
{

View File

@@ -17,6 +17,7 @@ public sealed class BlockGameBoundUserInterface : BoundUserInterface
base.Open();
_menu = this.CreateWindow<BlockGameMenu>();
_menu.OnAction += SendAction;
}
protected override void ReceiveMessage(BoundUserInterfaceMessage message)

View File

@@ -25,6 +25,7 @@ public sealed class SpaceVillainArcadeBoundUserInterface : BoundUserInterface
base.Open();
_menu = this.CreateWindow<SpaceVillainArcadeMenu>();
_menu.OnPlayerAction += SendAction;
}
protected override void ReceiveMessage(BoundUserInterfaceMessage message)

View File

@@ -12,7 +12,7 @@ public sealed partial class MechMenu : FancyWindow
{
[Dependency] private readonly IEntityManager _ent = default!;
private readonly EntityUid _mech;
private EntityUid _mech;
public event Action<EntityUid>? OnRemoveButtonPressed;
@@ -25,6 +25,7 @@ public sealed partial class MechMenu : FancyWindow
public void SetEntity(EntityUid uid)
{
MechView.SetEntity(uid);
_mech = uid;
}
public void UpdateMechStats()

View File

@@ -170,11 +170,12 @@ public sealed partial class ReplaySpectatorSystem
{
var size = grid.LocalAABB.Size.LengthSquared();
if (maxSize is not null && size < maxSize)
continue;
var station = HasComp<StationMemberComponent>(uid);
//We want the first station grid to overwrite any previous non-station grids no matter the size, in case the vgroid was found first
if (maxSize is not null && size < maxSize && !(!stationFound && station))
continue;
if (!station && stationFound)
continue;
@@ -183,7 +184,6 @@ public sealed partial class ReplaySpectatorSystem
if (station)
stationFound = true;
}
coords = new EntityCoordinates(maxUid ?? default, default);