-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InputText() old inputs change simultaneously with new user inputs #5383
Comments
Use two sets of variables.. |
Closing as answered but feel free to comment if you are unsure how to proceed. |
True, I am a bit stuck on how to proceed unfortunately, could you help me please. Maybe a small example how to avoid the simultaneous change please. @ocornut For ref, Once it has been passed and display, the field should be cleared for getting new user textinput. |
Version/Branch of Dear ImGui:
Version: 1.88
Branch: master
My Issue/Question:
I am getting three user input through
ImGui::InputTextWithHint()
, The inputs get display on screen,But when i edit the user input the previous input displayed on the screen also changes :(
Screenshots/Video
My text input window, which gets input from user
When I redit my user input, the text change simultaneously in the display area too, How can I avoid this happening?
I am looking to display the new user input than retaining/rediting the previous entered input
Snippet which gets the user input:
Any help would be appreciated
The text was updated successfully, but these errors were encountered: