|
|
|
@ -5665,7 +5665,8 @@ bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputT
|
|
|
|
|
edit_state.InputCursorScreenPos = cursor_pos;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label);
|
|
|
|
|
if (text_size.x > 0)
|
|
|
|
|
RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label);
|
|
|
|
|
|
|
|
|
|
if ((flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0)
|
|
|
|
|
return enter_pressed;
|
|
|
|
@ -5807,12 +5808,8 @@ bool ImGui::Combo(const char* label, int* current_item, bool (*items_getter)(voi
|
|
|
|
|
RenderTextClipped(frame_bb.Min + style.FramePadding, item_text, NULL, NULL, value_bb.Max);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Empty text doesn't add padding
|
|
|
|
|
if (text_size.x > 0)
|
|
|
|
|
{
|
|
|
|
|
ImGui::SameLine(0, (int)style.ItemInnerSpacing.x);
|
|
|
|
|
ImGui::TextUnformatted(label, FindTextDisplayEnd(label));
|
|
|
|
|
}
|
|
|
|
|
RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label);
|
|
|
|
|
|
|
|
|
|
ImGui::PushID((int)id);
|
|
|
|
|
bool menu_toggled = false;
|
|
|
|
|