1
0
mirror of synced 2025-01-10 21:41:53 +01:00

impr: Make interactive tutorials select windows when they're highlighted

This commit is contained in:
WerWolv 2024-12-27 19:41:45 +01:00
parent fa1ae8d746
commit edba7051f0

View File

@ -94,6 +94,10 @@ namespace hex {
const auto element = hex::s_highlights->find(id);
if (element != hex::s_highlights->end()) {
hex::s_highlightDisplays->emplace_back(boundingBox, element->second);
const auto window = ImGui::GetCurrentWindow();
if (window != nullptr && window->DockNode != nullptr && window->DockNode->TabBar != nullptr)
window->DockNode->TabBar->NextSelectedTabId = window->TabId;
}
if (id != 0 && boundingBox.Contains(ImGui::GetMousePos())) {