I have been doing some serious GUI development and started to notice some inconsistencies with how the IGUIElements behave to the ISceneNodes.
The two biggest that I noticed and would like to have are getChildren and get*byID.
The main reason for this is that I have been creating control sets. An example of which is my character creation stat creator. It's a scrollbar with a textbox for the name, another for the value, and a third for the bonus modifier. All are set as children. When the scrollbar is changed, I mage a call to get it's children, determine which one is which and adjust them accordingly. Usually, it's easy to determine which is which because they are in order on the list as they were put on. Vice versa, if the textbox is changed, it does a getParent() and I set the parent there.
Visual Example:
StatName [----->____] [Value] Modifier
{Static Text}{Scrollbar}{Textbox}{Static Text}
I wrote some functions that were just basically copies from ISceneNode, and replaced it with the IGUIElement equivalent. If you did the same, it would be exactly like the source I created. But if you would need my source to include, let me know.
Request: IGUIElement->getChildren() + getElementbyID
Request: IGUIElement->getChildren() + getElementbyID
Crud, how do I do this again?
I was reading through the API Docs on my PDA on the way to work this morning and smacked my head when I saw scenemanager::setKeyFocus().
I don't have the code to check to see how exactly it works, but I'll play with it tonight as if it really does perform some sort of OnEvent for keypresses on a GUI level instead of on an application OnEvent level, that would be sorta sweet.
I don't have the code to check to see how exactly it works, but I'll play with it tonight as if it really does perform some sort of OnEvent for keypresses on a GUI level instead of on an application OnEvent level, that would be sorta sweet.
Crud, how do I do this again?
textbox???
irrlicht has a text entry gui element?? or did i mistake what you said saigumi??? if it does, what is it called? i never saw that in the docs...did i miss it....wierd!
that would be good though, cuz i wanted to have a chat within the game, so i could use that...
-Ted
that would be good though, cuz i wanted to have a chat within the game, so i could use that...
-Ted
My irrlicht-based projects have gone underground for now, but if you want, check out my webcomic instead! http://brokenboomerang.net
cool, snippet??
sounds good suppose i could get a code snippet?
i could really use that
i could really use that
My irrlicht-based projects have gone underground for now, but if you want, check out my webcomic instead! http://brokenboomerang.net