Block snap left/right when textbox is active
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
using BepInEx.Bootstrap;
|
||||
using Comfort.Common;
|
||||
using EFT;
|
||||
using TMPro;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
namespace UIFixes;
|
||||
|
||||
@@ -84,6 +86,12 @@ public class Plugin : BaseUnityPlugin
|
||||
return inRaid.HasValue && inRaid.Value;
|
||||
}
|
||||
|
||||
public static bool TextboxActive()
|
||||
{
|
||||
return EventSystem.current?.currentSelectedGameObject != null &&
|
||||
EventSystem.current.currentSelectedGameObject.GetComponent<TMP_InputField>() != null;
|
||||
}
|
||||
|
||||
private static bool? IsFikaPresent;
|
||||
|
||||
public static bool FikaPresent()
|
||||
|
||||
Reference in New Issue
Block a user