-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:space-wizards/space-station-14
- Loading branch information
Showing
493 changed files
with
201,207 additions
and
192,099 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then | ||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8=" | ||
fi | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
Content.Client/Chemistry/EntitySystems/ChemistryGuideDataSystem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Content.Shared.Chemistry; | ||
|
||
namespace Content.Client.Chemistry.EntitySystems; | ||
|
||
/// <inheritdoc/> | ||
public sealed class ChemistryGuideDataSystem : SharedChemistryGuideDataSystem | ||
{ | ||
/// <inheritdoc/> | ||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeNetworkEvent<ReagentGuideRegistryChangedEvent>(OnReceiveRegistryUpdate); | ||
} | ||
|
||
private void OnReceiveRegistryUpdate(ReagentGuideRegistryChangedEvent message) | ||
{ | ||
var data = message.Changeset; | ||
foreach (var remove in data.Removed) | ||
{ | ||
Registry.Remove(remove); | ||
} | ||
|
||
foreach (var (key, val) in data.GuideEntries) | ||
{ | ||
Registry[key] = val; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<BoxContainer xmlns="https://spacestation14.io" | ||
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client" | ||
Orientation="Vertical" | ||
Margin="5 5 5 5"> | ||
<PanelContainer HorizontalExpand="True"> | ||
<PanelContainer.PanelOverride> | ||
<gfx:StyleBoxFlat BorderThickness="1" BorderColor="#777777"/> | ||
</PanelContainer.PanelOverride> | ||
<BoxContainer Orientation="Vertical"> | ||
<PanelContainer Name="NameBackground" HorizontalExpand="True" VerticalExpand="False"> | ||
<RichTextLabel Name="ReagentName" HorizontalAlignment="Center"/> | ||
</PanelContainer> | ||
<BoxContainer Name="RecipesContainer" HorizontalExpand="True"> | ||
<Collapsible Orientation="Vertical" HorizontalExpand="True"> | ||
<CollapsibleHeading Title="{Loc 'guidebook-reagent-recipes-header'}"/> | ||
<CollapsibleBody> | ||
<BoxContainer Name="RecipesDescriptionContainer" | ||
Margin="10 0 10 0" | ||
Orientation="Horizontal" | ||
HorizontalAlignment="Stretch" | ||
HorizontalExpand="True"> | ||
<BoxContainer Orientation="Vertical" HorizontalExpand="True" VerticalAlignment="Center"> | ||
<RichTextLabel Name="ReactantsLabel" | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Center"/> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Vertical" VerticalAlignment="Center"> | ||
<TextureRect TexturePath="/Textures/Interface/Misc/beakerlarge.png"/> | ||
<Label Text="{Loc 'guidebook-reagent-recipes-mix'}" | ||
HorizontalAlignment="Center"/> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Vertical" HorizontalExpand="True" VerticalAlignment="Center"> | ||
<RichTextLabel Name="ProductsLabel" | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Center"/> | ||
</BoxContainer> | ||
</BoxContainer> | ||
</CollapsibleBody> | ||
</Collapsible> | ||
</BoxContainer> | ||
<BoxContainer Name="EffectsContainer" HorizontalExpand="True"> | ||
<Collapsible Orientation="Vertical"> | ||
<CollapsibleHeading Title="{Loc 'guidebook-reagent-effects-header'}"/> | ||
<CollapsibleBody> | ||
<BoxContainer Name="EffectsDescriptionContainer" | ||
Orientation="Vertical" | ||
Margin="10 0 10 0" | ||
HorizontalExpand="True"/> | ||
</CollapsibleBody> | ||
</Collapsible> | ||
</BoxContainer> | ||
<BoxContainer Margin="10 5 10 10" HorizontalExpand="True"> | ||
<!-- The troublemaker !--> | ||
<RichTextLabel Name="ReagentDescription" HorizontalAlignment="Left"/> | ||
</BoxContainer> | ||
</BoxContainer> | ||
</PanelContainer> | ||
</BoxContainer> |
Oops, something went wrong.