From f430b035c4ea02c1957e23626349e571b60ec4b1 Mon Sep 17 00:00:00 2001 From: Anna Date: Sat, 12 Jun 2021 14:45:45 -0400 Subject: [PATCH] feat: add option for user input to ui --- XIVChatPlugin/PluginUI.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/XIVChatPlugin/PluginUI.cs b/XIVChatPlugin/PluginUI.cs index c420c49..ecad279 100644 --- a/XIVChatPlugin/PluginUI.cs +++ b/XIVChatPlugin/PluginUI.cs @@ -162,6 +162,17 @@ namespace XIVChatPlugin { ImGui.Spacing(); + var messagesCountAsInput = this.Plugin.Config.MessagesCountAsInput; + if (WithWhiteText(() => ImGui.Checkbox("Count messages as user input", ref messagesCountAsInput))) { + this.Plugin.Config.MessagesCountAsInput = messagesCountAsInput; + this.Plugin.Config.Save(); + } + + ImGui.SameLine(); + HelpMarker("If this is enabled, sending a message from any client will count as user input, resetting the AFK timer."); + + ImGui.Spacing(); + var pairingMode = this.Plugin.Config.PairingMode; if (WithWhiteText(() => ImGui.Checkbox("Pairing mode", ref pairingMode))) { this.Plugin.Config.PairingMode = pairingMode;