Skip to content
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

ImGui: Add IME preview text display for CJK text #72645

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

katemonster33
Copy link
Contributor

Summary

Features "Implement IME pre-edit text for CJK text"

Purpose of change

When entering CJK text using a normal English keyboard, a "preview" mode is entered where the text isn't actually put on the screen until the user hits enter. This required a little extra work inside ImGui when rendering text.

Describe the solution

Add support within ImGui for a pre-edit text buffer which is written into and cleared when pre-edit text must be shown or not

Describe alternatives you've considered

Would have been easier to draw a new frame hovering in the middle of the window showing the pre-edit view. This is sloppy though and the users would hate it

Testing

Load the keybindings screen and type some Japanese text and verify the pre-edit displays properly.

Additional context

pre-edit-1

@github-actions github-actions bot added Info / User Interface Game - player communication, menus, etc. [C++] Changes (can be) made in C++. Previously named `Code` <Enhancement / Feature> New features, or enhancements on existing json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Mar 27, 2024
@katemonster33
Copy link
Contributor Author

this PR depends on #72579 so half the changes are from that. FYI

@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Mar 27, 2024
@katemonster33 katemonster33 marked this pull request as ready for review April 8, 2024 15:02
@dseguin dseguin merged commit cb98e75 into CleverRaven:master Apr 9, 2024
34 of 38 checks passed
SurFlurer added a commit to SurFlurer/Cataclysm-DDA that referenced this pull request Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` <Enhancement / Feature> New features, or enhancements on existing Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants