Liker error while trying to extend and recompile irrlicht
Re: Liker error while trying to extend and recompile irrlich
It's the other way round - your event-receiver gets those events even before before the gui-elements receive them. With guiEnvironemnt->getRootGUIElement ()->getElementFromPoint(x,y) you can find out which element will receive a mouse-event.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 105
- Joined: Thu Jan 10, 2008 6:26 pm
Re: Liker error while trying to extend and recompile irrlich
Even before I started on this whole endeavor , I checked the documentation on this method and it said :CuteAlien wrote:It's the other way round - your event-receiver gets those events even before before the gui-elements receive them. With guiEnvironemnt->getRootGUIElement ()->getElementFromPoint(x,y) you can find out which element will receive a mouse-event.
"You should not need to use this method directly, unless you wish to reparent GUI elements to the top level. "
http://irrlicht.sourceforge.net/phpBB2/ ... 029#143029
-Game Link added download and play
-Game Link added download and play
Re: Liker error while trying to extend and recompile irrlich
That is indeed a confusing comment... I'll put it on my todo to remove it. There is no reason not to use this function.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Liker error while trying to extend and recompile irrlich
Simple example:
http://pastie.org/3611002
Dont need to recompile Irrlicht to get that working, just make sure you add the Irrlicht sources to your Includes
http://pastie.org/3611002
Dont need to recompile Irrlicht to get that working, just make sure you add the Irrlicht sources to your Includes
Re: Liker error while trying to extend and recompile irrlich
Hm, I'm really not certain if that is a good idea RdR. Now you have 2 CGUIStaticText classes with the same name and in the same namespace in dll and in the project. I suspect with static linking it would probably even fail. I guess with dynamic linking it will probably work as they don't know about each other, but still not really sure if it's a good idea.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Liker error while trying to extend and recompile irrlich
Dont know about static linking but linking dynamicly it works for sure.CuteAlien wrote:Hm, I'm really not certain if that is a good idea RdR. Now you have 2 CGUIStaticText classes with the same name and in the same namespace in dll and in the project. I suspect with static linking it would probably even fail. I guess with dynamic linking it will probably work as they don't know about each other, but still not really sure if it's a good idea.
Re: Liker error while trying to extend and recompile irrlich
My question is rather if it's correct. Often things work and are still wrong. I simply don't know if there are any guarantees for this case.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Liker error while trying to extend and recompile irrlich
Hmm I used the same approach for my Count Down Button (http://irrlicht.sourceforge.net/forum/v ... =9&t=45795).CuteAlien wrote:My question is rather if it's correct. Often things work and are still wrong. I simply don't know if there are any guarantees for this case.
So far I hadnt any weird things or problems with it.
The correct why is to change it in Irrlicht, but that requires the topic starter to recompile Irrlicht.
Re: Liker error while trying to extend and recompile irrlich
The best way (in my opinion) would be to actually copy and rename it, cause if you change it in the engine it will be harder to update the engine (without loosing changes).RdR wrote: The correct why is to change it in Irrlicht, but that requires the topic starter to recompile Irrlicht.
Working on game: Marrbles (Currently stopped).
Re: Liker error while trying to extend and recompile irrlich
hi, why do you derive from CGUIStaticText and have a member pointer to CGUIStaticText, means that you have 2 StaticTexts now, the one you are deriving from and the one you are creating with Environment->addStaticText()?
Also you have to implement all methods you are declaring.
Also you have to implement all methods you are declaring.