Add a convenience overload for MenuItem

The shortcut is often empty.
internals
Eric Mellino 9 years ago
parent c054db3719
commit acb20ccdad
  1. 2
      src/ImGui.NET/ImGui.cs

@ -515,6 +515,8 @@ namespace ImGuiNET
ImGuiNative.igSeparator(); ImGuiNative.igSeparator();
} }
public static bool MenuItem(string label) => MenuItem(label, string.Empty);
public static bool MenuItem(string label, string shortcut) public static bool MenuItem(string label, string shortcut)
{ {
return MenuItem(label, shortcut, false, true); return MenuItem(label, shortcut, false, true);

Loading…
Cancel
Save