Another input demo...

by Crazy Star


Posted on March 28, 2011 at 8:43 PM



I finally got around to polishing this example up. I've been looking forward to posting it.
This is not the most commented example (so plz learn) but it shows that getting action packed input is not completely impossible. (Hopefully) xP

It is likely to contain bugs but I'm done testing it so, feel free to use it for whatever you may desire as long as you keep me out of it. ;)

FEATURES (v1.0)
- Most features you'd expect from an input field really
- Type lots of weird letters. Easily expandable if you need scandinavian chars for instance
- Should take care of ignoring the dreadful #
- Letter scrolling
- Shortcuts ctrl+a etc
- That's right, it can select too...
- Double click / triple click behaviour mimicked
- Well... need I go on? OK
- Acts naturally from ctrl, shift, home, end etc
- Easy to resize field.. doesn't care what height or width is
- Drag text around and such..
- Stuff... no, really - in the demo you can also write the word stuff in capital letters.


REPORTED BUGS SO FAR (28-03-11)
-

BTW: Originally intended for integration in my (huge) GUI wip, but that's not something I plan to finish...



Ferret commented March 28, 2011 at 8:43 PM
This is pretty cool. Kinda odd seeing how much code it takes for something as simple as a text field.
StevenOBrien commented March 28, 2011 at 9:32 PM
Bug: when I press caps lock, the character inputs twice.
Crazy Star commented March 28, 2011 at 9:43 PM
Thx ferret.. I guess I could have wrapped more tasks in functions but oh well..
Also, the gui mentioned has more than a hundred scripts and that's only basic stuff.

Stevenup7002, so it does 0_o
Nasty... there's no vk_capslock. Will write it on the soon to grow very large list above. Any experience with this per change? :s
EDIT... that is... I would if there was a button for it
Ferret commented March 28, 2011 at 11:57 PM
EDIT... that is... I would if there was a button for it
Quote
If you want, just pm me the link to an updated version and I'll update the file for you.
Alert Games commented April 01, 2011 at 3:48 PM
Hmmm, maybe I could give you the code for Particle Designer's codebox for you to work on? I wanted to make a GM GUI example to make it easier to write programs with, without using a dll, but I never got around to it... PM me if you're interested.

Works nice though. But could use the ability to check if it is selected or not, and different types of input fields. Could be useful for something like in-game registration and stuff.
Crazy Star commented April 01, 2011 at 4:03 PM
Check ur inbox Alert Games.. haven't found a fix yet for the caps lock btw. It is kind off limiting to disable all keys that are not listed (if even possible), yet it is definately impossible to just prevent caps lock as there is no key code for it :S
If anyone has an idea lemme know and you get a big cookie
Alert Games commented April 01, 2011 at 5:16 PM
Check ur inbox SpectreNectar.. I have an example of how I did my textbox.