multicolor chat box

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
juliusctw
Posts: 392
Joined: Fri Apr 21, 2006 6:56 am
Contact:

multicolor chat box

Post by juliusctw »

hello

here's the multicolor chatbox based on Acki's extension, here's a picture of what it looks like

Image

the only difference here is that you do not need to change the source code, and its compatible with irrlicht 1.1 in Linux . . (i'm pretty sure it should work ing windows as well. ) simply include the files and it would work. You can declare it this way...

#include "CGUIChatBox.h"


gui::CGUIChatBox* chat = new gui::CGUIChatBox(env, env->getRootGUIElement(), 230, core::rect<int>(20,550,300,700));

chat->addItem(L"(john) Kill that thing...");
chat->addItem(L"(firestaff) lol", video::SColor(0, 0, 255, 255));
chat->addItem(L"(juli) that's too big", video::SColor(0, 0, 0, 255));


you can download it here
http://www.freewebs.com/juliusctw
Last edited by juliusctw on Thu Aug 31, 2006 4:31 pm, edited 1 time in total.
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

wow exacly what i needed :)

remove that [img]thing from the link so that it works

greets,
Halan
juliusctw
Posts: 392
Joined: Fri Apr 21, 2006 6:56 am
Contact:

hey Halan

Post by juliusctw »

yeah
both of us were begging to add acki's extension into the library, i'm not sure how to do patches the way hybrid asked for, so i edited Acki's version so it works independent from the source.

You in the mood to write a multi line edit box???
Somebody please do it . Or somebody give me some source code to go off by.

halan let me know if it works on windows
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

after including some irrlicht source files taht missed i get
edit: fixed that
i would more need the extended tab control but im too stupid to do it i think :lol:

edit: i just thought that also "CGUITalkingBubble" would be nice :lol:

edit2: i nearly finished a svn patch wich includes the tab control :) ive just one problem left maybe you can help me:
C:\Dokumente und Einstellungen\Kai\Eigene Dateien\Irrlicht\source\IrrlichtMOD\CGUIEnvironment.cpp In member function `virtual irr::gui::IGUISkin* irr::gui::CGUIEnvironment::createSkin(irr::gui::EGUI_SKIN_TYPE)':
302 C:\Dokumente und Einstellungen\Kai\Eigene Dateien\Irrlicht\source\IrrlichtMOD\CGUIEnvironment.cpp cannot allocate an object of type `irr::gui::CGUISkin'
302 C:\Dokumente und Einstellungen\Kai\Eigene Dateien\Irrlicht\source\IrrlichtMOD\CGUIEnvironment.cpp because the following virtual functions are abstract:
297 C:\Dokumente und Einstellungen\Kai\Eigene Dateien\Irrlicht\include\IGUISkin.h virtual void irr::gui::IGUISkin::draw3DTabButton(irr::gui::IGUIElement*, bool, const irr::core::rect<irr::s32>&, const irr::core::rect<irr::s32>*)
308 C:\Dokumente und Einstellungen\Kai\Eigene Dateien\Irrlicht\include\IGUISkin.h virtual void irr::gui::IGUISkin::draw3DTabBody(irr::gui::IGUIElement*, bool, bool, const irr::core::rect<irr::s32>&, const irr::core::rect<irr::s32>*)
C:\Dokumente und Einstellungen\Kai\Eigene Dateien\Irrlicht\source\IrrlichtMOD\Makefile.win [Build Error] [CGUIEnvironment.o] Error 1
Last edited by Halan on Thu Aug 31, 2006 5:38 pm, edited 1 time in total.
juliusctw
Posts: 392
Joined: Fri Apr 21, 2006 6:56 am
Contact:

don't include the FGUISkin

Post by juliusctw »

that's inside FGUISkin, don't include that file

I can probably add the tab control in the future, but I would really really like it if someone else give it a try :D

I already have the chat bubble working on mine, but its not exactly easy to integrate it in, and it doesn't look all that good. maybe i'll package it up one of these days and post it on the forum.
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

ah ok look at my edit above maybe you can help me :)

greets,
Halan
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

okay i finnally managed to compile irrlicht with the tab control stuff but now im getting an error when trying to compile one of the examples
C:\Dokumente und Einstellungen\Kai\Eigene Dateien\Irrlicht\examples\02.Quake3Map\Makefile.win [Build Error] [../../bin/Win32-gcc/02.Quake3Map.exe] Error 1
any ideas?

greets,
HalaN

edit: HYBRID: heres a SVN patch maybe you can try and/or bugfix it 8)
http://www.megaupload.com/?d=9SIEL3BY

edit2: ah im getting also a build error with your project. does the newest svn version work?

edit3: im allways getting a build error with the newest versoin of irrlicht. whats the problem?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The SVN version compiles fine. Just tested Linux and Windows versions.
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

so what am i doing worng

1. i download the newest version from SVN
2. i compile with Dev-CPp the same compiler you use
3. i compile a example
4. i get an error
C:\Dokumente und Einstellungen\Kai\Eigene Dateien\IrrlichtOrginal\examples\02.Quake3Map\Makefile.win [Build Error] [../../bin/Win32-gcc/02.Quake3Map.exe] Error 1
[/quote]
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Wrong library, wrong headers, old object files. Don't know. The error message is not really useful.
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

no i redownloaded evferything

strangerwise evferything works with the 1.1 version from the page.

greets,
halan

edit: i found the problem the examples are linked with a lib in the lib directory not in the bin directory wich is the output directory. works now.
ill test the tab control now :)

edit: works perfect :) please apply my patch to the svn version ;)

edit2: the chat box still doesnt work for me i get
[Linker error] undefined reference to `irr::gui::CGUIChatBox::CGUIChatBox(irr::gui::IGUIEnvironment*, irr::gui::IGUIElement*, int, irr::core::rect<int>, bool, bool, bool)'
I dont know where those bools are coming from ^^

edit3: ok so i updated my patch. it now adds also the chatbox, the extended scrollbar, tables and the extended editbox(e.g. passwort mode but i think its buggy ;)) Please test it and maybe buxfix it with the code given at http://www.starsonata.com/irrlicht. i cant to it anymore becausei fly to italy tomorrow and its allread half past 4 :( I commented out some buggy lines and made a note above it (only 4 or so)
Please upload it it was a lot of work and was made with the newest irrlicht version :)

heres the link to the new patch: http://www.megaupload.com/?d=H9SUNWOW
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Sorry to say, but I won't touch GUI extensions in the near future. I don't know the current Irrlicht setup for those parts good enough to assess the changes made (and they are not small...). But maybe someone else will take care of it. The patches were at least working from what I saw. However, it's still "form follows function" which means: known bugs make such a patch non-applicable to official Irrlicht.
juliusctw
Posts: 392
Joined: Fri Apr 21, 2006 6:56 am
Contact:

well

Post by juliusctw »

i am slowly picking up the GUI source code , i would need to learn how to write patches against irrlicht, then i would be happy to write them for the community,

but for now, i guess i'll just keep my extensions as seperate classes
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

look at the sticky in the faq where you can see how to get the svn version.
then if you use tortoiseSVN and added changes you can just right klick and a create a patch thats everything

edit: yeah hybrid ill bugfix it maybe niko can take a look it somewhen

edit2: hey juliusctw get tortoiseSVN or another svn client and look at my patch then you dont have to do all the work yourself..
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

okay atm i fixed the edit box bugs so now that works also if someone wants to debugg the chatbox and the tablecontrol he can download the zip file and do it :P. the extended tab control works also ;) if you want i can create a patch only with the tab control and the extended edit box included which work perfect both. and i also added a new event to the event receiver its called EGET_ELEMENT_FOCUS_GAINED. it was needed by the extensions but i think its also useful in other projects

here: http://www.megaupload.com/?d=03RS84VE

greets,
halan

btw: theres also the orginal source from the star sonata team included
Post Reply