-
Notifications
You must be signed in to change notification settings - Fork 82
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 'ee-personal/Psionic-Power-Refactor' int…
…o latest-experimental-psychics
- Loading branch information
Showing
190 changed files
with
2,856 additions
and
1,602 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
19 changes: 19 additions & 0 deletions
19
Content.Client/DeltaV/CartridgeLoader/Cartridges/SecWatchEntryControl.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<BoxContainer xmlns="https://spacestation14.io" | ||
xmlns:cartridges="clr-namespace:Content.Client.DeltaV.CartridgeLoader.Cartridges" | ||
xmlns:customControls="clr-namespace:Content.Client.Administration.UI.CustomControls" | ||
HorizontalExpand="True" | ||
VerticalExpand="True" | ||
Margin="5"> | ||
<!-- All labels populated in constructor --> | ||
<BoxContainer Orientation="Horizontal" HorizontalAlignment="Left"> | ||
<BoxContainer Orientation="Vertical"> | ||
<Label Name="Status"/> | ||
<Label Text="{Loc 'criminal-records-console-reason'}"/> | ||
</BoxContainer> | ||
<customControls:VSeparator StyleClasses="LowDivider" Margin="8 0"/> | ||
<BoxContainer Orientation="Vertical"> | ||
<Label Name="Title"/> | ||
<Label Name="Reason"/> | ||
</BoxContainer> | ||
</BoxContainer> | ||
</BoxContainer> |
21 changes: 21 additions & 0 deletions
21
Content.Client/DeltaV/CartridgeLoader/Cartridges/SecWatchEntryControl.xaml.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,21 @@ | ||
using Content.Shared.CartridgeLoader.Cartridges; | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.UserInterface; | ||
using Robust.Client.UserInterface.Controls; | ||
using Robust.Client.UserInterface.XAML; | ||
|
||
namespace Content.Client.DeltaV.CartridgeLoader.Cartridges; | ||
|
||
[GenerateTypedNameReferences] | ||
public sealed partial class SecWatchEntryControl : BoxContainer | ||
{ | ||
public SecWatchEntryControl(SecWatchEntry entry) | ||
{ | ||
RobustXamlLoader.Load(this); | ||
|
||
Status.Text = Loc.GetString($"criminal-records-status-{entry.Status.ToString().ToLower()}"); | ||
Title.Text = Loc.GetString("sec-watch-entry", ("name", entry.Name), ("job", entry.Job)); | ||
|
||
Reason.Text = entry.Reason ?? Loc.GetString("sec-watch-no-reason"); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
Content.Client/DeltaV/CartridgeLoader/Cartridges/SecWatchUi.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,27 @@ | ||
using Content.Client.UserInterface.Fragments; | ||
using Content.Shared.CartridgeLoader; | ||
using Content.Shared.CartridgeLoader.Cartridges; | ||
using Robust.Client.UserInterface; | ||
|
||
namespace Content.Client.DeltaV.CartridgeLoader.Cartridges; | ||
|
||
public sealed partial class SecWatchUi : UIFragment | ||
{ | ||
private SecWatchUiFragment? _fragment; | ||
|
||
public override Control GetUIFragmentRoot() | ||
{ | ||
return _fragment!; | ||
} | ||
|
||
public override void Setup(BoundUserInterface ui, EntityUid? owner) | ||
{ | ||
_fragment = new SecWatchUiFragment(); | ||
} | ||
|
||
public override void UpdateState(BoundUserInterfaceState state) | ||
{ | ||
if (state is SecWatchUiState cast) | ||
_fragment?.UpdateState(cast); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
Content.Client/DeltaV/CartridgeLoader/Cartridges/SecWatchUiFragment.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<cartridges:SecWatchUiFragment xmlns="https://spacestation14.io" | ||
xmlns:cartridges="clr-namespace:Content.Client.DeltaV.CartridgeLoader.Cartridges" | ||
Margin="5" | ||
VerticalExpand="True"> | ||
<BoxContainer Orientation="Vertical" HorizontalExpand="True" VerticalExpand="True"> | ||
<Label Text="{Loc 'sec-watch-title'}" HorizontalExpand="True" HorizontalAlignment="Center"/> | ||
<Label Name="NoEntries" Text="{Loc 'sec-watch-no-entries'}" HorizontalExpand="True" HorizontalAlignment="Center" Visible="False"/> | ||
<ScrollContainer HorizontalExpand="True" VerticalExpand="True"> | ||
<!-- Populated when state received --> | ||
<BoxContainer Name="Entries" Orientation="Vertical" VerticalAlignment="Top"/> | ||
</ScrollContainer> | ||
</BoxContainer> | ||
</cartridges:SecWatchUiFragment> |
25 changes: 25 additions & 0 deletions
25
Content.Client/DeltaV/CartridgeLoader/Cartridges/SecWatchUiFragment.xaml.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,25 @@ | ||
using Content.Shared.CartridgeLoader.Cartridges; | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.UserInterface.Controls; | ||
using Robust.Client.UserInterface.XAML; | ||
|
||
namespace Content.Client.DeltaV.CartridgeLoader.Cartridges; | ||
|
||
[GenerateTypedNameReferences] | ||
public sealed partial class SecWatchUiFragment : BoxContainer | ||
{ | ||
public SecWatchUiFragment() | ||
{ | ||
RobustXamlLoader.Load(this); | ||
} | ||
|
||
public void UpdateState(SecWatchUiState state) | ||
{ | ||
NoEntries.Visible = state.Entries.Count == 0; | ||
Entries.RemoveAllChildren(); | ||
foreach (var entry in state.Entries) | ||
{ | ||
Entries.AddChild(new SecWatchEntryControl(entry)); | ||
} | ||
} | ||
} |
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
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...idgeLoader/Cartridges/GlimmerMonitorUi.cs → ...ionics/GlimmerMonitor/GlimmerMonitorUi.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
3 changes: 2 additions & 1 deletion
3
.../Cartridges/GlimmerMonitorUiFragment.xaml → ...mmerMonitor/GlimmerMonitorUiFragment.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
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
...anotrasen/Chat/PsionicChatUpdateSystem.cs → ...nics/Telepathy/PsionicChatUpdateSystem.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
File renamed without changes.
File renamed without changes.
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.