-
Hello, I am encountering two issues while using ImGui Bundle and would appreciate any guidance or clarification. System Details:
Question 1:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Question 1: is_text_changed() is_text_changed() will return True only in the frame where the text is modified. |
Beta Was this translation helpful? Give feedback.
-
Question 2: color_convert_float4_to_u32 The code below color_floats = [
ImVec4(1.0, 0.0, 0.0, 0.0),
ImVec4(0.0, 1.0, 0.0, 0.0),
ImVec4(0.0, 0.0, 1.0, 0.0),
ImVec4(0.0, 0.0, 0.0, 1.0),
ImVec4(1.0, 0.0, 0.0, 1.0),
]
for color_float in color_floats:
color_int = imgui.color_convert_float4_to_u32(color_float)
print(f"color_float: {color_float} color_int(binary): {color_int:b}") prints
So, this seems to prove that Your issue is perhaps related to a small issue in the Text Editor itself. |
Beta Was this translation helpful? Give feedback.
-
Hi, ImGuiColorTextEdit is already using the version maintained by Santaclose. |
Beta Was this translation helpful? Give feedback.
-
I believe my questions have been satisfactorily answered, so we can consider this matter resolved ^___^ |
Beta Was this translation helpful? Give feedback.
Question 1: is_text_changed()
is_text_changed() will return True only in the frame where the text is modified.
If you want to keep track of a global modification vs an original state of the text, it is up to you to implement it