opatut
27-04-2011 15:28:01
Hello! I want to create my custom widget (a special type of button) but I cannot find any help/tutorials on how to do this. I searched google, this forum and the Ogre wiki.
I know there is the "StrangeButton" thing, but it does not really help me. Do I really need a factory class, a parser, and a plugin to wrap the Widget in? Can't I just create one class derived from MyGUI::Widget (or MyGUI::Button in my case)? And what methods would this class need, where would I implement the way the Widget is displayed and it behaves? /edit: I found the factory and parser thing in the SVN rev. 430 or so, seems to be outdated.
I'd appreciate any help as well as links to tutorials etc. if there are any.
Thanks.
I know there is the "StrangeButton" thing, but it does not really help me. Do I really need a factory class, a parser, and a plugin to wrap the Widget in? Can't I just create one class derived from MyGUI::Widget (or MyGUI::Button in my case)? And what methods would this class need, where would I implement the way the Widget is displayed and it behaves? /edit: I found the factory and parser thing in the SVN rev. 430 or so, seems to be outdated.
I'd appreciate any help as well as links to tutorials etc. if there are any.
Thanks.