-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:space-wizards/space-station-14
- Loading branch information
Showing
320 changed files
with
40,595 additions
and
37,372 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using Content.Client.Eui; | ||
using Content.Shared.Bql; | ||
using Content.Shared.Eui; | ||
using JetBrains.Annotations; | ||
using Robust.Client.Console; | ||
|
||
namespace Content.Client.Bql; | ||
|
||
[UsedImplicitly] | ||
public sealed class BqlResultsEui : BaseEui | ||
{ | ||
private readonly BqlResultsWindow _window; | ||
|
||
public BqlResultsEui() | ||
{ | ||
_window = new BqlResultsWindow( | ||
IoCManager.Resolve<IClientConsoleHost>(), | ||
IoCManager.Resolve<ILocalizationManager>() | ||
); | ||
|
||
_window.OnClose += () => SendMessage(new CloseEuiMessage()); | ||
} | ||
|
||
public override void HandleState(EuiStateBase state) | ||
{ | ||
if (state is not BqlResultsEuiState castState) | ||
return; | ||
|
||
_window.Update(castState.Entities); | ||
} | ||
|
||
public override void Closed() | ||
{ | ||
base.Closed(); | ||
|
||
_window.Close(); | ||
} | ||
|
||
public override void Opened() | ||
{ | ||
base.Opened(); | ||
|
||
_window.OpenCentered(); | ||
} | ||
} |
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 'ui-bql-results-title'}"> | ||
<BoxContainer Orientation="Vertical"> | ||
<Label Name="StatusLabel" /> | ||
<ScrollContainer VerticalExpand="True"> | ||
<BoxContainer Orientation="Vertical" Name="ItemList" VerticalExpand="True" /> | ||
</ScrollContainer> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.Console; | ||
using Robust.Client.UserInterface.Controls; | ||
using Robust.Client.UserInterface.CustomControls; | ||
using Robust.Client.UserInterface.XAML; | ||
|
||
namespace Content.Client.Bql; | ||
|
||
[GenerateTypedNameReferences] | ||
internal sealed partial class BqlResultsWindow : DefaultWindow | ||
{ | ||
private readonly IClientConsoleHost _console; | ||
private readonly ILocalizationManager _loc; | ||
|
||
public BqlResultsWindow(IClientConsoleHost console, ILocalizationManager loc) | ||
{ | ||
_console = console; | ||
_loc = loc; | ||
|
||
RobustXamlLoader.Load(this); | ||
} | ||
|
||
protected override Vector2 ContentsMinimumSize => (500, 700); | ||
|
||
public void Update((string name, EntityUid entity)[] entities) | ||
{ | ||
StatusLabel.Text = _loc.GetString("ui-bql-results-status", ("count", entities.Length)); | ||
ItemList.RemoveAllChildren(); | ||
|
||
foreach (var (name, entity) in entities) | ||
{ | ||
var nameLabel = new Label { Text = name, HorizontalExpand = true }; | ||
var tpButton = new Button { Text = _loc.GetString("ui-bql-results-tp") }; | ||
tpButton.OnPressed += _ => _console.ExecuteCommand($"tpto {entity}"); | ||
tpButton.ToolTip = _loc.GetString("ui-bql-results-tp-tooltip"); | ||
|
||
var vvButton = new Button { Text = _loc.GetString("ui-bql-results-vv") }; | ||
vvButton.ToolTip = _loc.GetString("ui-bql-results-vv-tooltip"); | ||
vvButton.OnPressed += _ => _console.ExecuteCommand($"vv {entity}"); | ||
|
||
ItemList.AddChild(new BoxContainer | ||
{ | ||
Orientation = BoxContainer.LayoutOrientation.Horizontal, | ||
Children = { nameLabel, tpButton, vvButton } | ||
}); | ||
} | ||
} | ||
} |
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,12 @@ | ||
using Content.Client.Wires.Visualizers; | ||
using Content.Shared.Doors.Components; | ||
using Content.Shared.Doors.Systems; | ||
using Robust.Client.Animations; | ||
using Robust.Client.GameObjects; | ||
|
||
namespace Content.Client.Doors; | ||
|
||
public sealed class DoorBoltSystem : SharedDoorBoltSystem | ||
{ | ||
// Instantiate sub-class on client for prediction. | ||
} |
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 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.