Store chat size (#14299)

This commit is contained in:
Flipp Syder
2023-03-06 11:06:57 -08:00
committed by GitHub
parent 11d4dec18f
commit ec3a519a46
10 changed files with 224 additions and 19 deletions

View File

@@ -31,6 +31,8 @@ public sealed class ResizableChatBox : ChatBox
private byte _clampIn;
public Action<Vector2>? OnChatResizeFinish;
protected override void EnteredTree()
{
base.EnteredTree();
@@ -73,6 +75,8 @@ public sealed class ResizableChatBox : ChatBox
// If this is done in MouseDown, Godot won't fire MouseUp as you need focus to receive MouseUps.
UserInterfaceManager.KeyboardFocused?.ReleaseKeyboardFocus();
OnChatResizeFinish?.Invoke(Size);
}
base.KeyBindUp(args);