forked from new-frontiers-14/frontier-station-14
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inertia dampeners (new-frontiers-14#1620)
* Inertia dampeners Initial push need to disable buttons need to look into issue with max speed diagonal flying and changing directions * adding new station component hide the anchoring buttons on stations (exploit prevention) apply station component to all POI's * navscreen, StationComp->StationDampeningComp * StationDampeningComp, "anchor" tense * restore needed using statement * Server-based dampening state * fix entity in NfGetInertialDampeningMode * past tense event, whitespace, comments * ToggleStabilizer->SetInertiaDampening * ShuttleSystem: check for shuttle deed * Default dampening value: off->dampen * Inertia dampeners Initial push need to disable buttons need to look into issue with max speed diagonal flying and changing directions * adding new station component hide the anchoring buttons on stations (exploit prevention) apply station component to all POI's * ShuttleSystem: initial query * shuttle fix: ShuttleDeedComponent belongs to grid * adding some logging * Cleanup & bugfixes * ShuttleConsole BUI: add Frontier comments * console.ftl: dampening btns: "Cruise, Drive, Park" --------- Co-authored-by: neuPanda <[email protected]> Co-authored-by: Dvir <[email protected]> Co-authored-by: Whatstone <[email protected]>
- Loading branch information
1 parent
904022b
commit 19862df
Showing
18 changed files
with
469 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.