fix: Tutorial highlights not working anymore correctly

This commit is contained in:
WerWolv 2024-12-27 18:28:22 +01:00
parent a476617432
commit fa1ae8d746
1 changed files with 7 additions and 0 deletions

View File

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