From 0f81d5d99dc562fae0100e4e11e8fa372e49217f Mon Sep 17 00:00:00 2001 From: xPumaa <35280763+xPumaa@users.noreply.github.com> Date: Fri, 8 Jul 2022 21:31:30 +0200 Subject: [PATCH] Right click to cancel nick change --- MareSynchronos/UI/CompactUI.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MareSynchronos/UI/CompactUI.cs b/MareSynchronos/UI/CompactUI.cs index 8212dcc..010df66 100644 --- a/MareSynchronos/UI/CompactUI.cs +++ b/MareSynchronos/UI/CompactUI.cs @@ -234,7 +234,12 @@ namespace MareSynchronos.UI _configuration.Save(); _editNickEntry = string.Empty; } - AttachToolTip("Hit ENTER to save"); + + if (ImGui.IsItemClicked(ImGuiMouseButton.Right)) + { + _editNickEntry = string.Empty; + } + AttachToolTip("Hit ENTER to save\nRight click to cancel"); } ImGui.SameLine(ImGui.GetWindowContentRegionMin().X + ImGui.GetWindowContentRegionWidth() - buttonSize.X);