https://sourceforge.net/tracker/?func=d ... tid=540678
This patch adds some missing methods to IGUIStaticText. The class had some set methods but no matching get method. This patch adds the following methods: getBackgroundColor, isDrawBackgroundEnabled, and isDrawBorderEnabled.
Added to engine in r3939.
https://sourceforge.net/tracker/?func=d ... tid=540678
This patch adds the ability to specify a source rectangle for an IGUIImage.
[partially added]IGUIStaticText/IGUIImage patches.
[partially added]IGUIStaticText/IGUIImage patches.
Last edited by Nalin on Tue Oct 11, 2011 3:58 pm, edited 2 times in total.
Re: IGUIStaticText and IFileSystem bugfixes and improvements
Thanks, I've applied the IGUIStaticText patch. I removed the const ref for SColor as it makes no difference here (SColor is just a long) and it's without const& in other places where getColor functions are used.
And please - don't shy away creating an own thread for each patch in the future, patches are worth it and it makes any discussions and also marking threads as fixed usually easier.
And please - don't shy away creating an own thread for each patch in the future, patches are worth it and it makes any discussions and also marking threads as fixed usually easier.
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: IGUIStaticText and IFileSystem bugfixes and improvements
Okay. I did it like that to keep it consistent with this method:CuteAlien wrote:Thanks, I've applied the IGUIStaticText patch. I removed the const ref for SColor as it makes no difference here (SColor is just a long) and it's without const& in other places where getColor functions are used.
And please - don't shy away creating an own thread for each patch in the future, patches are worth it and it makes any discussions and also marking threads as fixed usually easier.
virtual video::SColor const & getOverrideColor() const;
Also, do you mean that it would be better to create a thread for each individual patch? I debated with myself on whether I should do that and decided to just create a single thread in the end.
I also found another patch in the tracker that I submitted but never created a thread for:
https://sourceforge.net/tracker/?func=d ... tid=540678
It adds the ability to specify a source rect for an IGUIImage. If you think I should split these patches off into their own topics, I'll do that.
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: IGUIStaticText and IFileSystem bugfixes and improvements
IMHO it's better to group patches (and discussion about) based on their content. So if you have several patches for GUI it might be ok to keep them in one thread. But even that is usually not necessary (unless for trivial patches, which often don't need a discussion thread either). But putting filesystem and GUI into one thread would make proper discussions pretty complicated.
Re: IGUIStaticText and IFileSystem bugfixes and improvements
Right. I'll split off the IFileSystem patch as the other two are GUI related.
Re: IGUIStaticText and IFileSystem bugfixes and improvements
I shouldn't do patches before my first coffee... not only did I not see that - I accidentally removed the const& from getOverrideColor instead messing it up completely *sigh*. Will fix again in a minute ... maybe better remove the const& from getOverrideColor correctly.Nalin wrote: Okay. I did it like that to keep it consistent with this method:
virtual video::SColor const & getOverrideColor() const;
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: IGUIStaticText/IGUIImage patches.
Damn, 5 minutes later I realize this means it's no longer identical to IGUIEditBox. And out of curiosity now checked all video::SColor uses in Irrlicht for what is mostly used... I wish I hadn't...
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