Files
sbox-public/engine/Sandbox.Menu/Account.cs
Garry Newman ad7ce148cb Welcome Screen (#4854)
* Hide FeaturedStoreItem
* Mark Label.IsRich and Label.Text with [Parameter] so it shows in Razor intellisense
* Add support for cubic-bezier()
* Add support for step-start, step-end, step( x, x )
* Change how button:active styles to reduce ignored clicks
* Fix ArgumentNullException calling SelectionSystem.Remove
* Protect against NRE in UISystem.RunDeferredDeletion
* Welcome screen
* Support all the ways box-shadow can be parsed
2026-05-18 19:13:03 +01:00

23 lines
623 B
C#

using System;
namespace Sandbox.MenuEngine;
[Hide]
public static partial class Account
{
/// <summary>
/// Return true if the user has linked their account to a streamer service like twitch
/// </summary>
public static bool HasLinkedStreamerServices => Sandbox.AccountInformation.Links.Count() > 0;
/// <summary>
/// A list of favourites packages
/// </summary>
public static IEnumerable<Package> Favourites => AccountInformation.Favourites;
/// <summary>
/// The date and time the user first created their account
/// </summary>
public static DateTimeOffset FirstSeen => AccountInformation.FirstSeen;
}