Skip to content

Commit

Permalink
Revert "Proton (#420)"
Browse files Browse the repository at this point in the history
This reverts commit 939249a
  • Loading branch information
SplikZerys committed Oct 2, 2024
1 parent aa18729 commit 27ee3ab
Show file tree
Hide file tree
Showing 19 changed files with 3 additions and 474 deletions.
1 change: 0 additions & 1 deletion Content.Client/Administration/UI/Bwoink/BwoinkControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<Button Visible="False" Name="Kick" Text="{Loc 'admin-player-actions-kick'}" StyleClasses="OpenBoth" />
<Button Visible="False" Name="Ban" Text="{Loc 'admin-player-actions-ban'}" StyleClasses="OpenBoth" />
<Button Visible="False" Name="Respawn" Text="{Loc 'admin-player-actions-respawn'}" StyleClasses="OpenBoth" />
<Button Visible="False" Name="Screenshot" Text="{Loc 'admin-player-actions-screenshot'}" StyleClasses="OpenBoth"/> <!-- Sunrise edit -->
<Button Visible="False" Name="Follow" Text="{Loc 'admin-player-actions-follow'}" StyleClasses="OpenLeft" />
</BoxContainer>
</BoxContainer>
Expand Down
18 changes: 0 additions & 18 deletions Content.Client/Administration/UI/Bwoink/BwoinkControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,19 +167,6 @@ public BwoinkControl()
_console.ExecuteCommand($"kick \"{_currentPlayer.Username}\"");
};

// Sunrise-start
Screenshot.OnPressed += _ =>
{
if (!AdminUIHelpers.TryConfirm(Screenshot, _confirmations))
{
return;
}

if (_currentPlayer is not null)
_console.ExecuteCommand($"screenshot \"{_currentPlayer.Username}\"");
};
// Sunrise-end

Follow.OnPressed += _ =>
{
if (_currentPlayer is not null)
Expand Down Expand Up @@ -246,11 +233,6 @@ public void UpdateButtons()
Respawn.Visible = _adminManager.CanCommand("respawn");
Respawn.Disabled = !Respawn.Visible || disabled;

// Sunrise-start
Screenshot.Visible = _adminManager.CanCommand("kick");
Screenshot.Disabled = !Screenshot.Visible || disabled;
// Sunrise-end

Follow.Visible = _adminManager.CanCommand("follow");
Follow.Disabled = !Follow.Visible || disabled;
}
Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Administration/UI/Bwoink/BwoinkWindow.xaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<DefaultWindow xmlns="https://spacestation14.io"
xmlns:cc="clr-namespace:Content.Client.Administration.UI.Bwoink"
SetSize="1000 600"
SetSize="900 500"
HeaderClass="windowHeaderAlert"
TitleClass="windowTitleAlert"
Title="{Loc 'bwoink-user-title'}" >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<Button Name="SubmitKickButton" Text="{Loc admin-player-actions-kick}" Disabled="True"/>
<Button Name="SubmitAHelpButton" Text="{Loc admin-player-actions-ahelp}" Disabled="True"/>
<Button Name="SubmitRespawnButton" Text="{Loc admin-player-actions-respawn}" Disabled="True"/>
<Button Name="ScreenshotButton" Text="{Loc admin-player-actions-get-screenshot}" Disabled="True"/> <!-- Sunrise edit -->
</BoxContainer>
</BoxContainer>
</DefaultWindow>
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public PlayerActionsWindow()
SubmitKickButton.OnPressed += SubmitKickButtonOnPressed;
SubmitAHelpButton.OnPressed += SubmitAhelpButtonOnPressed;
SubmitRespawnButton.OnPressed += SubmitRespawnButtonOnPressed;
ScreenshotButton.OnPressed += ScreenshotButtonOnPressed; // Sunrise-edit
PlayerList.OnSelectionChanged += OnListOnOnSelectionChanged;
}

Expand All @@ -37,22 +36,8 @@ private void OnListOnOnSelectionChanged(PlayerInfo? obj)
SubmitKickButton.Disabled = disableButtons;
SubmitAHelpButton.Disabled = disableButtons;
SubmitRespawnButton.Disabled = disableButtons;
ScreenshotButton.Disabled = disableButtons; // Sunrise-edit
}

// Sunrise-start
private void ScreenshotButtonOnPressed(BaseButton.ButtonEventArgs obj)
{
if (_selectedPlayer == null)
return;

if (!AdminUIHelpers.TryConfirm(ScreenshotButton, _confirmations))
return;

IoCManager.Resolve<IClientConsoleHost>().ExecuteCommand($"screenshot \"{_selectedPlayer.Username}\"");
}
// Sunrise-end

private void SubmitKickButtonOnPressed(BaseButton.ButtonEventArgs obj)
{
if (_selectedPlayer == null)
Expand Down
3 changes: 0 additions & 3 deletions Content.Client/Entry/EntryPoint.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Content.Client._Sunrise.Proton; // Sunrise-Proton
using Content.Client._Sunrise.ServersHub;
using Content.Client.Administration.Managers;
using Content.Client.Changelog;
Expand Down Expand Up @@ -73,7 +72,6 @@ public sealed class EntryPoint : GameClient
[Dependency] private readonly ILogManager _logManager = default!;
[Dependency] private readonly DebugMonitorManager _debugMonitorManager = default!;
[Dependency] private readonly ServersHubManager _serversHubManager = default!; // Sunrise-Hub
[Dependency] private readonly ProtonManager _proton = default!; // Sunrise-Proton

public override void Init()
{
Expand Down Expand Up @@ -139,7 +137,6 @@ public override void Init()
_playbackMan.Initialize();

_serversHubManager.Initialize(); // Sunrise-Hub
_proton.Initialize(); // Sunrise-Proton

//AUTOSCALING default Setup!
_configManager.SetCVar("interface.resolutionAutoScaleUpperCutoffX", 1080);
Expand Down
4 changes: 1 addition & 3 deletions Content.Client/IoC/ClientContentIoC.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Content.Client._Sunrise.Proton; // Sunrise-Proton
using Content.Client._Sunrise.ServersHub;
using Content.Client._Sunrise.ServersHub;
using Content.Client.Administration.Managers;
using Content.Client.Changelog;
using Content.Client.Chat.Managers;
Expand Down Expand Up @@ -63,7 +62,6 @@ public static void Register()
// Sunrise

collection.Register<ServersHubManager>(); // Sunrise-Hub
collection.Register<ProtonManager>(); // Sunrise-Proton
}
}
}
80 changes: 0 additions & 80 deletions Content.Client/_Sunrise/Proton/ClientProtonManager.cs

This file was deleted.

10 changes: 0 additions & 10 deletions Content.Client/_Sunrise/Proton/ProtonScreenshotView.xaml

This file was deleted.

20 changes: 0 additions & 20 deletions Content.Client/_Sunrise/Proton/ProtonScreenshotView.xaml.cs

This file was deleted.

28 changes: 0 additions & 28 deletions Content.Client/_Sunrise/Proton/ScreenshotCommand.cs

This file was deleted.

4 changes: 0 additions & 4 deletions Content.Server/Entry/EntryPoint.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Content.Server._Sunrise.GuideGenerator;
using Content.Server._Sunrise.Proton; // Sunrise-Proton
using Content.Server._Sunrise.ServersHub;
using Content.Server._Sunrise.TTS;
using Content.Server.Acz;
Expand Down Expand Up @@ -49,7 +48,6 @@ public sealed class EntryPoint : GameServer
private IVoteManager _voteManager = default!;
private ServerUpdateManager _updateManager = default!;
private ServersHubManager _serversHubManager = default!; // Sunrise-Edit
private ProtonManager _proton = default!; // Proton
private PlayTimeTrackingManager? _playTimeTracking;
private IEntitySystemManager? _sysMan;
private IServerDbManager? _dbManager;
Expand Down Expand Up @@ -97,7 +95,6 @@ public override void Init()
_voteManager = IoCManager.Resolve<IVoteManager>();
_updateManager = IoCManager.Resolve<ServerUpdateManager>();
_serversHubManager = IoCManager.Resolve<ServersHubManager>(); // Sunrise-Edit
_proton = IoCManager.Resolve<ProtonManager>(); // Proton
_playTimeTracking = IoCManager.Resolve<PlayTimeTrackingManager>();
_sysMan = IoCManager.Resolve<IEntitySystemManager>();
_dbManager = IoCManager.Resolve<IServerDbManager>();
Expand All @@ -117,7 +114,6 @@ public override void Init()
IoCManager.Resolve<ServerApi>().Initialize();

IoCManager.Resolve<ServersHubManager>().Initialize(); // Sunrise-Hub
IoCManager.Resolve<ProtonManager>().Initialize(); // Proton

_voteManager.Initialize();
_updateManager.Initialize();
Expand Down
2 changes: 0 additions & 2 deletions Content.Server/IoC/ServerContentIoC.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Content.Server._Sunrise.Proton; // Sunrise-Proton
using Content.Server._Sunrise.ServersHub;
using Content.Server._Sunrise.TTS;
using Content.Server.Administration;
Expand Down Expand Up @@ -79,7 +78,6 @@ public static void Register()
IoCManager.Register<MappingManager>();

IoCManager.Register<ServersHubManager>(); // Sunrise-Hub
IoCManager.Register<ProtonManager>(); // Sunrise-Proton
}
}
}
Loading

0 comments on commit 27ee3ab

Please sign in to comment.