mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-19 07:01:09 +03:00
* Scrolling text screens * remove ScrollingTextScreenComponent, fix comments * shave a pixel off of the frame, commas cut off * logMissing to false, state does may not exist * variable timing, offset array serializer * namespaces are a state of mind * Use CustomArraySerializer instead of a one-off * better alphabetize punctuation text * Unneeded VV access, 4-space meta.json * Subscription attributes * cleanup pass * shift left * AJCM's suggestions Co-authored-by: AJCM-git <60196617+AJCM-git@users.noreply.github.com> * PadRight returns a string. * kill the loop, use funny division instead * smoother animations, dark stripe on outer frame * Update for the new comms console UI * communications console changes * can't spell pain without UI * the ocho * it's big brain time * just a touch wider * UI polish pass - forgive the sins * look at my attributions dog * EDITED * Text screen layer init deferred until startup * that's a new one --------- Co-authored-by: AJCM-git <60196617+AJCM-git@users.noreply.github.com>
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using Content.Client.Resources;
|
|
using Content.Client.Stylesheets;
|
|
using Robust.Client.Graphics;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using static Content.Client.Stylesheets.StylesheetHelpers;
|
|
|
|
namespace Content.Client.Communications.UI;
|
|
|
|
/// <summary>
|
|
/// A sheetlet for the communications console, for the character limit labels.
|
|
/// </summary>
|
|
[CommonSheetlet]
|
|
public sealed class CommunicationsConsoleSheetlet : Sheetlet<PalettedStylesheet>
|
|
{
|
|
/// <summary>
|
|
/// The name of a style class for char limit labels.
|
|
/// </summary>
|
|
public const string CharLimit = "CommsConsoleCharLimit";
|
|
|
|
/// <summary>
|
|
/// The name of a style class for char limit labels when the reference text has exceeded its limit.
|
|
/// </summary>
|
|
public const string CharLimitExceeded = "CommsConsoleCharLimitExceeded";
|
|
|
|
/// <inheritdoc/>
|
|
public override StyleRule[] GetRules(PalettedStylesheet sheet, object config)
|
|
{
|
|
return
|
|
[
|
|
E<Label>()
|
|
.Class(CharLimit)
|
|
.Font(sheet.BaseFont.GetFont(8)),
|
|
|
|
E<Label>()
|
|
.Class(CharLimitExceeded)
|
|
.Font(sheet.BaseFont.GetFont(8))
|
|
.FontColor(Color.Red)
|
|
];
|
|
}
|
|
}
|