mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-10 00:07:27 +00:00
* basic AAC tablet prototype using station map as a base * set up aac component/system * quick phrase prototype will probably touch this up later * basic example phrases just so i have data to work with * get AACWindow to iterate over quick phrases * add the rest of the job phrases * fix this one job name * actually fix prison guard name * buttons for aac window * fix phrase inheritance * add tabs to aac contaner * fix column spacing and add button padding * aac tablet button colors * AAC tablet sends messages now * add aac tablet voice sound yay * add a 1 second cooldown between phrases * subjects for most departments * location phrases * more phrases * cleanup + sort buttons alphabetically * fix these phrases * even more departmental subject phrases * common phrases * cleanup imports * show name of player that pressed button * aac tablet can be used by multipel people after all it does not rely on state changes and also multiple people can press buttons on a tablet at once * capitalize aac its an acronym * you know what it is its more phrases!!!! * SAFETY PHRASES * last second phrases * redundant phrase * and one more hazard phrase for the road * change voice of aac tablet from borg to alto just sounds nicer * localize ALL Phrases i love utility scripting to automate tedious tasks * add AAC tablet to loadout * add AAC tablet to medfab * tweak: use multiple parents instead of whatever this is * add: justice department phrases * add: time quantity phrases * add: ores and kitchen appliance phrases * fix: resolve duplicate phrases * add: aac tablet sprites * add: justice button style * fix: misplaced this line oops * add: justice dept locations * remove: redundant phrase * re-run tests * fix: move aac tablet loadout format * fix: use Identity instead of Name for aac tablet sender * fix: return on send phrase if id is invalid * fix: remove redundant line * fix: use LocId instead of String for phrase text type * add: new phrases bc upstream updates * fix: newlines * tweak: add end comments to these style comments * fix: this phrase was broken lol --------- Co-authored-by: deltanedas <39013340+deltanedas@users.noreply.github.com>
39 lines
957 B
C#
39 lines
957 B
C#
using Content.Shared.DeltaV.AACTablet;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Client.DeltaV.AACTablet.UI;
|
|
|
|
public sealed class AACBoundUserInterface : BoundUserInterface
|
|
{
|
|
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
|
|
|
[ViewVariables]
|
|
private AACWindow? _window;
|
|
|
|
public AACBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
|
|
{
|
|
}
|
|
|
|
protected override void Open()
|
|
{
|
|
base.Open();
|
|
_window?.Close();
|
|
_window = new AACWindow(this, _prototypeManager);
|
|
_window.OpenCentered();
|
|
|
|
_window.PhraseButtonPressed += OnPhraseButtonPressed;
|
|
_window.OnClose += Close;
|
|
}
|
|
|
|
private void OnPhraseButtonPressed(string phraseId)
|
|
{
|
|
SendMessage(new AACTabletSendPhraseMessage(phraseId));
|
|
}
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
base.Dispose(disposing);
|
|
_window?.Dispose();
|
|
}
|
|
}
|