improved Twitch connection menu experience

This commit is contained in:
2024-04-23 05:46:39 -05:00
parent d3beca8014
commit 8e01e9cb9b
10 changed files with 220 additions and 80 deletions

View File

@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Godot;
@@ -86,4 +87,8 @@ public static class ExtensionHelper
else
return par.GetParentOfType<TNode>();
}
public static Vector2 Union(this Vector2 vect, Vector2 other)
=> new(Math.Max(vect.X, other.X), Math.Max(vect.Y, other.Y));
public static Vector2I Union(this Vector2I vect, Vector2 other)
=> new((int)Math.Max(vect.X, other.X), (int)Math.Max(vect.Y, other.Y));
}