Skip to main content

UINotification

An abstract class in Root.Township, Alta.Meta.UI.ServerManagement.

Base for a notification shown in the menu's server management panel, such as a friend request, group invite or API status. Client only.

Constructors​

MemberWhat it is
protected UINotification(Panel panel)Creates an UINotification from panel.

Fields​

MemberWhat it is
protected static Logger loggerShared logger for notifications.
protected Panel panelThe panel this notification belongs to.

Properties​

MemberWhat it is
virtual string AcceptText { get; }Label of the accept button.
virtual string DeclineText { get; }Label of the decline button.
virtual bool IsUsingAccept { get; }Whether the accept button is shown.
virtual bool IsUsingDecline { get; }Whether the decline button is shown.
abstract string Message { get; }Full message text.
abstract string ShortMessage { get; }Short text for the list.
virtual bool ShowLoadingForAccept { get; }Whether a loading state shows while Accept runs.
abstract DateTime Time { get; }When the notification happened.

Methods​

MemberWhat it is
virtual Task<bool> Accept()Runs when the player accepts. Returns whether it worked; true by default.
virtual Task Decline()Runs when the player declines. Does nothing by default.
virtual void OnSelected(bool isSelected)Called when the notification is selected or unselected in the list.

Used in​

Members of other types that take, return or hold a UINotification: