|
@@ -3716,8 +3716,7 @@ bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id)
|
|
|
// [DEBUG] Item Picker tool!
|
|
|
// We perform the check here because SetHoveredID() is not frequently called (1~ time a frame), making
|
|
|
// the cost of this tool near-zero. We can get slightly better call-stack and support picking non-hovered
|
|
|
- // items if we perform the test in ItemAdd(), but that would incur a small runtime cost.
|
|
|
- // #define IMGUI_DEBUG_TOOL_ITEM_PICKER_EX in imconfig.h if you want this check to also be performed in ItemAdd().
|
|
|
+ // items if we performed the test in ItemAdd(), but that would incur a small runtime cost.
|
|
|
if (g.DebugItemPickerActive && g.HoveredIdPreviousFrame == id)
|
|
|
GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 255, 0, 255));
|
|
|
if (g.DebugItemPickerBreakId == id)
|
|
@@ -8646,15 +8645,6 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu
|
|
|
// Empty identifier are valid and useful in a small amount of cases, but 99.9% of the time you want to use "##something".
|
|
|
// READ THE FAQ: https://dearimgui.org/faq
|
|
|
IM_ASSERT(id != window->ID && "Cannot have an empty ID at the root of a window. If you need an empty label, use ## and read the FAQ about how the ID Stack works!");
|
|
|
-
|
|
|
- // [DEBUG] Item Picker tool, when enabling the "extended" version we perform the check in ItemAdd()
|
|
|
-#ifdef IMGUI_DEBUG_TOOL_ITEM_PICKER_EX
|
|
|
- if (id == g.DebugItemPickerBreakId)
|
|
|
- {
|
|
|
- IM_DEBUG_BREAK();
|
|
|
- g.DebugItemPickerBreakId = 0;
|
|
|
- }
|
|
|
-#endif
|
|
|
}
|
|
|
g.NextItemData.Flags = ImGuiNextItemDataFlags_None;
|
|
|
|
|
@@ -13421,7 +13411,7 @@ void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int wi
|
|
|
}
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
-// [SECTION] DEBUG LOG
|
|
|
+// [SECTION] DEBUG LOG WINDOW
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
void ImGui::DebugLog(const char* fmt, ...)
|