mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-01 08:18:20 -04:00
* 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
23 lines
623 B
C#
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;
|
|
}
|