Greetings, fellow IrrLicht users!
I am relatively new to IrrLicht and have been developing (as an university project) a simple program for scientific visualization of charged particle dynamics and I'd like to give my potential users (no matter how few they might be besides myself...) as much freedom as they might want to customize their experience within the program, namely through selecting colors (for the charges being simulated) and being able to remap the keys for interacting with the program.
As far as I can tell, IrrLicht implements some kind of color select dialog, but the documentation for it suggests (if I am interpreting it correctly) that it's either non-functional, or deprecated. In that sense, is there an alternative I can easily use without having to resort to an external GUI?
Regarding remapping the keys, I'd like to have some interface for showing the currently assigned key and enabling the user to change it (something akin to the keybinding menu, e. g. in a game); my short experience with IrrLicht tells me this might be possible with IGUIButtons with appropriate textures, but I do not know where I can find or generate the respective textures.
I apologize if I am not posting this in the right sub-forum, but, since I'm a beginner in need of help, it seemed appropriate. Moreover, I am, more than a beginner to IrrLicht, a beginner to GUI and graphical programming in general, so I must apologize further for asking something that can either be obviously trivial or obviously impossible for someone more experienced, though what I know of programming tells me it might probably be the former rather than the latter.
Color Select and Keybinding Menu
Re: Color Select and Keybinding Menu
Hi,
I think the best color-select dialog is currently the one here: http://irrlicht.sourceforge.net/forum/v ... 3&start=15 (I never got back to continue working on that, so it's still not in Irrlicht).
I don't think you need textures on buttons for a keybinding menu. You could just use text.
You can take a look at how I implemented such a menu in my racer game:
https://bitbucket.org/mzeilfelder/trunk ... ntrols.cpp
Thought there's some more UI system code around it, so probably overkill for a simple application.
But maybe it gives you some inspiration. (to help understand it - my eventhandlers are just some wrapper aound the OnEvent mechanism and the UI elements are loaded with GetElementByName from some custom xml file format I made for that game).
To see how it looks you can download the (free) game here: http://www.irrgheist.com/ and take a look at the controller menu.
And no apologies needed, your post fits in here :-)
I think the best color-select dialog is currently the one here: http://irrlicht.sourceforge.net/forum/v ... 3&start=15 (I never got back to continue working on that, so it's still not in Irrlicht).
I don't think you need textures on buttons for a keybinding menu. You could just use text.
You can take a look at how I implemented such a menu in my racer game:
https://bitbucket.org/mzeilfelder/trunk ... ntrols.cpp
Thought there's some more UI system code around it, so probably overkill for a simple application.
But maybe it gives you some inspiration. (to help understand it - my eventhandlers are just some wrapper aound the OnEvent mechanism and the UI elements are loaded with GetElementByName from some custom xml file format I made for that game).
To see how it looks you can download the (free) game here: http://www.irrgheist.com/ and take a look at the controller menu.
And no apologies needed, your post fits in here :-)
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