-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,386 changed files
with
31,282 additions
and
883,455 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
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,26 @@ | ||
using Content.Shared.DeltaV.Biscuit; | ||
using Robust.Client.GameObjects; | ||
|
||
namespace Content.Client.DeltaV.Biscuit; | ||
|
||
public sealed class BiscuitSystem : VisualizerSystem<BiscuitVisualsComponent> | ||
{ | ||
[Dependency] private readonly AppearanceSystem _appearance = default!; | ||
|
||
protected override void OnAppearanceChange(EntityUid uid, BiscuitVisualsComponent component, | ||
ref AppearanceChangeEvent args) | ||
{ | ||
if (args.Sprite == null) | ||
return; | ||
|
||
_appearance.TryGetData(uid, BiscuitStatus.Cracked, out bool cracked); | ||
|
||
args.Sprite.LayerSetVisible(BiscuitVisualLayers.Top, !cracked); | ||
} | ||
} | ||
|
||
public enum BiscuitVisualLayers : byte | ||
{ | ||
Base, | ||
Top | ||
} |
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,5 @@ | ||
namespace Content.Client.DeltaV.Biscuit; | ||
|
||
[RegisterComponent] | ||
public sealed partial class BiscuitVisualsComponent : Component | ||
{} |
35 changes: 35 additions & 0 deletions
35
Content.Client/DeltaV/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.DeltaV.CartridgeLoader.Cartridges; | ||
using Content.Shared.CartridgeLoader; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Client.DeltaV.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) | ||
{ | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
Content.Client/DeltaV/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,16 @@ | ||
<cartridges:CrimeAssistUiFragment xmlns:cartridges="clr-namespace:Content.Client.DeltaV.CartridgeLoader.Cartridges" | ||
xmlns="https://spacestation14.io" Margin="1 0 2 0"> | ||
<PanelContainer StyleClasses="BackgroundDark"></PanelContainer> | ||
<BoxContainer Name="ExplanationBox" Orientation="Vertical" MaxWidth="400" VerticalExpand="True" Margin="5"> | ||
<RichTextLabel Name ="Title" /> | ||
<RichTextLabel Name ="Subtitle"/> | ||
<RichTextLabel Name ="Explanation"/> | ||
<RichTextLabel Name ="Punishment" Margin="0,20"/> | ||
</BoxContainer> | ||
<BoxContainer Name="QuestionBox" Orientation="Horizontal" HorizontalAlignment="Center" HorizontalExpand="True" VerticalExpand="False"> | ||
<Button Name="StartButton" Access="Public" Text="Start"/> | ||
<Button Name="HomeButton" Access="Public" Text="Home" Visible="False"/> | ||
<Button Name="YesButton" Access="Public" Text="Yes" Visible="False"/> | ||
<Button Name="NoButton" Access="Public" Text="No" Visible="False"/> | ||
</BoxContainer> | ||
</cartridges:CrimeAssistUiFragment> |
Oops, something went wrong.