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 sync #496

Merged
merged 106 commits into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
08121bc
APC sprite tweaks (#1896)
SonicHDC Feb 27, 2024
a3b7e46
Jug label name translation (#1895)
lapatison Feb 27, 2024
c521d54
Translate #1893 (#1894)
lapatison Feb 27, 2024
61a35a8
Translate close-master-pr message workflow
Morb0 Feb 27, 2024
f819404
NPC steering blending (#25666)
metalgearsloth Feb 28, 2024
7341a3a
Automatic changelog update
PJBot Feb 28, 2024
221719c
Fix cuff interruption messages (#25677)
nikthechampiongr Feb 28, 2024
9884351
Add space heaters (#25250)
Menshin Feb 28, 2024
93d820f
Syndicate Decoy Bundle + Snap Pops (#25333)
musicmanvr Feb 28, 2024
013d125
change laughin pea values (#25672)
potato1234x Feb 28, 2024
22ae277
Automatic changelog update
PJBot Feb 28, 2024
b720871
Fix iron/copper being overtuned (infinite blood exploit!) (#25678)
QuietlyWhisper Feb 28, 2024
a91b445
Automatic changelog update
PJBot Feb 28, 2024
dddec4d
Makes the e-sword light plasma fires, as intended. (#25665)
Cojoke-dot Feb 28, 2024
5425742
Add anchorable flags (#25667)
metalgearsloth Feb 28, 2024
e3f568e
Automatic changelog update
PJBot Feb 28, 2024
ec28e77
Remake cargo orders to contains flatpacks (#25647)
lzk228 Feb 28, 2024
e930583
Automatic changelog update
PJBot Feb 28, 2024
b1ce9e9
fix stray pixels on over ear headsets (#25675)
MACMAN2003 Feb 28, 2024
ee614de
Fix cryostorage removing minds of players who have entered ghost role…
c4llv07e Feb 28, 2024
3914e59
Automatic changelog update
PJBot Feb 28, 2024
4446fd2
Weld To Remove Rust On Reinforced Walls (#25690)
Nairodian Feb 29, 2024
ba4188a
Automatic changelog update
PJBot Feb 29, 2024
ad72567
Remove Eris UI theme (#25673)
UbaserB Feb 29, 2024
3966a65
Automatic changelog update
PJBot Feb 29, 2024
4e6c59c
Refactor antag rule code (#23445)
Rainfey Feb 29, 2024
a281efd
Automatic changelog update
PJBot Feb 29, 2024
3d92e2b
train update (#25707)
Emisse Feb 29, 2024
f135b32
Merge remote-tracking branch 'upstream/master' into upstream-sync
Morb0 Feb 29, 2024
88e3459
Update locale
Morb0 Feb 29, 2024
2f1f6f4
Generate locale
Morb0 Feb 29, 2024
a3c95a0
Fix tests
Morb0 Feb 29, 2024
64510e0
Merge pull request #1907 from space-syndicate/upstream-sync
Morb0 Feb 29, 2024
cdbeebe
Fix locale (#1906)
lzk228 Feb 29, 2024
973b00a
Update secret_weights.yml with survival (#1905)
Deserty0 Feb 29, 2024
02c1d67
Fix some skirts sprite (#1874)
lzk228 Feb 29, 2024
299d37b
Resprite uniforms and winter coat mime (#1898)
DreamlyJack Feb 29, 2024
e5c96d6
Resprite pumpkin head (#1901)
GamaYouNow Feb 29, 2024
4bb5b23
Fix typo (#25712)
lzk228 Feb 29, 2024
e17acdc
Buff Bulk Lizard Plushie Crate (#25122)
SpaceLizardSky Feb 29, 2024
af71f1e
Automatic changelog update
PJBot Feb 29, 2024
3f33c06
Fix admin queue bypass
Morb0 Feb 29, 2024
8c6c19c
Fix PDA home icon (#25721)
LordCarve Feb 29, 2024
e4d98f1
survival nutribricks, lizzers can eat nutribricks, moffs can eat the …
Aexxie Feb 29, 2024
b0e811b
Removes all big O2 tanks from non-emergency & fire lockers + removes …
Flareguy Feb 29, 2024
e274149
Add fill levels to bowls (#25639)
potato1234x Feb 29, 2024
e3b0610
Fix: Dragging items over atmos pipes is slow. (#25629)
Plykiya Feb 29, 2024
7aa0bad
Automatic changelog update
PJBot Feb 29, 2024
c473910
Refactor AME to use ItemSlot for Fuel (#25558)
LordCarve Feb 29, 2024
4301dbb
Update Patrons.yml (#25727)
DrSmugleaf Feb 29, 2024
66cf642
Colourful curtains (#25684)
TheShuEd Feb 29, 2024
3caf580
Automatic changelog update
PJBot Feb 29, 2024
ba8e92d
Under Toned Tail (#25685)
Nairodian Feb 29, 2024
0001c23
Decal Beautification + Palette Update (#25689)
Hanzdegloker Feb 29, 2024
1037bfc
Remove Grandpa from name list (#25725)
Skarletto Feb 29, 2024
b2902ff
Automatic changelog update
PJBot Feb 29, 2024
d479c85
Minor .yaml cleanup (#25717)
lapatison Feb 29, 2024
7b9346d
New Space Ruin: Syndicate Dropship (from /tg/) (also adds plastitaniu…
Flareguy Feb 29, 2024
df271f5
Add handheld map to autolathe (#25719)
lzk228 Feb 29, 2024
650c04b
Automatic changelog update
PJBot Feb 29, 2024
d0f943c
Add detective to saltern (#25714)
SpaceLizardSky Feb 29, 2024
db15efc
Add alternative crafting recipes for reinforced plasma/uranium glass …
MACMAN2003 Feb 29, 2024
36d505b
Automatic changelog update
PJBot Feb 29, 2024
70307f9
Add curtain spawner (#25729)
IamVelcroboy Feb 29, 2024
2852483
remove doorslam sound (#25737)
EmoGarbage404 Mar 1, 2024
c83ad11
Cargo request console search now includes crate descriptions (#25708)
PolterTzi Mar 1, 2024
ad3f3a5
make suicide actions require confirming (#24609)
deltanedas Mar 1, 2024
0ba9df2
Automatic changelog update
PJBot Mar 1, 2024
30ccde0
Make the round end sound collection a cvar (#25741)
DrSmugleaf Mar 1, 2024
1abd1f6
feat(chameleon): Chameleon verb only shows to the wearer (#25746)
exincore Mar 1, 2024
a0d159b
Automatic changelog update
PJBot Mar 1, 2024
507a5b9
Translate Upstream #1907 (#1908)
lapatison Mar 1, 2024
2ee56fa
Signs and posters tweaks (#1912)
lapatison Mar 1, 2024
6a15081
Resprite decoys + box sprite fixes (#1913)
lzk228 Mar 1, 2024
5d94192
CryoSleep Access Fix (#25752)
Nairodian Mar 1, 2024
a4804db
Automatic changelog update
PJBot Mar 1, 2024
8dedbf2
New item: Expensive coat (#25724)
Tunguso4ka Mar 1, 2024
81b0164
Detective's rubber stamp (#25676)
IlyaElDunaev Mar 1, 2024
7a7e0e8
Automatic changelog update
PJBot Mar 1, 2024
c38b44e
Security Belts for Cadets (#25753)
Nairodian Mar 1, 2024
b2069ae
Localize hands interface (#1914)
lzk228 Mar 1, 2024
2904ff4
Add test to check that there are no pending database model changes (#…
DrSmugleaf Mar 2, 2024
55b0cb1
Additional Signage (#25766)
rosieposieeee Mar 2, 2024
2135fdf
Origin Station Update 01.03.2024 (CMO bedsheet) (#25756)
brainfood1183 Mar 2, 2024
0fde3b0
Automatic changelog update
PJBot Mar 2, 2024
9cdffb7
move space heaters into cargo (#25735)
EmoGarbage404 Mar 2, 2024
1c628b2
Automatic changelog update
PJBot Mar 2, 2024
a5200cc
removes the free syndicate headset from the syndicate footsoldier (#2…
Flareguy Mar 2, 2024
bbf8f70
[Maps] Maus update (#1916)
poeMota Mar 2, 2024
c76c847
[Maps] Silly update (#1915)
poeMota Mar 2, 2024
aaf5d0d
Fix `ResearchSystem.Client` `UpdateClientInterface` preconditions. (#…
exincore Mar 2, 2024
8bce86d
[Maps] Delta update (#1917)
poeMota Mar 2, 2024
c775410
Weight based AreaInsert and Dumpable delay, a janitor qol tweak (#24899)
Krunklehorn Mar 2, 2024
e7a806a
Automatic changelog update
PJBot Mar 2, 2024
ecd2d5a
Alerts for breathing plasma/tritium (#24484)
Errant-4 Mar 2, 2024
6476b62
Automatic changelog update
PJBot Mar 2, 2024
3253499
Remove 07 from emote chatsan (#25767)
lzk228 Mar 2, 2024
2e60d33
Make the MRE wrapper count as trash (#25760)
waylon531 Mar 2, 2024
709881f
Automatic changelog update
PJBot Mar 2, 2024
7f060eb
make thief a subgamemode (#25740)
deltanedas Mar 2, 2024
a4debfc
Merge remote-tracking branch 'upstream/master' into upstream-sync
Rxup Mar 2, 2024
f97454a
Merge remote-tracking branch 'wizard/master' into upstream-sync
Rxup Mar 2, 2024
5610405
upd
Rxup Mar 2, 2024
3e8ac18
upd
Rxup Mar 2, 2024
65b3673
cleanup
Rxup Mar 2, 2024
be1f6a1
fix
Rxup Mar 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/close-master-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: superbrothers/close-pull-request@v3
with:
comment: "Thank you for contributing to the Space Station 14 repository. Unfortunately, it looks like you submitted your pull request from the master branch. We suggest you follow [our git usage documentation](https://docs.spacestation14.com/en/general-development/setup/git-for-the-ss14-developer.html) \n\n You can move your current work from the master branch to another branch by doing `git branch <branch_name` and resetting the master branch."
comment: "Благодарим вас за вклад в репозиторий Space Station 14. К сожалению, похоже, что вы отправили свой PR из master-ветки. Мы предлагаем вам следовать [нашей документации по использованию git](https://docs.spacestation14.com/en/general-development/setup/git-for-the-ss14-developer.html) \n\n Вы можете переместить текущую работу из master-ветки в другую ветку, выполнив команду `git branch <название_ветки>` и сбросив измененив в master-ветке."

# If you prefer to just comment on the pr and not close it, uncomment the bellow and comment the above

Expand Down
3 changes: 1 addition & 2 deletions Content.Client/Ame/UI/AmeControllerBoundUserInterface.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Content.Shared.Ame;
using Content.Shared.Ame.Components;
using JetBrains.Annotations;
using Robust.Client.GameObjects;

namespace Content.Client.Ame.UI
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Ame/UI/AmeWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Content.Client.UserInterface;
using Content.Shared.Ame;
using Content.Shared.Ame.Components;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;
Expand Down
90 changes: 90 additions & 0 deletions Content.Client/Atmos/UI/SpaceHeaterBoundUserInterface.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
using Content.Shared.Atmos.Piping.Portable.Components;
using JetBrains.Annotations;
using Robust.Client.UserInterface.Controls;

namespace Content.Client.Atmos.UI;

/// <summary>
/// Initializes a <see cref="SpaceHeaterWindow"/> and updates it when new server messages are received.
/// </summary>
[UsedImplicitly]
public sealed class SpaceHeaterBoundUserInterface : BoundUserInterface
{
[ViewVariables]
private SpaceHeaterWindow? _window;

public SpaceHeaterBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
{
}

protected override void Open()
{
base.Open();

_window = new SpaceHeaterWindow();

if (State != null)
UpdateState(State);

_window.OpenCentered();

_window.OnClose += Close;

_window.ToggleStatusButton.OnPressed += _ => OnToggleStatusButtonPressed();
_window.IncreaseTempRange.OnPressed += _ => OnTemperatureRangeChanged(_window.TemperatureChangeDelta);
_window.DecreaseTempRange.OnPressed += _ => OnTemperatureRangeChanged(-_window.TemperatureChangeDelta);
_window.ModeSelector.OnItemSelected += OnModeChanged;

_window.PowerLevelSelector.OnItemSelected += OnPowerLevelChange;
}

private void OnToggleStatusButtonPressed()
{
_window?.SetActive(!_window.Active);
SendMessage(new SpaceHeaterToggleMessage());
}

private void OnTemperatureRangeChanged(float changeAmount)
{
SendMessage(new SpaceHeaterChangeTemperatureMessage(changeAmount));
}

private void OnModeChanged(OptionButton.ItemSelectedEventArgs args)
{
_window?.ModeSelector.SelectId(args.Id);
SendMessage(new SpaceHeaterChangeModeMessage((SpaceHeaterMode)args.Id));
}

private void OnPowerLevelChange(RadioOptionItemSelectedEventArgs<int> args)
{
_window?.PowerLevelSelector.Select(args.Id);
SendMessage(new SpaceHeaterChangePowerLevelMessage((SpaceHeaterPowerLevel)args.Id));
}

/// <summary>
/// Update the UI state based on server-sent info
/// </summary>
/// <param name="state"></param>
protected override void UpdateState(BoundUserInterfaceState state)
{
base.UpdateState(state);
if (_window == null || state is not SpaceHeaterBoundUserInterfaceState cast)
return;

_window.SetActive(cast.Enabled);
_window.ModeSelector.SelectId((int)cast.Mode);
_window.PowerLevelSelector.Select((int)cast.PowerLevel);

_window.MinTemp = cast.MinTemperature;
_window.MaxTemp = cast.MaxTemperature;
_window.SetTemperature(cast.TargetTemperature);
}

protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
if (!disposing)
return;
_window?.Dispose();
}
}
34 changes: 34 additions & 0 deletions Content.Client/Atmos/UI/SpaceHeaterWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<DefaultWindow xmlns="https://spacestation14.io"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
MinSize="280 160" Title="Temperature Control Unit">

<BoxContainer Name="VboxContainer" Orientation="Vertical" Margin="5 5 5 5" SeparationOverride="10">

<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
<Button Text="{Loc comp-space-heater-ui-status-disabled}" Access="Public" Name="ToggleStatusButton"/>
</BoxContainer>
<BoxContainer Orientation="Horizontal" SeparationOverride="5">
<Label Text="{Loc comp-space-heater-ui-mode}"/>
<OptionButton Access="Public" Name="ModeSelector"/>
</BoxContainer>
</BoxContainer>

<BoxContainer Orientation="Horizontal" HorizontalExpand="True" SeparationOverride="5">
<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
<Label Text="{Loc comp-space-heater-ui-thermostat}"/>
</BoxContainer>
<BoxContainer Orientation="Horizontal" HorizontalExpand="True" HorizontalAlignment="Right">
<Button Text="{Loc comp-space-heater-ui-decrease-temperature-range}" Access="Public" Name="DecreaseTempRange" StyleClasses="OpenRight"/>
<LineEdit Name ="Thermostat" MinSize="55 0"></LineEdit>
<Button Text="{Loc comp-space-heater-ui-increase-temperature-range}" Access="Public" Name="IncreaseTempRange" StyleClasses="OpenLeft"/>
</BoxContainer>
</BoxContainer>

<BoxContainer Orientation="Horizontal" HorizontalExpand="True" SeparationOverride="5">
<Label Text="{Loc comp-space-heater-ui-power-consumption}"/>
<BoxContainer Name="PowerLevelSelectorHBox" Access="Public" SeparationOverride="2"/>
</BoxContainer>

</BoxContainer>
</DefaultWindow>
73 changes: 73 additions & 0 deletions Content.Client/Atmos/UI/SpaceHeaterWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;
using Content.Shared.Atmos;
using Content.Shared.Atmos.Piping.Portable.Components;

namespace Content.Client.Atmos.UI;

/// <summary>
/// Client-side UI used to control a space heater.
/// </summary>
[GenerateTypedNameReferences]
public sealed partial class SpaceHeaterWindow : DefaultWindow
{
// To account for a minimum delta temperature for atmos equalization to trigger we use a fixed step for target temperature increment/decrement
public int TemperatureChangeDelta = 5;
public bool Active;

// Temperatures range bounds in Kelvin (K)
public float MinTemp;
public float MaxTemp;

public RadioOptions<int> PowerLevelSelector;

public SpaceHeaterWindow()
{
RobustXamlLoader.Load(this);

// Add the Mode selector list
foreach (var value in Enum.GetValues<SpaceHeaterMode>())
{
ModeSelector.AddItem(Loc.GetString($"comp-space-heater-mode-{value}"), (int)value);
}

// Add the Power level radio buttons
PowerLevelSelectorHBox.AddChild(PowerLevelSelector = new RadioOptions<int>(RadioOptionsLayout.Horizontal));
PowerLevelSelector.FirstButtonStyle = "OpenRight";
PowerLevelSelector.LastButtonStyle = "OpenLeft";
PowerLevelSelector.ButtonStyle = "OpenBoth";
foreach (var value in Enum.GetValues<SpaceHeaterPowerLevel>())
{
PowerLevelSelector.AddItem(Loc.GetString($"comp-space-heater-ui-{value}-power-consumption"), (int)value);
}

// Only allow temperature increment/decrement of TemperatureChangeDelta
Thermostat.Editable = false;
}

public void SetActive(bool active)
{
Active = active;
ToggleStatusButton.Pressed = active;

if (active)
{
ToggleStatusButton.Text = Loc.GetString("comp-space-heater-ui-status-enabled");
}
else
{
ToggleStatusButton.Text = Loc.GetString("comp-space-heater-ui-status-disabled");
}
}

public void SetTemperature(float targetTemperature)
{
Thermostat.SetText($"{targetTemperature - Atmospherics.T0C} °C");

IncreaseTempRange.Disabled = targetTemperature + TemperatureChangeDelta > MaxTemp;
DecreaseTempRange.Disabled = targetTemperature - TemperatureChangeDelta < MinTemp;
}
}

1 change: 1 addition & 0 deletions Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public void PopulateProducts()
// else if category and not search
if (search.Length == 0 && _category == null ||
search.Length != 0 && prototype.Name.ToLowerInvariant().Contains(search) ||
search.Length != 0 && prototype.Description.ToLowerInvariant().Contains(search) ||
search.Length == 0 && _category != null && prototype.Category.Equals(_category))
{
var button = new CargoProductRow
Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Entry/EntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
using Content.Client.Stylesheets;
using Content.Client.Viewport;
using Content.Client.Voting;
using Content.Shared.Ame;
using Content.Shared.Ame.Components;
using Content.Shared.Gravity;
using Content.Shared.Localizations;
using Robust.Client;
Expand Down
8 changes: 6 additions & 2 deletions Content.Client/NukeOps/WarDeclaratorBoundUserInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
using Content.Shared.NukeOps;
using JetBrains.Annotations;
using Robust.Shared.Configuration;
using Robust.Shared.Timing;

namespace Content.Client.NukeOps;

[UsedImplicitly]
public sealed class WarDeclaratorBoundUserInterface : BoundUserInterface
{
[Dependency] private readonly IConfigurationManager _cfg = default!;
[Dependency] private readonly IGameTiming _gameTiming = default!;
[Dependency] private readonly ILocalizationManager _localizationManager = default!;

[ViewVariables]
private WarDeclaratorWindow? _window;
Expand All @@ -20,7 +23,7 @@ protected override void Open()
{
base.Open();

_window = new WarDeclaratorWindow();
_window = new WarDeclaratorWindow(_gameTiming, _localizationManager);
if (State != null)
UpdateState(State);

Expand All @@ -42,7 +45,8 @@ protected override void UpdateState(BoundUserInterfaceState state)
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
if (disposing) _window?.Dispose();
if (disposing)
_window?.Dispose();
}

private void OnWarDeclaratorActivated(string message)
Expand Down
19 changes: 12 additions & 7 deletions Content.Client/NukeOps/WarDeclaratorWindow.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<DefaultWindow xmlns="https://spacestation14.io"
<controls:FancyWindow xmlns="https://spacestation14.io"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="{Loc 'war-declarator-ui-header'}">
<BoxContainer Orientation="Vertical" SeparationOverride="4" MinWidth="440">
Expand All @@ -7,12 +8,16 @@
MinHeight="200"
Access="Public" />
<Button Name="WarButton"
Text="{Loc 'war-declarator-ui-war-button'}"
Text="{Loc 'war-declarator-ui-try-war-button'}"
StyleClasses="Caution"
Access="Public"/>
<Label Name="StatusLabel"
Access="Public"/>
<Label Name="InfoLabel"
Access="Public"/>
<BoxContainer Orientation="Vertical" HorizontalExpand="True">
<Label Name="StatusLabel"
Align="Center"
Access="Public"/>
<Label Name="InfoLabel"
Align="Center"
Access="Public"/>
</BoxContainer>
</BoxContainer>
</DefaultWindow>
</controls:FancyWindow>
Loading
Loading