japp
japp copied to clipboard
Refactor: Make chatbox menu based
Hmm, thinking about how this could be done. We would need:
- capture input text - does UI have a suitable input field? we may need to write our own element type or extend any existing text input field (a la slider and integer-input extensions)
- key catchers with+without K_CHAR_FLAG (with keystates of shift, ctrl, etc)
- Send text to console buffer
- Very custom ownerdraw for rendering the lines of text
- Mouse support for clickable URLs
- Eventually advanced text editing, which would now be written generically for all menu items / input fields
Sounds good to me, probably support for emoticons aka. custom icons like the Kappa from twitch etc.?
Emoticons support would require engine changes probably since the font for console and such wouldn't be able to handle them.
I am against emoticons, especially for defining our own elite set of emoticons. I don't want to open that can of worms. (though it would not be too difficult to add with existing engine functions - split the string into chunks when you reach an emoticon)
Hmm. Alright then.