|
@@ -2753,7 +2753,7 @@ void ImGui::GcAwakeTransientWindowBuffers(ImGuiWindow* window)
|
|
|
}
|
|
|
|
|
|
// FIXME-NAV: Refactor those functions into a single, more explicit one.
|
|
|
-void ImGui::SetNavID(ImGuiID id, int nav_layer, int focus_scope_id)
|
|
|
+void ImGui::SetNavID(ImGuiID id, int nav_layer, ImGuiID focus_scope_id)
|
|
|
{
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
IM_ASSERT(g.NavWindow);
|
|
@@ -2763,7 +2763,7 @@ void ImGui::SetNavID(ImGuiID id, int nav_layer, int focus_scope_id)
|
|
|
g.NavWindow->NavLastIds[nav_layer] = id;
|
|
|
}
|
|
|
|
|
|
-void ImGui::SetNavIDWithRectRel(ImGuiID id, int nav_layer, int focus_scope_id, const ImRect& rect_rel)
|
|
|
+void ImGui::SetNavIDWithRectRel(ImGuiID id, int nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel)
|
|
|
{
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
SetNavID(id, nav_layer, focus_scope_id);
|
|
@@ -2958,10 +2958,10 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg)
|
|
|
|
|
|
// [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)
|
|
|
+ if (id == g.DebugItemPickerBreakId)
|
|
|
{
|
|
|
IM_DEBUG_BREAK();
|
|
|
- g.DebugItemPickerBreakID = 0;
|
|
|
+ g.DebugItemPickerBreakId = 0;
|
|
|
}
|
|
|
#endif
|
|
|
}
|
|
@@ -3060,7 +3060,7 @@ bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id)
|
|
|
// #define IMGUI_DEBUG_TOOL_ITEM_PICKER_EX in imconfig.h if you want this check to also be performed in ItemAdd().
|
|
|
if (g.DebugItemPickerActive && g.HoveredIdPreviousFrame == id)
|
|
|
GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 255, 0, 255));
|
|
|
- if (g.DebugItemPickerBreakID == id)
|
|
|
+ if (g.DebugItemPickerBreakId == id)
|
|
|
IM_DEBUG_BREAK();
|
|
|
|
|
|
return true;
|
|
@@ -3840,7 +3840,7 @@ void ImGui::NewFrame()
|
|
|
void ImGui::UpdateDebugToolItemPicker()
|
|
|
{
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
- g.DebugItemPickerBreakID = 0;
|
|
|
+ g.DebugItemPickerBreakId = 0;
|
|
|
if (g.DebugItemPickerActive)
|
|
|
{
|
|
|
const ImGuiID hovered_id = g.HoveredIdPreviousFrame;
|
|
@@ -3849,7 +3849,7 @@ void ImGui::UpdateDebugToolItemPicker()
|
|
|
g.DebugItemPickerActive = false;
|
|
|
if (ImGui::IsMouseClicked(0) && hovered_id)
|
|
|
{
|
|
|
- g.DebugItemPickerBreakID = hovered_id;
|
|
|
+ g.DebugItemPickerBreakId = hovered_id;
|
|
|
g.DebugItemPickerActive = false;
|
|
|
}
|
|
|
ImGui::SetNextWindowBgAlpha(0.60f);
|