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 14 commits into
base: master
Choose a base branch
from
Draft

Multiline textboxes #433

wants to merge 14 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

@raysan5
Copy link
Owner

raysan5 commented Dec 1, 2024

@kotek900 What is the state of this PR? Just note that multiline drawing is being managed by GuiDrawText().

@mrkubax10
Copy link

I'm helping original author with working on it

1 similar comment
@mrkubax10
Copy link

I'm helping original author with working on it

Multiline `GuiTextBox` part 1
@raysan5
Copy link
Owner

raysan5 commented Dec 12, 2024

@mrkubax10 Nice! Thank you very much for the update!

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.

3 participants