mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-01 08:18:20 -04:00
* Fix CodeGeneratorAttribute not setting priority * Fix Color32.Write not writing a * Logger correctly writes exceptions in Info/Trace * Fix QRectF float truncation * Fix parsing error in Phrase * Fix exception in Widget.IsActiveWindow * Don't try to unlock achievements on the dedicated server * Don't try to CopyFrom an invalid texture * Component.Invoke doesn't throw exception when CancellationToken is cancelled, just returns silently * LobbyQuery.Request returns empty if no SteamMatchmaking pointer * Fix not capturing achievement unlock exception properly * Fix NRE in DisconnectScope * LobbyQuery.RequestAsync returns an empty array instead of null if query fucked up
21 lines
434 B
C#
21 lines
434 B
C#
using Sandbox;
|
|
|
|
/// <summary>
|
|
/// You're not seeing things, QT uses fucking doubles
|
|
/// </summary>
|
|
internal struct QRectF
|
|
{
|
|
public double x;
|
|
public double y;
|
|
public double w;
|
|
public double h;
|
|
|
|
public static implicit operator QRectF( in Rect value )
|
|
{
|
|
return new QRectF { x = value.Left, y = value.Top, w = value.Width, h = value.Height };
|
|
}
|
|
|
|
public readonly Rect Rect => new( (float)x, (float)y, (float)w, (float)h );
|
|
|
|
}
|