Well, continuing my series of basic extension classes to Irrlicht (without changing the engine code). This time, we have a basic chat window implementation (add chat lines, scroll, change line color, delete older messages).
See the source here: http://www.computer.mikoweb.de/irrlicht2.php
Maybe, this will be of use for some of you.
miko
HowTo: Add a ChatWindow class to your project
i would like to know how to, if you press "enter" it allows you to type in a message and press enter again to submit it?
i see the class etc. and everything, but i dont exaxctly understand how you add words to the window
i also get a ton of errors, and i didnt copy and paste i typed it all out heehee, and changed things where i could where it was possible.
got an error in the .h file
and then some which are my fault, why would this be?
i see the class etc. and everything, but i dont exaxctly understand how you add words to the window
i also get a ton of errors, and i didnt copy and paste i typed it all out heehee, and changed things where i could where it was possible.
got an error in the .h file
Code: Select all
38 C:\dark chasis\Engine\gui-landscape\CGUIChatWindow.h using-declaration for non-member at class scope
Code: Select all
38 C:\dark chasis\Engine\gui-landscape\CGUIChatWindow.h expected `;' before "chatLines"
Hi kamadian,
Irrlicht provides a simple command line input itself, named IGUIEditBox. I use this one for getting user input. Then (or if it is a "system message", I use AddChatMessage of the ChatWindow Class. Input itself is not covered by my class.
Concerning compilation errors: Hell, I found out that terms like <irr::gui::IGUIStaticText*> or any others using "<" were incorrectly treated as html tags and not shown. Hence the compilation errors.
The code should now be corrected, and copy'n paste should work.
A big sorry for that.
I really should have provided downloadable files.
miko
Irrlicht provides a simple command line input itself, named IGUIEditBox. I use this one for getting user input. Then (or if it is a "system message", I use AddChatMessage of the ChatWindow Class. Input itself is not covered by my class.
Concerning compilation errors: Hell, I found out that terms like <irr::gui::IGUIStaticText*> or any others using "<" were incorrectly treated as html tags and not shown. Hence the compilation errors.
The code should now be corrected, and copy'n paste should work.
A big sorry for that.
I really should have provided downloadable files.
miko
"Yessir, I'll be happy to make these unnecessary changes to this irrelevant document." (Dilbert)