|
|
@ -785,11 +785,12 @@ bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiBut |
|
|
|
ImVec2 size = CalcItemSize(size_arg, 0.0f, 0.0f); |
|
|
|
const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); |
|
|
|
ItemSize(size); |
|
|
|
if (!ItemAdd(bb, id)) |
|
|
|
if (!ItemAdd(bb, id, NULL, (flags & ImGuiButtonFlags_EnableNav) ? ImGuiItemFlags_None : ImGuiItemFlags_NoNav)) |
|
|
|
return false; |
|
|
|
|
|
|
|
bool hovered, held; |
|
|
|
bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); |
|
|
|
RenderNavHighlight(bb, id); |
|
|
|
|
|
|
|
IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags); |
|
|
|
return pressed; |
|
|
|