Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream 27.08.2024 #63

Merged
merged 56 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
5c0753b
Add a bool to disable buckling on InteractHand (#30001)
ShadowCommander Aug 25, 2024
d067e80
Automatic changelog update
PJBot Aug 25, 2024
cf6f783
fix(FieldGenerators): Don't show nonsense popup (#30469)
Brandon-Huu Aug 25, 2024
2d87d65
bagel update (#31440)
Emisse Aug 25, 2024
ff3d797
Fix-Resprite emote icons (#31447)
lzk228 Aug 26, 2024
2871e69
Moff cooking. Part one. (#30668)
lzk228 Aug 26, 2024
5e8cee7
Automatic changelog update
PJBot Aug 26, 2024
dd7c395
Cog update (#31458)
Spessmann Aug 26, 2024
2e1b486
Add BUI ctor tests (#31463)
metalgearsloth Aug 26, 2024
83ec967
Predict EmitSoundOnUIOpen (#31464)
metalgearsloth Aug 26, 2024
569b081
Bots now make sound when they speak (#31471)
Moomoobeef Aug 26, 2024
93829ec
Automatic changelog update
PJBot Aug 26, 2024
982a172
Change the science radio channel color (#31319)
Winkarst-cpu Aug 26, 2024
84caaec
Automatic changelog update
PJBot Aug 26, 2024
2d85b4e
Move OnGhostAttempt to GhostSystem (#31445)
Winkarst-cpu Aug 26, 2024
082deb9
Fix energy sword visuals (#31478)
slarticodefast Aug 26, 2024
6c66e8f
Automatic changelog update
PJBot Aug 26, 2024
c6d2919
Replace obsolete code in shuttle systems. (#31408)
Mervill Aug 26, 2024
4dc750a
Replaces small fans on most shuttles with directional fans. (#31495)
QueerNB Aug 26, 2024
f65f57e
Automatic changelog update
PJBot Aug 26, 2024
e85c25a
Replace obsolete functions in NPC systems (#31448)
Mervill Aug 26, 2024
367cdfd
Make guidebook remember where you left off (#31375)
12rabbits Aug 26, 2024
7789b07
Automatic changelog update
PJBot Aug 26, 2024
76223e8
Remove double-iteration from the mime wall code (#31420)
Winkarst-cpu Aug 27, 2024
332f4f4
Merge remote-tracking branch 'upstream/master' into upstream
Aug 27, 2024
e345aa3
fix method OnEntityEnter in DamageContactsSystem (#31494)
Dimastra Aug 27, 2024
43ae135
Automatic changelog update
PJBot Aug 27, 2024
e300905
Make Gas Miners indestructable, anchorable, and pullable. (#31370)
JIPDawg Aug 27, 2024
54bfaa1
Automatic changelog update
PJBot Aug 27, 2024
2f4e297
bagel update (#31502)
Emisse Aug 27, 2024
55771ca
Minor fixes to character profile editor save/reset buttons (#31505)
eoineoineoin Aug 27, 2024
af65af8
Centcom & FTLDestination cleanup (#30226)
IProduceWidgets Aug 27, 2024
517aace
Fix swapped around Safety Moth poster graphics (#31507)
SaphireLattice Aug 27, 2024
292eccc
Automatic changelog update
PJBot Aug 27, 2024
ef18b31
Mark explosives as a contraband (#31508)
Winkarst-cpu Aug 27, 2024
e689892
Automatic changelog update
PJBot Aug 27, 2024
e9cc93c
Mark the syndicate raid helmet as a Syndicate contraband (#31512)
Winkarst-cpu Aug 27, 2024
c8d30a9
Automatic changelog update
PJBot Aug 27, 2024
28d6e6d
Add title to multitool door-access-configuration window (#31504)
eoineoineoin Aug 27, 2024
4f3c247
Restrict the explorer gas mask to cargo (#31514)
Winkarst-cpu Aug 27, 2024
7a4fc39
Automatic changelog update
PJBot Aug 27, 2024
3492ca1
Fix stray pixel in officer beersky barsign (#31517)
lzk228 Aug 27, 2024
8ffae8d
Scale text in admin player overlay (#31503)
eoineoineoin Aug 27, 2024
250628f
New Health Analyzer UI (#30834)
Aeshus Aug 27, 2024
4b91f1f
Automatic changelog update
PJBot Aug 27, 2024
d304123
Disable Arrivals message for Cryosleep (#30888)
Aeshus Aug 27, 2024
bf7653e
Automatic changelog update
PJBot Aug 27, 2024
e59b9c5
Remove glibc from devshell (#28842)
stellar-novas Aug 27, 2024
f92ef41
Automated whitelists (#23985)
Simyon264 Aug 27, 2024
3adb4bc
Make nukie plushie a non-contraband item (#31516)
Winkarst-cpu Aug 27, 2024
9b8ed01
Automatic changelog update
PJBot Aug 27, 2024
2aea194
fix uncapitalized "S" in Salvage Specialist (#31529)
saintmuntzer Aug 27, 2024
ef634a1
Make AKMS security restricted (#31519)
Winkarst-cpu Aug 27, 2024
6c1027b
Automatic changelog update
PJBot Aug 27, 2024
509ff2e
Merge remote-tracking branch 'upstream/master' into upstream
Aug 27, 2024
0891a2c
fix energy shield
Aug 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions Content.Client/Administration/AdminNameOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
using Content.Client.Administration.Systems;
using Robust.Client.Graphics;
using Robust.Client.ResourceManagement;
using Robust.Client.UserInterface;
using Robust.Shared;
using Robust.Shared.Enums;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Maths;
using Robust.Shared.Configuration;

namespace Content.Client.Administration;

Expand All @@ -15,14 +15,16 @@ internal sealed class AdminNameOverlay : Overlay
private readonly IEntityManager _entityManager;
private readonly IEyeManager _eyeManager;
private readonly EntityLookupSystem _entityLookup;
private readonly IUserInterfaceManager _userInterfaceManager;
private readonly Font _font;

public AdminNameOverlay(AdminSystem system, IEntityManager entityManager, IEyeManager eyeManager, IResourceCache resourceCache, EntityLookupSystem entityLookup)
public AdminNameOverlay(AdminSystem system, IEntityManager entityManager, IEyeManager eyeManager, IResourceCache resourceCache, EntityLookupSystem entityLookup, IUserInterfaceManager userInterfaceManager)
{
_system = system;
_entityManager = entityManager;
_eyeManager = eyeManager;
_entityLookup = entityLookup;
_userInterfaceManager = userInterfaceManager;
ZIndex = 200;
_font = new VectorFont(resourceCache.GetResource<FontResource>("/Fonts/NotoSans/NotoSans-Regular.ttf"), 10);
}
Expand Down Expand Up @@ -57,16 +59,18 @@ protected override void Draw(in OverlayDrawArgs args)
continue;
}

var lineoffset = new Vector2(0f, 11f);
var uiScale = _userInterfaceManager.RootControl.UIScale;
var lineoffset = new Vector2(0f, 11f) * uiScale;
var screenCoordinates = _eyeManager.WorldToScreen(aabb.Center +
new Angle(-_eyeManager.CurrentEye.Rotation).RotateVec(
aabb.TopRight - aabb.Center)) + new Vector2(1f, 7f);
if (playerInfo.Antag)
{
args.ScreenHandle.DrawString(_font, screenCoordinates + (lineoffset * 2), "ANTAG", Color.OrangeRed);
args.ScreenHandle.DrawString(_font, screenCoordinates + (lineoffset * 2), "ANTAG", uiScale, Color.OrangeRed);
;
}
args.ScreenHandle.DrawString(_font, screenCoordinates+lineoffset, playerInfo.Username, playerInfo.Connected ? Color.Yellow : Color.White);
args.ScreenHandle.DrawString(_font, screenCoordinates, playerInfo.CharacterName, playerInfo.Connected ? Color.Aquamarine : Color.White);
args.ScreenHandle.DrawString(_font, screenCoordinates+lineoffset, playerInfo.Username, uiScale, playerInfo.Connected ? Color.Yellow : Color.White);
args.ScreenHandle.DrawString(_font, screenCoordinates, playerInfo.CharacterName, uiScale, playerInfo.Connected ? Color.Aquamarine : Color.White);
}
}
}
5 changes: 4 additions & 1 deletion Content.Client/Administration/Systems/AdminSystem.Overlay.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Content.Client.Administration.Managers;
using Robust.Client.Graphics;
using Robust.Client.ResourceManagement;
using Robust.Client.UserInterface;
using Robust.Shared.Configuration;

namespace Content.Client.Administration.Systems
{
Expand All @@ -11,6 +13,7 @@ public sealed partial class AdminSystem
[Dependency] private readonly IClientAdminManager _adminManager = default!;
[Dependency] private readonly IEyeManager _eyeManager = default!;
[Dependency] private readonly EntityLookupSystem _entityLookup = default!;
[Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!;

private AdminNameOverlay _adminNameOverlay = default!;

Expand All @@ -19,7 +22,7 @@ public sealed partial class AdminSystem

private void InitializeOverlay()
{
_adminNameOverlay = new AdminNameOverlay(this, EntityManager, _eyeManager, _resourceCache, _entityLookup);
_adminNameOverlay = new AdminNameOverlay(this, EntityManager, _eyeManager, _resourceCache, _entityLookup, _userInterfaceManager);
_adminManager.AdminStatusUpdated += OnAdminStatusUpdated;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<controls:FancyWindow xmlns="https://spacestation14.io"
xmlns:ui="clr-namespace:Content.Client.UserInterface"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls">
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
Title="{Loc door-electronics-configuration-title}">
<Control Name="AccessLevelControlContainer" />

</controls:FancyWindow>
1 change: 1 addition & 0 deletions Content.Client/Entry/EntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public override void Init()
_prototypeManager.RegisterIgnore("lobbyBackground");
_prototypeManager.RegisterIgnore("gamePreset");
_prototypeManager.RegisterIgnore("noiseChannel");
_prototypeManager.RegisterIgnore("playerConnectionWhitelist");
_prototypeManager.RegisterIgnore("spaceBiome");
_prototypeManager.RegisterIgnore("worldgenConfig");
_prototypeManager.RegisterIgnore("gameRule");
Expand Down
4 changes: 4 additions & 0 deletions Content.Client/Guidebook/Controls/GuidebookWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public sealed partial class GuidebookWindow : FancyWindow, ILinkClickHandler

private readonly ISawmill _sawmill;

public ProtoId<GuideEntryPrototype> LastEntry;

public GuidebookWindow()
{
RobustXamlLoader.Load(this);
Expand Down Expand Up @@ -90,6 +92,8 @@ private void ShowGuide(GuideEntry entry)

_sawmill.Error($"Failed to parse contents of guide document {entry.Id}.");
}

LastEntry = entry.Id;
}

public void UpdateGuides(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public HealthAnalyzerBoundUserInterface(EntityUid owner, Enum uiKey) : base(owne
protected override void Open()
{
base.Open();

_window = this.CreateWindow<HealthAnalyzerWindow>();

_window.Title = EntMan.GetComponent<MetaDataComponent>(Owner).EntityName;
Expand Down
70 changes: 43 additions & 27 deletions Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml
Original file line number Diff line number Diff line change
@@ -1,48 +1,64 @@
<controls:FancyWindow
<controls:FancyWindow
xmlns="https://spacestation14.io"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
SetSize="250 100">
MaxHeight="525"
MinWidth="300">
<ScrollContainer
Margin="5 5 5 5"
ReturnMeasure="True"
VerticalExpand="True">
<BoxContainer
Name="RootContainer"
VerticalExpand="True"
Orientation="Vertical">
<Label
Name="NoPatientDataText"
Text="{Loc health-analyzer-window-no-patient-data-text}" />

<BoxContainer
Name="PatientDataContainer"
Orientation="Vertical"
Margin="0 0 5 10">
<BoxContainer Name="ScanModePanel" HorizontalExpand="True" Visible="False" Margin="0 5 0 0">
<Label
Name="ScanMode"
Align="Left"
Text="{Loc health-analyzer-window-scan-mode-text}"/>
<Label
Name="ScanModeText"
Align="Right"
HorizontalExpand="True"/>
Margin="0 0 0 5"
Orientation="Vertical">
<BoxContainer Orientation="Horizontal" Margin="0 0 0 5">
<SpriteView OverrideDirection="South" Scale="2 2" Name="SpriteView" Access="Public" SetSize="64 64" />
<BoxContainer Margin="5 0 0 0" Orientation="Vertical" VerticalAlignment="Top">
<RichTextLabel Name="NameLabel" SetWidth="150" />
<Label Name="SpeciesLabel" VerticalAlignment="Top" StyleClasses="LabelSubText" />
</BoxContainer>
<Label Margin="0 0 5 0" HorizontalExpand="True" HorizontalAlignment="Right" VerticalExpand="True"
VerticalAlignment="Top" Name="ScanModeLabel"
Text="{Loc 'health-analyzer-window-entity-unknown-text'}" />
</BoxContainer>
<Label
Name="PatientName"/>
<Label
Name="Temperature"
Margin="0 5 0 0"/>
<Label
Name="BloodLevel"
Margin="0 5 0 0"/>
<Label
Name="Bleeding"
Margin="0 5 0 0"/>
<Label
Name="patientDamageAmount"
Margin="0 15 0 0"/>

<PanelContainer StyleClasses="LowDivider" />

<GridContainer Margin="0 5 0 0" Columns="2">
<Label Text="{Loc 'health-analyzer-window-entity-status-text'}" />
<Label Name="StatusLabel" />
<Label Text="{Loc 'health-analyzer-window-entity-temperature-text'}" />
<Label Name="TemperatureLabel" />
<Label Text="{Loc 'health-analyzer-window-entity-blood-level-text'}" />
<Label Name="BloodLabel" />
<Label Text="{Loc 'health-analyzer-window-entity-damage-total-text'}" />
<Label Name="DamageLabel" />
</GridContainer>
</BoxContainer>

<PanelContainer Name="AlertsDivider" Visible="False" StyleClasses="LowDivider" />

<BoxContainer Name="AlertsContainer" Visible="False" Margin="0 5" Orientation="Horizontal"
HorizontalExpand="True" HorizontalAlignment="Center">

</BoxContainer>

<PanelContainer StyleClasses="LowDivider" />

<BoxContainer
Name="GroupsContainer"
Margin="0 5 0 5"
Orientation="Vertical">
</BoxContainer>

</BoxContainer>
</ScrollContainer>
</controls:FancyWindow>
Loading
Loading