mirror of
https://codeberg.org/Ikatono/TierMaker.git
synced 2025-10-28 20:45:35 -05:00
improved Twitch connection menu experience
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user