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

Multiline textboxes #433

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft

Multiline textboxes #433

wants to merge 11 commits into from

Conversation

kotek900
Copy link

changes:

  • holding enter now creates multiple lines (only without RAYGUI_STANDALONE)
  • cursor correctly shows up on the x axis (except for an off by one error somewhere)
  • cursor is now moves on the y axis
  • added GetTextTotalLines (with an ability to limit the amount of characters counted)
  • fixed GetTextWidth GetTextWidth() returns incorrect value for multi-line strings #415

todo:

  • text wrapping
  • turning on multiline mode
  • mouse controls
  • up/down keyboard controls
  • other stuff probably

testing the code:

  1. change bool multiline = false; to bool multiline = true;
  2. make a GuiTextBox, write some text

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.

1 participant