Skip to content

Commit

Permalink
Merge pull request #1467 from space-syndicate/upstream-sync
Browse files Browse the repository at this point in the history
Upstream sync
  • Loading branch information
Morb0 authored Sep 28, 2023
2 parents 84dbb75 + 610b0dc commit 93eb5f6
Show file tree
Hide file tree
Showing 164 changed files with 1,731 additions and 8,085 deletions.
9 changes: 9 additions & 0 deletions Content.Client/Armor/ArmorSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Content.Shared.Armor;

namespace Content.Client.Armor;

/// <inheritdoc/>
public sealed class ArmorSystem : SharedArmorSystem
{

}
8 changes: 8 additions & 0 deletions Content.Client/Doors/AirlockSystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Content.Client.Wires.Visualizers;
using Content.Shared.Doors.Components;
using Content.Shared.Doors.Systems;
using Content.Shared.Prying.Components;
using Robust.Client.Animations;
using Robust.Client.GameObjects;

Expand All @@ -15,6 +16,13 @@ public override void Initialize()
base.Initialize();
SubscribeLocalEvent<AirlockComponent, ComponentStartup>(OnComponentStartup);
SubscribeLocalEvent<AirlockComponent, AppearanceChangeEvent>(OnAppearanceChange);
SubscribeLocalEvent<AirlockComponent, BeforePryEvent>(OnAirlockPryAttempt);
}

private void OnAirlockPryAttempt(EntityUid uid, AirlockComponent component, ref BeforePryEvent args)
{
// TODO: Temporary until airlocks predicted.
args.Cancelled = true;
}

private void OnComponentStartup(EntityUid uid, AirlockComponent comp, ComponentStartup args)
Expand Down
6 changes: 4 additions & 2 deletions Content.Client/Guidebook/Controls/GuideReagentEmbed.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
VerticalAlignment="Center"/>
</BoxContainer>
<BoxContainer Orientation="Vertical" VerticalAlignment="Center">
<TextureRect TexturePath="/Textures/Interface/Misc/beakerlarge.png"/>
<Label Text="{Loc 'guidebook-reagent-recipes-mix'}"
<TextureRect TexturePath="/Textures/Interface/Misc/beakerlarge.png"
HorizontalAlignment="Center"/>
<Label Name="MixLabel"
Text="{Loc 'guidebook-reagent-recipes-mix'}"
HorizontalAlignment="Center"/>
</BoxContainer>
<BoxContainer Orientation="Vertical" HorizontalExpand="True" VerticalAlignment="Center">
Expand Down
6 changes: 6 additions & 0 deletions Content.Client/Guidebook/Controls/GuideReagentEmbed.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ private void GenerateControl(ReagentPrototype reagent)
reactantMsg.Pop();
ReactantsLabel.SetMessage(reactantMsg);

if (reactionPrototype.MinimumTemperature > 0.0f)
{
MixLabel.Text = Loc.GetString("guidebook-reagent-recipes-mix-and-heat",
("temperature", reactionPrototype.MinimumTemperature));
}

var productMsg = new FormattedMessage();
var productCount = reactionPrototype.Products.Count;
var u = 0;
Expand Down
36 changes: 0 additions & 36 deletions Content.Client/Guidebook/Controls/GuidebookControl.xaml

This file was deleted.

187 changes: 0 additions & 187 deletions Content.Client/Guidebook/Controls/GuidebookControl.xaml.cs

This file was deleted.

30 changes: 28 additions & 2 deletions Content.Client/Guidebook/Controls/GuidebookWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,34 @@
xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls"
xmlns:fancyTree="clr-namespace:Content.Client.UserInterface.Controls.FancyTree"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
xmlns:controls1="clr-namespace:Content.Client.Guidebook.Controls"
SetSize="750 700"
MinSize="100 200"
Resizable="True"
Title="{Loc 'guidebook-window-title'}">
<controls1:GuidebookControl Name="Guidebook" Access="Public"/>
<SplitContainer Orientation="Horizontal" HorizontalExpand="True" Name="Split">
<!-- Guide select -->
<BoxContainer Orientation="Horizontal" Name="TreeBox">
<fancyTree:FancyTree Name="Tree" VerticalExpand="True" HorizontalExpand="True" Access="Public"/>
<cc:VSeparator StyleClasses="LowDivider" Margin="0 -2"/>
</BoxContainer>
<BoxContainer Orientation="Vertical" HorizontalExpand="True" VerticalExpand="True">
<BoxContainer Name="SearchContainer" Visible="False" HorizontalExpand="True">
<LineEdit
Name="SearchBar"
PlaceHolder="{Loc 'guidebook-filter-placeholder-text'}"
HorizontalExpand="True"
Margin="0 5 10 5">
</LineEdit>
</BoxContainer>
<ScrollContainer Name="Scroll" HScrollEnabled="False" HorizontalExpand="True" VerticalExpand="True">
<Control>
<BoxContainer Orientation="Vertical" Name="EntryContainer" Margin="5 5 5 5" Visible="False"/>
<BoxContainer Orientation="Vertical" Name="Placeholder" Margin="5 5 5 5">
<Label HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Loc 'guidebook-placeholder-text'}"/>
<Label HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Loc 'guidebook-placeholder-text-2'}"/>
</BoxContainer>
</Control>
</ScrollContainer>
</BoxContainer>
</SplitContainer>
</controls:FancyWindow>
Loading

0 comments on commit 93eb5f6

Please sign in to comment.