Page 1 of 1

Console debug on gui element

Posted: Sat Jun 23, 2007 8:05 pm
by Kaki
Hello

A day I found a topic where messages output are drawn on a gui element. I don't remember how I have done to find it.
On this topic a man presents his code which allows to show the debug. I want to study that.

Could you help me to find this topic ?

Posted: Sat Jun 23, 2007 8:23 pm
by JonLT

Posted: Sat Jun 23, 2007 8:31 pm
by Kaki
No it isn't, but this one is interesting. The log file was shown on an irrlicht scene.

Posted: Sat Jun 23, 2007 8:40 pm
by JonLT
You could do something like he's doing: making an eventreceiver, make it capture the log events and write them to a gui object:

Code: Select all

class MyEventReceiver : public IEventReceiver 
{ 
public: 
     virtual bool OnEvent(SEvent event) 
     { 
          if (event.EventType == irr::EET_LOG_TEXT_EVENT) 
          { 
              ?? = event.LogEvent.Text //put this text where you want it
          }; 
        
     return false; 
     } 
}; 
I'm not good at the irrlicht gui, but i'm sure you can figure it out! :)
Good luck!