-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Prison-Station-14:master' into maprotofix
- Loading branch information
Showing
244 changed files
with
11,649 additions
and
12,069 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
6 changes: 3 additions & 3 deletions
6
Content.Client/Administration/UI/Notes/AdminNotesLinePopup.xaml
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 was deleted.
Oops, something went wrong.
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,10 @@ | ||
<DefaultWindow xmlns="https://spacestation14.io" | ||
Title="{Loc 'character-setup-gui-save-panel-title'}" | ||
Resizable="False"> | ||
|
||
<BoxContainer Orientation="Horizontal" SeparationOverride="4" MinSize="200 40"> | ||
<Button Name="SaveButton" Access="Public" Text="{Loc 'character-setup-gui-save-panel-save'}" StyleClasses="ButtonBig"/> | ||
<Button Name="NoSaveButton" Access="Public" Text="{Loc 'character-setup-gui-save-panel-nosave'}" StyleClasses="ButtonBig"/> | ||
<Button Name="CancelButton" Access="Public" Text="{Loc 'character-setup-gui-save-panel-cancel'}" StyleClasses="ButtonBig"/> | ||
</BoxContainer> | ||
</DefaultWindow> |
21 changes: 21 additions & 0 deletions
21
Content.Client/Lobby/UI/CharacterSetupGuiSavePanel.xaml.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,21 @@ | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.UserInterface.CustomControls; | ||
using Robust.Client.UserInterface.XAML; | ||
|
||
namespace Content.Client.Lobby.UI; | ||
|
||
[GenerateTypedNameReferences] | ||
public sealed partial class CharacterSetupGuiSavePanel : DefaultWindow | ||
{ | ||
public CharacterSetupGuiSavePanel() | ||
{ | ||
RobustXamlLoader.Load(this); | ||
|
||
CancelButton.OnPressed += _ => | ||
{ | ||
Close(); | ||
}; | ||
|
||
CloseButton.Visible = false; | ||
} | ||
} |
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,5 @@ | ||
using Content.Shared.Ninja.Systems; | ||
|
||
namespace Content.Client.Ninja.Systems; | ||
|
||
public sealed class ItemCreatorSystem : SharedItemCreatorSystem; |
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 |
---|---|---|
@@ -1,24 +1,5 @@ | ||
using Content.Shared.Clothing.EntitySystems; | ||
using Content.Shared.Ninja.Components; | ||
using Content.Shared.Ninja.Systems; | ||
|
||
namespace Content.Client.Ninja.Systems; | ||
|
||
/// <summary> | ||
/// Disables cloak prediction since client has no knowledge of battery power. | ||
/// Cloak will still be enabled after server tells it. | ||
/// </summary> | ||
public sealed class NinjaSuitSystem : SharedNinjaSuitSystem | ||
{ | ||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<NinjaSuitComponent, AttemptStealthEvent>(OnAttemptStealth); | ||
} | ||
|
||
private void OnAttemptStealth(EntityUid uid, NinjaSuitComponent comp, AttemptStealthEvent args) | ||
{ | ||
args.Cancel(); | ||
} | ||
} | ||
public sealed class NinjaSuitSystem : SharedNinjaSuitSystem; |
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,5 @@ | ||
using Content.Shared.Ninja.Systems; | ||
|
||
namespace Content.Client.Ninja.Systems; | ||
|
||
public sealed class SpiderChargeSystem : SharedSpiderChargeSystem; |
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,53 @@ | ||
using Content.Server.Atmos.Components; | ||
using Content.Server.Atmos.EntitySystems; | ||
using Content.Server.Atmos.Piping.Components; | ||
using Content.Server.Atmos.Piping.EntitySystems; | ||
using Robust.Shared.GameObjects; | ||
|
||
namespace Content.IntegrationTests.Tests.Atmos; | ||
|
||
[TestFixture] | ||
public sealed class GridJoinTest | ||
{ | ||
private const string CanisterProtoId = "AirCanister"; | ||
|
||
[Test] | ||
public async Task TestGridJoinAtmosphere() | ||
{ | ||
await using var pair = await PoolManager.GetServerClient(); | ||
var server = pair.Server; | ||
|
||
var entMan = server.EntMan; | ||
var protoMan = server.ProtoMan; | ||
var atmosSystem = entMan.System<AtmosphereSystem>(); | ||
var atmosDeviceSystem = entMan.System<AtmosDeviceSystem>(); | ||
var transformSystem = entMan.System<SharedTransformSystem>(); | ||
|
||
var testMap = await pair.CreateTestMap(); | ||
|
||
await server.WaitPost(() => | ||
{ | ||
// Spawn an atmos device on the grid | ||
var canister = entMan.Spawn(CanisterProtoId); | ||
transformSystem.SetCoordinates(canister, testMap.GridCoords); | ||
var deviceComp = entMan.GetComponent<AtmosDeviceComponent>(canister); | ||
var canisterEnt = (canister, deviceComp); | ||
|
||
// Make sure the canister is tracked as an off-grid device | ||
Assert.That(atmosDeviceSystem.IsJoinedOffGrid(canisterEnt)); | ||
|
||
// Add an atmosphere to the grid | ||
entMan.AddComponent<GridAtmosphereComponent>(testMap.Grid); | ||
|
||
// Force AtmosDeviceSystem to update off-grid devices | ||
// This means the canister is now considered on-grid, | ||
// but it's still tracked as off-grid! | ||
Assert.DoesNotThrow(() => atmosDeviceSystem.Update(atmosSystem.AtmosTime)); | ||
|
||
// Make sure that the canister is now properly tracked as on-grid | ||
Assert.That(atmosDeviceSystem.IsJoinedOffGrid(canisterEnt), Is.False); | ||
}); | ||
|
||
await pair.CleanReturnAsync(); | ||
} | ||
} |
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
Oops, something went wrong.