1
0
mirror of synced 2025-02-02 12:27:25 +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 477b284041
commit a3a3f52b48

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())) {