Add dirty UI element visualization to UISystem, fix Frame being constantly updated.

This commit is contained in:
2025-06-24 23:29:26 +02:00
parent b2f3e1c351
commit d44341974f
5 changed files with 60 additions and 31 deletions

View File

@@ -1,3 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using Voile.Resources;
namespace Voile
@@ -32,7 +33,7 @@ namespace Voile
/// </summary>
/// <param name="value">An instance of a retrieved <see cref="Resource"/>.</param>
/// <returns><c>true</c> if the resource was successfully retrieved, otherwise <c>false</c>.</returns>
public bool TryGetValue(out T? value)
public bool TryGetValue([NotNullWhen(true)] out T? value)
{
value = ResourceManager.GetResource<T>(Guid);
return value != null;