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

UI improvements #1662

Merged
merged 3 commits into from
Jun 12, 2021
Merged

UI improvements #1662

merged 3 commits into from
Jun 12, 2021

Conversation

Semphriss
Copy link
Member

Includes #1659 and #1660.

List of changes:

  • Added containers for UI components.
  • Some places in the custom interface controls used raw pointers. I replaced those with smart pointers, or no pointers at all where relevant.
  • Improved text selection: pressing left or right while having text selected will move the caret to the beginning or the end of the text selection, respectively (and clear the selection)
  • Refactored the handling of the backspace key to make it similar to the handling of the delete key. This allows the usage of the regular update() function and makes controls compatible with Widgets again, in addition to make the code generally cleaner.

Semphris added 3 commits January 29, 2021 00:00
- Improved selection: pressing left or right while having text selected will move the caret to the beginning or the end of the text selection, respectively (and clear the selection)
- Refactored the handling of the backspace key to make it similar to the handling of the delete key. This allows the usage of the regular update() function and makes controls compatible with Widgets again, in addition to make the code generally cleaner.
@Semphriss Semphriss added the status:needs-review Work needs to be reviewed by other people label Mar 5, 2021
@tobbi
Copy link
Member

tobbi commented Jun 12, 2021

What is the status of this one? Can it get merged?

@Semphriss
Copy link
Member Author

Yes, in fact it's part of the editor revamp that I never finished. If I tagged it as ready for review, it should be ready for merge.

@tobbi tobbi merged commit 24795aa into SuperTux:master Jun 12, 2021
@mrkubax10 mrkubax10 removed the status:needs-review Work needs to be reviewed by other people label Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants