Right click to cancel nick change

This commit is contained in:
xPumaa
2022-07-08 21:31:30 +02:00
parent 5a3ae5154c
commit 0f81d5d99d

View File

@@ -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);