forked from new-frontiers-14/frontier-station-14
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into Fixes
- Loading branch information
Showing
19 changed files
with
479 additions
and
142 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
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
26 changes: 26 additions & 0 deletions
26
Content.Client/_NF/Shuttles/BUI/ShuttleConsoleBoundUserInterface.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,26 @@ | ||
// New Frontiers - This file is licensed under AGPLv3 | ||
// Copyright (c) 2024 New Frontiers Contributors | ||
// See AGPLv3.txt for details. | ||
using Content.Client.Shuttles.UI; | ||
using Content.Shared._NF.Shuttles.Events; | ||
|
||
namespace Content.Client.Shuttles.BUI | ||
{ | ||
public sealed partial class ShuttleConsoleBoundUserInterface | ||
{ | ||
private void NfOpen() | ||
{ | ||
_window ??= new ShuttleConsoleWindow(); | ||
_window.OnInertiaDampeningModeChanged += OnInertiaDampeningModeChanged; | ||
} | ||
private void OnInertiaDampeningModeChanged(NetEntity? entityUid, InertiaDampeningMode mode) | ||
{ | ||
SendMessage(new SetInertiaDampeningRequest | ||
{ | ||
ShuttleEntityUid = entityUid, | ||
Mode = mode, | ||
}); | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.