Chat Box control

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
Dark Rain
Posts: 47
Joined: Thu Jul 07, 2005 1:31 am

Chat Box control

Post by Dark Rain »

I needed a chat window for our client and I wasn't very satisfied with any of the current control as a solution. The colored listbox control was nice but it was missing some critical features like text wrap around for large message. Also, it still allowed you to select list items etc. So I created my own chat control :

Features:
-Message based: You add the chat text message by message, like irc.
-Wrap around : If the text is too large to fit on one line, it will wrap around on the other line.
-Message color: You can assign one color per message.
-Auto scroll : The text will scroll as new messages are added.

Here, you can see the text wrap around and the color coding per line:
Image

Just some random user chat. Notice that the window will scroll to follow the chat as new messages are added like any good irc client:
Image

I've talked to my boss and they're fine with me releasing the source for all the irrlitch stuff I add as long as it's not client specific code. So I'll create a website for it on our server and I'll release the code for this control along with the tab control.
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

damn you're fast 8)
BlackNinjaGames
Posts: 31
Joined: Mon Sep 05, 2005 4:47 pm
Contact:

Post by BlackNinjaGames »

My thoughts exactly.

Very nice!
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Sorry, but could it be, that I allready did this !?!??! 8)

http://irrlicht.sourceforge.net/phpBB2/ ... php?t=9133
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
hybrid

Post by hybrid »

I think it was the thing that was referenced with "colored listbox control". I did not check the code, but it might be worth merging both and give some options to it in order to have all the functionality?!
Dark Rain
Posts: 47
Joined: Thu Jul 07, 2005 1:31 am

Post by Dark Rain »

Acki: In my explanation, I refer to your control but as I've mentionned it's lacking several features that IMHO are needed for a full fledged chat window.
Fhqwhgads
Posts: 42
Joined: Tue Jun 21, 2005 1:43 am

Post by Fhqwhgads »

I would like this for my project if I may have it :)
Guest

Post by Guest »

looks really cool :) any chance niko will see this?
Fhqwhgads
Posts: 42
Joined: Tue Jun 21, 2005 1:43 am

Post by Fhqwhgads »

Hey I went to your website and downloaded it. Put it into my irrlicht's soruce directory and tried to compile but I got errors...like it couldn't find files and stuff. Any possibility someone already has a prebuild version with this in it? and the tab controle?
freezzo
Posts: 27
Joined: Thu Mar 08, 2007 6:36 pm
Contact:

Post by freezzo »

I tried all night trying to add this to my irrlicht engine, and can't figure out how to do it.

does anyone have some helpful tips?
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

what files did you add?

all of them?

irrlicht has been changed a bit since then..

this is how you change or add gui.

step 1: add your working gui files to the irrlicht project IF its not intended to be added directly to a project that uses irrlicht..easy way to tell is if they have #include "irrlicht.h" that means its including irrlicht not part of it in most cases. also it usually will be a class simular to irrlicht gui classes.

step 2: you'll have to edit the environment and maybe the element code files these are the factories which create gui in irrlicht to be rendered. gui factories are actually something else new to irrlicht that also uses environment however.

step 3: add all the proper includes and defines to the preprocessor meaning IDE/compiler settings. ie msvc properties ect...

step 4: compile and debug.. if you don't know how to debug you are already 4 steps ahead of yourself.
Post Reply