Block snap left/right when textbox is active

This commit is contained in:
Tyfon
2024-08-29 01:21:35 -07:00
parent ce6ea3fcc1
commit d481368cce
5 changed files with 16 additions and 8 deletions

View File

@@ -73,6 +73,11 @@ public class GridWindowButtonsPatch : ModulePatch
public void Update()
{
if (Plugin.TextboxActive())
{
return;
}
bool isTopWindow = window.transform.GetSiblingIndex() == window.transform.parent.childCount - 1;
if (Settings.SnapLeftKeybind.Value.IsDown() && isTopWindow)
{