-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
294 changed files
with
6,550 additions
and
13,280 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
4 changes: 2 additions & 2 deletions
4
Content.Client/Administration/UI/Tabs/AdminTab/TeleportWindow.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<DefaultWindow | ||
xmlns="https://spacestation14.io" | ||
xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls" | ||
Title="{Loc admin-ui-teleport}" MinSize="425 230"> | ||
Title="{Loc Teleport}" MinSize="425 230"> | ||
<BoxContainer Orientation="Vertical"> | ||
<cc:PlayerListControl Name="PlayerList" /> | ||
<Button Name="SubmitButton" Text="{Loc admin-ui-teleport}" /> | ||
<Button Name="SubmitButton" Text="{Loc Teleport}" /> | ||
</BoxContainer> | ||
</DefaultWindow> |
18 changes: 9 additions & 9 deletions
18
Content.Client/Administration/UI/Tabs/AdminbusTab/LoadBlueprintsWindow.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<DefaultWindow | ||
xmlns="https://spacestation14.io" Title="{Loc admin-ui-blueprint-load}"> | ||
xmlns="https://spacestation14.io" Title="{Loc Load Blueprint}"> | ||
<BoxContainer Orientation="Vertical"> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-blueprint-map}" MinSize="100 0" /> | ||
<Label Text="{Loc Map}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<OptionButton Name="MapOptions" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-blueprint-path}" MinSize="100 0" /> | ||
<Label Text="{Loc Path}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<LineEdit Name="MapPath" MinSize="200 0" HorizontalExpand="True" Text="/Maps/" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-blueprint-x}" MinSize="100 0" /> | ||
<Label Text="{Loc X}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<SpinBox Name="XCoordinate" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-blueprint-y}" MinSize="100 0" /> | ||
<Label Text="{Loc Y}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<SpinBox Name="YCoordinate" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-blueprint-rotation}" MinSize="100 0" /> | ||
<Label Text="{Loc Rotation}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<SpinBox Name="RotationSpin" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<Button Name="SubmitButton" Text="{Loc admin-ui-blueprint-load}" /> | ||
<Button Name="TeleportButton" Text="{Loc admin-ui-blueprint-teleport}" /> | ||
<Button Name="ResetButton" Text="{Loc admin-ui-blueprint-reset}"></Button> | ||
<Button Name="SubmitButton" Text="{Loc Load Blueprint}" /> | ||
<Button Name="TeleportButton" Text="{Loc Teleport to}" /> | ||
<Button Name="ResetButton" Text="{Loc Reset to default}"></Button> | ||
</BoxContainer> | ||
</DefaultWindow> |
6 changes: 3 additions & 3 deletions
6
Content.Client/Administration/UI/Tabs/AtmosTab/AddAtmosWindow.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<DefaultWindow | ||
xmlns="https://spacestation14.io" Title="{Loc admin-ui-atmos-add}"> | ||
xmlns="https://spacestation14.io" Title="{Loc Add Atmos}"> | ||
<BoxContainer Orientation="Vertical"> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-atmos-grid}" MinSize="100 0" /> | ||
<Label Text="{Loc Grid}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<OptionButton Name="GridOptions" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<Button Name="SubmitButton" Text="{Loc admin-ui-atmos-add}" /> | ||
<Button Name="SubmitButton" Text="{Loc Add Atmos}" /> | ||
</BoxContainer> | ||
</DefaultWindow> |
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
14 changes: 7 additions & 7 deletions
14
Content.Client/Administration/UI/Tabs/AtmosTab/AddGasWindow.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
<DefaultWindow | ||
xmlns="https://spacestation14.io" Title="{Loc admin-ui-atmos-add-gas}"> | ||
xmlns="https://spacestation14.io" Title="{Loc Add Gas}"> | ||
<BoxContainer Orientation="Vertical"> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-atmos-grid}" MinSize="100 0" /> | ||
<Label Text="{Loc Grid}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<OptionButton Name="GridOptions" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-atmos-tile-x}" MinSize="100 0" /> | ||
<Label Text="{Loc TileX}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<SpinBox Name="TileXSpin" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-atmos-tile-y}" MinSize="100 0" /> | ||
<Label Text="{Loc TileY}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<SpinBox Name="TileYSpin" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-atmos-gas}" MinSize="100 0" /> | ||
<Label Text="{Loc Gas}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<OptionButton Name="GasOptions" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-atmos-gas-amount}" MinSize="100 0" /> | ||
<Label Text="{Loc Amount}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<SpinBox Name="AmountSpin" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<Button Name="SubmitButton" Text="{Loc admin-ui-atmos-add-gas}" /> | ||
<Button Name="SubmitButton" Text="{Loc Add Gas}" /> | ||
</BoxContainer> | ||
</DefaultWindow> |
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
10 changes: 5 additions & 5 deletions
10
Content.Client/Administration/UI/Tabs/AtmosTab/FillGasWindow.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<DefaultWindow | ||
xmlns="https://spacestation14.io" Title="{Loc admin-ui-atmos-fill-gas}"> | ||
xmlns="https://spacestation14.io" Title="{Loc Fill Gas}"> | ||
<BoxContainer Orientation="Vertical"> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-atmos-grid}" MinSize="100 0" /> | ||
<Label Text="{Loc Grid}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<OptionButton Name="GridOptions" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-atmos-gas}" MinSize="100 0" /> | ||
<Label Text="{Loc Gas}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<OptionButton Name="GasOptions" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-atmos-gas-amount}" MinSize="100 0" /> | ||
<Label Text="{Loc Amount}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<SpinBox Name="AmountSpin" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<Button Name="SubmitButton" Text="{Loc admin-ui-atmos-fill-gas}" /> | ||
<Button Name="SubmitButton" Text="{Loc Fill Gas}" /> | ||
</BoxContainer> | ||
</DefaultWindow> |
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
12 changes: 6 additions & 6 deletions
12
Content.Client/Administration/UI/Tabs/AtmosTab/SetTemperatureWindow.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
<DefaultWindow | ||
xmlns="https://spacestation14.io" Title="{Loc admin-ui-atmos-set-temperature}"> | ||
xmlns="https://spacestation14.io" Title="{Loc Set Temperature}"> | ||
<BoxContainer Orientation="Vertical"> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-atmos-grid}" MinSize="100 0" /> | ||
<Label Text="{Loc Grid}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<OptionButton Name="GridOptions" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-atmos-tile-x}" MinSize="100 0" /> | ||
<Label Text="{Loc TileX}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<SpinBox Name="TileXSpin" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-atmos-tile-y}" MinSize="100 0" /> | ||
<Label Text="{Loc TileY}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<SpinBox Name="TileYSpin" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Text="{Loc admin-ui-atmos-temperature}" MinSize="100 0" /> | ||
<Label Text="{Loc Temperature}" MinSize="100 0" /> | ||
<Control MinSize="50 0" /> | ||
<SpinBox Name="TemperatureSpin" MinSize="100 0" HorizontalExpand="True" /> | ||
</BoxContainer> | ||
<Button Name="SubmitButton" Text="{Loc admin-ui-atmos-set-temperature}" /> | ||
<Button Name="SubmitButton" Text="{Loc Set Temperature}" /> | ||
</BoxContainer> | ||
</DefaultWindow> |
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
Empty file.
17 changes: 6 additions & 11 deletions
17
...nt.Client/DebugMon/DebugMonitorManager.cs → ...ent.Client/DebugMon/DebugMonitorSystem.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 |
---|---|---|
@@ -1,28 +1,23 @@ | ||
using Content.Client.Administration.Managers; | ||
using Content.Client.Administration.Managers; | ||
using Content.Shared.CCVar; | ||
using Robust.Client; | ||
using Robust.Client.UserInterface; | ||
using Robust.Shared.Configuration; | ||
|
||
|
||
namespace Content.Client.DebugMon; | ||
|
||
/// <summary> | ||
/// This handles preventing certain debug monitors from being usable by non-admins. | ||
/// This handles preventing certain debug monitors from appearing. | ||
/// </summary> | ||
internal sealed class DebugMonitorManager | ||
public sealed class DebugMonitorSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly IConfigurationManager _cfg = default!; | ||
[Dependency] private readonly IClientAdminManager _admin = default!; | ||
[Dependency] private readonly IUserInterfaceManager _userInterface = default!; | ||
[Dependency] private readonly IBaseClient _baseClient = default!; | ||
|
||
public void FrameUpdate() | ||
public override void FrameUpdate(float frameTime) | ||
{ | ||
if (_baseClient.RunLevel == ClientRunLevel.InGame | ||
&& !_admin.IsActive() | ||
&& _cfg.GetCVar(CCVars.DebugCoordinatesAdminOnly)) | ||
{ | ||
if (!_admin.IsActive() && _cfg.GetCVar(CCVars.DebugCoordinatesAdminOnly)) | ||
_userInterface.DebugMonitors.SetMonitor(DebugMonitor.Coords, 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
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.