InputField - proper text input handling library

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: InputField - text input handling library

Post by ReFreezed »

Update 3.3

Changes since 3.2:
  • Added: Event method wheelmoved() (which can do horizontal scrolling).
  • Added: Triple-click-and-drag to select lines.
  • Added: Method setType().
  • Added: Methods getInfoAtCoords(), getInfoAtCursor(), getInfoAtCharacter().
  • Added: Methods getVisibleLine(), getVisibleLineCount().
  • Added: Methods getWheelScrollSpeed(), setWheelScrollSpeed().
  • Changed: Better/proper shortcuts in macOS.
  • Changed: The cursor's original x position is now preserved when navigating vertically multiple lines.
  • Changed: Newlines now count as word boundaries.
  • Changed: Navigating up on the first line or down on the last line now does nothing in multi-line fields.
  • Changed: The second argument for setMouseScrollSpeed() is now optional.
  • Fixed "pressing Home on wrapped lines does nothing". It now navigates to before the soft line wrap.
  • Fixed "pressing Escape does not stop the dragging".
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: InputField - text input handling library

Post by ReFreezed »

Update 3.3.1

Changes since 3.3:
  • Changed: scroll() now returns how much was actually scrolled.
  • Changed: wheelmoved() now only returns true if any scrolling actually happened.
  • Fixed "font filtering blocks newlines in multi-line fields".
  • Fixed "undo/redo counts as editing text even when nothing happened".
(A bit of a delayed release since not much changed.)
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
User avatar
togFox
Party member
Posts: 828
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: InputField - proper text input handling library

Post by togFox »

Fantastic library that I finally got to use. It took me way too long to find this essential function:

field:getText( )

Suggest you add that to an example or on the main doc.

Thanks a lot! :)
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
User avatar
togFox
Party member
Posts: 828
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: InputField - proper text input handling library

Post by togFox »

I tried to find a way for InputField to support different font sizes and different fonts (font types).

Is that an easy thing for me to add to my local version?
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests