|
|
@ -6703,7 +6703,7 @@ bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputT |
|
|
|
return value_changed; |
|
|
|
} |
|
|
|
|
|
|
|
static bool InputFloatN(const char* label, float* v, int components, int decimal_precision, ImGuiInputTextFlags flags) |
|
|
|
static bool InputFloatN(const char* label, float* v, int components, int decimal_precision, ImGuiInputTextFlags extra_flags) |
|
|
|
{ |
|
|
|
ImGuiState& g = *GImGui; |
|
|
|
ImGuiWindow* window = GetCurrentWindow(); |
|
|
@ -6727,7 +6727,7 @@ static bool InputFloatN(const char* label, float* v, int components, int decimal |
|
|
|
ImGui::PopItemWidth(); |
|
|
|
ImGui::PushItemWidth(w_item_last); |
|
|
|
} |
|
|
|
value_changed |= ImGui::InputFloat("##v", &v[i], 0, 0, decimal_precision, flags); |
|
|
|
value_changed |= ImGui::InputFloat("##v", &v[i], 0, 0, decimal_precision, extra_flags); |
|
|
|
ImGui::SameLine(0, (int)style.ItemInnerSpacing.x); |
|
|
|
ImGui::PopID(); |
|
|
|
} |
|
|
@ -6741,22 +6741,22 @@ static bool InputFloatN(const char* label, float* v, int components, int decimal |
|
|
|
return value_changed; |
|
|
|
} |
|
|
|
|
|
|
|
bool ImGui::InputFloat2(const char* label, float v[2], int decimal_precision, ImGuiInputTextFlags flags) |
|
|
|
bool ImGui::InputFloat2(const char* label, float v[2], int decimal_precision, ImGuiInputTextFlags extra_flags) |
|
|
|
{ |
|
|
|
return InputFloatN(label, v, 2, decimal_precision, flags); |
|
|
|
return InputFloatN(label, v, 2, decimal_precision, extra_flags); |
|
|
|
} |
|
|
|
|
|
|
|
bool ImGui::InputFloat3(const char* label, float v[3], int decimal_precision, ImGuiInputTextFlags flags) |
|
|
|
bool ImGui::InputFloat3(const char* label, float v[3], int decimal_precision, ImGuiInputTextFlags extra_flags) |
|
|
|
{ |
|
|
|
return InputFloatN(label, v, 3, decimal_precision, flags); |
|
|
|
return InputFloatN(label, v, 3, decimal_precision, extra_flags); |
|
|
|
} |
|
|
|
|
|
|
|
bool ImGui::InputFloat4(const char* label, float v[4], int decimal_precision, ImGuiInputTextFlags flags) |
|
|
|
bool ImGui::InputFloat4(const char* label, float v[4], int decimal_precision, ImGuiInputTextFlags extra_flags) |
|
|
|
{ |
|
|
|
return InputFloatN(label, v, 4, decimal_precision, flags); |
|
|
|
return InputFloatN(label, v, 4, decimal_precision, extra_flags); |
|
|
|
} |
|
|
|
|
|
|
|
static bool InputIntN(const char* label, int* v, int components, ImGuiInputTextFlags flags) |
|
|
|
static bool InputIntN(const char* label, int* v, int components, ImGuiInputTextFlags extra_flags) |
|
|
|
{ |
|
|
|
ImGuiState& g = *GImGui; |
|
|
|
ImGuiWindow* window = GetCurrentWindow(); |
|
|
@ -6780,7 +6780,7 @@ static bool InputIntN(const char* label, int* v, int components, ImGuiInputTextF |
|
|
|
ImGui::PopItemWidth(); |
|
|
|
ImGui::PushItemWidth(w_item_last); |
|
|
|
} |
|
|
|
value_changed |= ImGui::InputInt("##v", &v[i], 0, 0, flags); |
|
|
|
value_changed |= ImGui::InputInt("##v", &v[i], 0, 0, extra_flags); |
|
|
|
ImGui::SameLine(0, (int)style.ItemInnerSpacing.x); |
|
|
|
ImGui::PopID(); |
|
|
|
} |
|
|
@ -6794,19 +6794,19 @@ static bool InputIntN(const char* label, int* v, int components, ImGuiInputTextF |
|
|
|
return value_changed; |
|
|
|
} |
|
|
|
|
|
|
|
bool ImGui::InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags) |
|
|
|
bool ImGui::InputInt2(const char* label, int v[2], ImGuiInputTextFlags extra_flags) |
|
|
|
{ |
|
|
|
return InputIntN(label, v, 2, flags); |
|
|
|
return InputIntN(label, v, 2, extra_flags); |
|
|
|
} |
|
|
|
|
|
|
|
bool ImGui::InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags) |
|
|
|
bool ImGui::InputInt3(const char* label, int v[3], ImGuiInputTextFlags extra_flags) |
|
|
|
{ |
|
|
|
return InputIntN(label, v, 3, flags); |
|
|
|
return InputIntN(label, v, 3, extra_flags); |
|
|
|
} |
|
|
|
|
|
|
|
bool ImGui::InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags) |
|
|
|
bool ImGui::InputInt4(const char* label, int v[4], ImGuiInputTextFlags extra_flags) |
|
|
|
{ |
|
|
|
return InputIntN(label, v, 4, flags); |
|
|
|
return InputIntN(label, v, 4, extra_flags); |
|
|
|
} |
|
|
|
|
|
|
|
static bool Items_ArrayGetter(void* data, int idx, const char** out_text) |
|
|
|