|
|
|
@ -5308,6 +5308,8 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl
|
|
|
|
|
if (flags & ImGuiSelectableFlags_PressedOnRelease) button_flags |= ImGuiButtonFlags_PressedOnRelease;
|
|
|
|
|
if (flags & ImGuiSelectableFlags_Disabled) button_flags |= ImGuiButtonFlags_Disabled;
|
|
|
|
|
if (flags & ImGuiSelectableFlags_AllowDoubleClick) button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick;
|
|
|
|
|
if (flags & ImGuiSelectableFlags_AllowItemOverlap) button_flags |= ImGuiButtonFlags_AllowItemOverlap;
|
|
|
|
|
|
|
|
|
|
if (flags & ImGuiSelectableFlags_Disabled)
|
|
|
|
|
selected = false;
|
|
|
|
|
|
|
|
|
@ -5323,6 +5325,9 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl
|
|
|
|
|
if (pressed)
|
|
|
|
|
MarkItemEdited(id);
|
|
|
|
|
|
|
|
|
|
if (flags & ImGuiSelectableFlags_AllowItemOverlap)
|
|
|
|
|
SetItemAllowOverlap();
|
|
|
|
|
|
|
|
|
|
// Render
|
|
|
|
|
if (hovered || selected)
|
|
|
|
|
{
|
|
|
|
|