CGUIExtendedText (colored text and images)

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Klasker
Posts: 230
Joined: Thu May 20, 2004 8:53 am
Contact:

Post by Klasker »

mooreaa wrote:Hmm sorry to hear about the HTML version giving u problems. Have you looked at using an external parser like TinyXML?

Looks really cool, can't wait for the next version. Keep us updated!
Parsing it isn't the problem. The difficult part is to size the elements right, and support word-wrapping properly without losing performance. I'm not really working on it right now, so don't be holding your breath.
Klasker
Posts: 230
Joined: Thu May 20, 2004 8:53 am
Contact:

Post by Klasker »

Updated for Irrlicht version 1.4. Download.
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

I get this error when running on Irr 1.4. I just got thrown from the aplication to this code:

From irrAlocator.h

Code: Select all

virtual void* internal_new(size_t cnt)
{
	return operator new(cnt);
}
HAppens when this code is executed from the CColorTextTag::addDefaultColors() method.

Code: Select all

void CColorTextTag::addColor( const wchar_t* name, video::SColor color )
{
    core::stringw str = name;
    ColorMap.insert( str, color );
}
Also the modifyed dates are strange, they say 16th of januari 2007 ;) up to march. Not december when you posted for 1.4 :(
Klasker
Posts: 230
Joined: Thu May 20, 2004 8:53 am
Contact:

Post by Klasker »

Am I supposed to be able to fix that? Thank you for posting it and all, but I am afraid I can do nothing to fix it. Maybe it's related to the issue etcaptor is having with my tree scene node, since both problems appear equally sense-less to me.

Sorry for the lack of support :(
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

Well you said you had it working for Ir 1.4 ^^

But it seems a problem with the irr::core::map allocatar when adding the colors.

Second is that your example isn't working :S it says no windows exe
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

well he got one of the problems i got:
etcaptor wrote:Thanks fo reply Klasker
Yes, I use your precompiled file in msvc folder only. It's crashes on my home and job PC /XP geForce 6600 and geForce 8600/. Only 1.2 version runs well.
I use this code and it goes wrong at the color->addDefaultColors();

Code: Select all

irr::gui::CColorTextTag* color = new irr::gui::CColorTextTag();
color->addDefaultColors();
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

Looks like compiling under VC 2008 works and 2005 version doesn't ;)
bebe
Posts: 2
Joined: Tue Feb 19, 2008 7:36 pm

Post by bebe »

hi guys !

I prevent you I'm french, unfortunately not as well languist as programmer, so my vocabulary might be strange :oops:

So, I have a probleme to : when the gui is displayed, my computer begin to do a "biiiiiip", not strong and it apear only when y display gui.
I use xp, in the OS manager (I mean ctrl+alt+supr), I notice the application grow at ~50ko/s in memory space while I display GUI. Is linked to the color->addDefaultColors(); ?
But I tryed without instanciating an irr::gui::CColorTextTag : the text is not displayed but the memory is always "eated" :?
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post by christianclavet »

Thanks for the code Klasker. I was able to made it compile for the latest IRRlicht 1.6 SVN without too much problem. Only changed some dimension2D(s32) to dimension(u32).

Do you want that I sent you the updated code? Or can I put it here?
Mikilo
Posts: 1
Joined: Tue Jul 10, 2012 7:06 pm

Re: CGUIExtendedText (colored text and images)

Post by Mikilo »

Hi everyone!

Does someone have access to sources? I would try to install it on my program.
The link seems to be broken. =X
zerochen
Posts: 273
Joined: Wed Jan 07, 2009 1:17 am
Location: Germany

Re: CGUIExtendedText (colored text and images)

Post by zerochen »

hi,

it is part of irrExt.
but not sure if the source is up to date

http://irrext.svn.sourceforge.net/viewv ... endedText/
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: CGUIExtendedText (colored text and images)

Post by REDDemon »

great idea:)
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Post Reply