From acb20ccdadc17b1cc44215da79b893bbedce7161 Mon Sep 17 00:00:00 2001 From: Eric Mellino Date: Mon, 1 Aug 2016 23:53:09 -0700 Subject: [PATCH] Add a convenience overload for MenuItem The shortcut is often empty. --- src/ImGui.NET/ImGui.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ImGui.NET/ImGui.cs b/src/ImGui.NET/ImGui.cs index 7630c60..41742a3 100644 --- a/src/ImGui.NET/ImGui.cs +++ b/src/ImGui.NET/ImGui.cs @@ -515,6 +515,8 @@ namespace ImGuiNET ImGuiNative.igSeparator(); } + public static bool MenuItem(string label) => MenuItem(label, string.Empty); + public static bool MenuItem(string label, string shortcut) { return MenuItem(label, shortcut, false, true);