MyreMylar / pygame_gui

A GUI system for pygame.
MIT License
700 stars 83 forks source link

Improve text selection and add to text box #567

Closed MyreMylar closed 7 months ago

MyreMylar commented 7 months ago

Some general improvements to text selection and making it work across both UITextBox and UITextEntryBox.

Still a few kinks to work out I think, and more tests needed.

fixes #433 fixes #393

codecov[bot] commented 7 months ago

Codecov Report

Attention: Patch coverage is 93.16081% with 37 lines in your changes are missing coverage. Please review.

Project coverage is 96.44%. Comparing base (d8c3c19) to head (da0a467). Report is 4 commits behind head on main.

Files Patch % Lines
pygame_gui/elements/ui_text_box.py 92.64% 32 Missing :warning:
pygame_gui/core/text/text_line_chunk.py 92.45% 4 Missing :warning:
pygame_gui/core/text/text_box_layout_row.py 80.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #567 +/- ## ========================================== + Coverage 96.17% 96.44% +0.27% ========================================== Files 88 88 Lines 12858 13329 +471 ========================================== + Hits 12366 12855 +489 + Misses 492 474 -18 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.