Page 1 of 1

RPG - Dialog box ... how to?

Posted: Wed Feb 22, 2006 3:17 pm
by Pr3t3nd3r
How i can make an 'dialog' box to display more than one sentence and have the auto warp too.

something like the message i just post'it here. (more lines +auto warp so i can load the text dynamically.) Is there any way to add new line to IGUIStaticText? (i don't believe IGUIListBox have any auto warp ....)

Posted: Wed Feb 22, 2006 4:24 pm
by Acki
Have a look at my site, I created a chat box and extended the list box, too...
Exactly for this use !!! ;)

CU

Posted: Wed Feb 22, 2006 6:57 pm
by Pr3t3nd3r
//posted 2 times ... don't know why :(

Posted: Wed Feb 22, 2006 6:57 pm
by Pr3t3nd3r
I looked at your site. Very nice extensions but:
1. the chat box is not in the irrlicht extensions.
2. Is any class that support new line(at will for dialogs) and warp at the same time ?

Colors :D very nice .

Posted: Wed Feb 22, 2006 9:29 pm
by Acki
Yes, you're right, it's not included to the sources...
But the chat box is included with IrrComp !!!

If you whant it to add to the Irrlicht engine, do this:

1. download IrrComp
2. start IrrComp and select the DevCpp project from the Irrlicht source
3. select the ChatBox (in IrrComp)
4. click on "create DLL(s)"

if you don't use DevCpp then go on:

5. close the DOS window (abbort creation)

Now all necessary files are created !!!

6. open the Irrlicht project with your IDE (MSVC6)
7. add the new files to the project (CGUIChatBox.cpp, CGUIChatBox.h and IGUIChatBox.h)
8. recompile the engine

Now the ChatBox is included to the engine !!!! ;)

Posted: Thu Feb 23, 2006 12:41 am
by Pr3t3nd3r
It doesn't want to create any files.

Please can you send me the chat file or update the files on your site ?
my mail: pr3t3nd3r_007@yahoo.com
Thank you very much.

Posted: Thu Feb 23, 2006 1:29 am
by Acki
If I send you the files, you have to edit the Irrlicht source code manually !!!
There is more to do than just add the 3 files to the engine...
You have to edit also the files IGUIEnvironment.h, CGUIEnvironment.h, CGUIEnvironment.cpp and irrlicht.h !!!
It's more difficultly this way...

My IrrComp does all the editings for you !!!

And you have to recompile the whole engine anyway !!!

Posted: Fri Feb 24, 2006 12:13 am
by Pr3t3nd3r
I know i have to do all the changes ... and i can do that ...
The irr comp is not creating the files ...
5. close the DOS window (abbort creation)
not doing any think.