RPG - Dialog box ... how to?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Pr3t3nd3r
Posts: 186
Joined: Tue Feb 08, 2005 6:02 pm
Location: Romania
Contact:

RPG - Dialog box ... how to?

Post 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 ....)
Galactic Dream Best RTS game
http://www.rageofwar.net
Engage in epic galactic warfare, guide your people through the galaxy! in the real time strategy game made with Irrlicht
http://www.evolutionvault.com
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Have a look at my site, I created a chat box and extended the list box, too...
Exactly for this use !!! ;)

CU
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Pr3t3nd3r
Posts: 186
Joined: Tue Feb 08, 2005 6:02 pm
Location: Romania
Contact:

Post by Pr3t3nd3r »

//posted 2 times ... don't know why :(
Last edited by Pr3t3nd3r on Thu Feb 23, 2006 12:38 am, edited 1 time in total.
Pr3t3nd3r
Posts: 186
Joined: Tue Feb 08, 2005 6:02 pm
Location: Romania
Contact:

Post 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 .
Galactic Dream Best RTS game
http://www.rageofwar.net
Engage in epic galactic warfare, guide your people through the galaxy! in the real time strategy game made with Irrlicht
http://www.evolutionvault.com
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post 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 !!!! ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Pr3t3nd3r
Posts: 186
Joined: Tue Feb 08, 2005 6:02 pm
Location: Romania
Contact:

Post 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.
Galactic Dream Best RTS game
http://www.rageofwar.net
Engage in epic galactic warfare, guide your people through the galaxy! in the real time strategy game made with Irrlicht
http://www.evolutionvault.com
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post 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 !!!
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Pr3t3nd3r
Posts: 186
Joined: Tue Feb 08, 2005 6:02 pm
Location: Romania
Contact:

Post 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.
Galactic Dream Best RTS game
http://www.rageofwar.net
Engage in epic galactic warfare, guide your people through the galaxy! in the real time strategy game made with Irrlicht
http://www.evolutionvault.com
Post Reply