|
|
@ -5133,7 +5133,7 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* l |
|
|
|
SetItemAllowOverlap(); |
|
|
|
SetItemAllowOverlap(); |
|
|
|
|
|
|
|
|
|
|
|
// In this branch, TreeNodeBehavior() cannot toggle the selection so this will never trigger.
|
|
|
|
// In this branch, TreeNodeBehavior() cannot toggle the selection so this will never trigger.
|
|
|
|
if (selected != was_selected) |
|
|
|
if (selected != was_selected) //-V547
|
|
|
|
window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_ToggledSelection; |
|
|
|
window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_ToggledSelection; |
|
|
|
|
|
|
|
|
|
|
|
// Render
|
|
|
|
// Render
|
|
|
@ -5381,7 +5381,7 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl |
|
|
|
SetItemAllowOverlap(); |
|
|
|
SetItemAllowOverlap(); |
|
|
|
|
|
|
|
|
|
|
|
// In this branch, Selectable() cannot toggle the selection so this will never trigger.
|
|
|
|
// In this branch, Selectable() cannot toggle the selection so this will never trigger.
|
|
|
|
if (selected != was_selected) |
|
|
|
if (selected != was_selected) //-V547
|
|
|
|
window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_ToggledSelection; |
|
|
|
window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_ToggledSelection; |
|
|
|
|
|
|
|
|
|
|
|
// Render
|
|
|
|
// Render
|
|
|
@ -5405,6 +5405,8 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl |
|
|
|
// Automatically close popups
|
|
|
|
// Automatically close popups
|
|
|
|
if (pressed && (window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiSelectableFlags_DontClosePopups) && !(window->DC.ItemFlags & ImGuiItemFlags_SelectableDontClosePopup)) |
|
|
|
if (pressed && (window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiSelectableFlags_DontClosePopups) && !(window->DC.ItemFlags & ImGuiItemFlags_SelectableDontClosePopup)) |
|
|
|
CloseCurrentPopup(); |
|
|
|
CloseCurrentPopup(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags); |
|
|
|
return pressed; |
|
|
|
return pressed; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -5756,6 +5758,7 @@ ImGuiMenuColumns::ImGuiMenuColumns() |
|
|
|
void ImGuiMenuColumns::Update(int count, float spacing, bool clear) |
|
|
|
void ImGuiMenuColumns::Update(int count, float spacing, bool clear) |
|
|
|
{ |
|
|
|
{ |
|
|
|
IM_ASSERT(count == IM_ARRAYSIZE(Pos)); |
|
|
|
IM_ASSERT(count == IM_ARRAYSIZE(Pos)); |
|
|
|
|
|
|
|
IM_UNUSED(count); |
|
|
|
Width = NextWidth = 0.0f; |
|
|
|
Width = NextWidth = 0.0f; |
|
|
|
Spacing = spacing; |
|
|
|
Spacing = spacing; |
|
|
|
if (clear) |
|
|
|
if (clear) |
|
|
|