| 24063 | for (int path_n = g.NavFocusRoute.Size - 1; path_n >= 0; path_n--) |
| 24064 | { |
| 24065 | const ImGuiFocusScopeData& focus_scope = g.NavFocusRoute[path_n]; |
| 24066 | SameLine(0.0f, 0.0f); |
| 24067 | Text("0x%08X/", focus_scope.ID); |
| 24068 | SetItemTooltip("In window \"%s\"", FindWindowByID(focus_scope.WindowID)->Name); |
| 24069 | } |
| 24070 | Text("NavWindowingTarget: '%s'", g.NavWindowingTarget ? g.NavWindowingTarget->Name : "NULL"); |
| 24071 | Unindent(); |
| 24072 | |
| 24073 | TreePop(); |
| 24074 | } |
| 24075 | |
| 24076 | // Overlay: Display windows Rectangles and Begin Order |
| 24077 | if (cfg->ShowWindowsRects || cfg->ShowWindowsBeginOrder) |
| 24078 | { |
| 24079 | for (ImGuiWindow* window : g.Windows) |
| 24080 | { |
| 24081 | if (!window->WasActive) |
| 24082 | continue; |
| 24083 | ImDrawList* draw_list = GetForegroundDrawList(window); |
| 24084 | if (cfg->ShowWindowsRects) |
| 24085 | { |
| 24086 | ImRect r = Funcs::GetWindowRect(window, cfg->ShowWindowsRectsType); |
| 24087 | draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 0, 128, 255)); |
| 24088 | } |
| 24089 | if (cfg->ShowWindowsBeginOrder && !(window->Flags & ImGuiWindowFlags_ChildWindow)) |
| 24090 | { |
| 24091 | char buf[32]; |
| 24092 | ImFormatString(buf, IM_COUNTOF(buf), "%d", window->BeginOrderWithinContext); |
| 24093 | float font_size = GetFontSize(); |
| 24094 | draw_list->AddRectFilled(window->Pos, window->Pos + ImVec2(font_size, font_size), IM_COL32(200, 100, 100, 255)); |
| 24095 | draw_list->AddText(window->Pos, IM_COL32(255, 255, 255, 255), buf); |
| 24096 | } |
| 24097 | } |
| 24098 | } |
| 24099 | |
| 24100 | // Overlay: Display Tables Rectangles |
| 24101 | if (cfg->ShowTablesRects) |
| 24102 | { |
| 24103 | for (int table_n = 0; table_n < g.Tables.GetMapSize(); table_n++) |
| 24104 | { |
| 24105 | ImGuiTable* table = g.Tables.TryGetMapData(table_n); |
| 24106 | if (table == NULL || table->LastFrameActive < g.FrameCount - 1) |
| 24107 | continue; |
| 24108 | ImDrawList* draw_list = GetForegroundDrawList(table->OuterWindow); |
| 24109 | if (cfg->ShowTablesRectsType >= TRT_ColumnsRect) |
| 24110 | { |
| 24111 | for (int column_n = 0; column_n < table->ColumnsCount; column_n++) |
| 24112 | { |
| 24113 | ImRect r = Funcs::GetTableRect(table, cfg->ShowTablesRectsType, column_n); |
| 24114 | ImU32 col = (table->HoveredColumnBody == column_n) ? IM_COL32(255, 255, 128, 255) : IM_COL32(255, 0, 128, 255); |
| 24115 | float thickness = (table->HoveredColumnBody == column_n) ? 3.0f : 1.0f; |
| 24116 | draw_list->AddRect(r.Min, r.Max, col, 0.0f, thickness); |
| 24117 | } |
| 24118 | } |
| 24119 | else |
| 24120 | { |
| 24121 | ImRect r = Funcs::GetTableRect(table, cfg->ShowTablesRectsType, -1); |
| 24122 | draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 0, 128, 255)); |
nothing calls this directly
no test coverage detected