forked from space-syndicate/space-station-14-next
-
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.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
419 changed files
with
168,399 additions
and
96,813 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
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
35 changes: 35 additions & 0 deletions
35
Content.Client/_CorvaxNext/CartridgeLoader/Cartridges/CrimeAssistUi.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,35 @@ | ||
using Robust.Client.UserInterface; | ||
using Content.Client.UserInterface.Fragments; | ||
using Content.Shared._CorvaxNext.CartridgeLoader.Cartridges; | ||
using Content.Shared.CartridgeLoader; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Client._CorvaxNext.CartridgeLoader.Cartridges; | ||
|
||
public sealed partial class CrimeAssistUi : UIFragment | ||
{ | ||
private CrimeAssistUiFragment? _fragment; | ||
|
||
public override Control GetUIFragmentRoot() | ||
{ | ||
return _fragment!; | ||
} | ||
|
||
public override void Setup(BoundUserInterface userInterface, EntityUid? fragmentOwner) | ||
{ | ||
_fragment = new CrimeAssistUiFragment(); | ||
|
||
_fragment.OnSync += _ => SendSyncMessage(userInterface); | ||
} | ||
|
||
private void SendSyncMessage(BoundUserInterface userInterface) | ||
{ | ||
var syncMessage = new CrimeAssistSyncMessageEvent(); | ||
var message = new CartridgeUiMessage(syncMessage); | ||
userInterface.SendMessage(message); | ||
} | ||
|
||
public override void UpdateState(BoundUserInterfaceState state) | ||
{ | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
Content.Client/_CorvaxNext/CartridgeLoader/Cartridges/CrimeAssistUiFragment.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,40 @@ | ||
<cartridges:CrimeAssistUiFragment xmlns:cartridges="clr-namespace:Content.Client._CorvaxNext.CartridgeLoader.Cartridges" | ||
xmlns="https://spacestation14.io" | ||
Margin="1 0 2 0"> | ||
|
||
<!-- Main background container --> | ||
<PanelContainer StyleClasses="BackgroundDark"> | ||
<BoxContainer Orientation="Vertical" | ||
HorizontalExpand="True" | ||
VerticalExpand="True" | ||
Margin="5" | ||
SeparationOverride="2"> | ||
|
||
<!-- Explanation Box: Contains title, subtitle, explanations, and punishment details --> | ||
<BoxContainer Name="ExplanationBox" | ||
Orientation="Vertical" | ||
MaxWidth="400" | ||
VerticalExpand="True" | ||
SeparationOverride="2"> | ||
<RichTextLabel Name="Title" /> | ||
<RichTextLabel Name="Subtitle" /> | ||
<RichTextLabel Name="Explanation" /> | ||
<RichTextLabel Name="Punishment" Margin="0,20" /> | ||
</BoxContainer> | ||
|
||
<!-- Question Box: Contains navigation/option buttons --> | ||
<BoxContainer Name="QuestionBox" | ||
Orientation="Horizontal" | ||
HorizontalAlignment="Center" | ||
HorizontalExpand="True" | ||
VerticalExpand="False" | ||
SeparationOverride="2"> | ||
<Button Name="StartButton" Access="Public" /> | ||
<Button Name="HomeButton" Access="Public" Visible="False" /> | ||
<Button Name="YesButton" Access="Public" Visible="False" /> | ||
<Button Name="NoButton" Access="Public" Visible="False" /> | ||
</BoxContainer> | ||
|
||
</BoxContainer> | ||
</PanelContainer> | ||
</cartridges:CrimeAssistUiFragment> |
Oops, something went wrong.