v1.0.2.0: Restore Hotbar Layout, fix config right-click menu, hotbar fallback
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -47,11 +47,12 @@ namespace HSUI.Helpers
|
||||
ImGui.SameLine();
|
||||
}
|
||||
|
||||
public static Node? DrawExportResetContextMenu(Node node, bool canExport, bool canReset)
|
||||
public static Node? DrawExportResetContextMenu(Node node, bool canExport, bool canReset, string? uniqueId = null)
|
||||
{
|
||||
Node? nodeToReset = null;
|
||||
string popupId = string.IsNullOrEmpty(uniqueId) ? "ResetContextMenu" : "ResetContextMenu_" + uniqueId;
|
||||
|
||||
if (ImGui.BeginPopupContextItem("ResetContextMenu"))
|
||||
if (ImGui.BeginPopupContextItem(popupId))
|
||||
{
|
||||
if (canExport && ImGui.Selectable("Export"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user