From fa1ae8d746be2944b7116d1f08ff0b91374bee45 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 27 Dec 2024 18:28:22 +0100 Subject: [PATCH] fix: Tutorial highlights not working anymore correctly --- lib/libimhex/source/api/tutorial_manager.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/libimhex/source/api/tutorial_manager.cpp b/lib/libimhex/source/api/tutorial_manager.cpp index 825d57388..fd84578d3 100644 --- a/lib/libimhex/source/api/tutorial_manager.cpp +++ b/lib/libimhex/source/api/tutorial_manager.cpp @@ -33,6 +33,13 @@ namespace hex { idStack.push_back(0); } + void add(const char *string) { + const ImGuiID seed = idStack.back(); + const ImGuiID id = ImHashStr(string, 0, seed); + + idStack.push_back(id); + } + void add(const std::string &string) { const ImGuiID seed = idStack.back(); const ImGuiID id = ImHashStr(string.c_str(), string.length(), seed);