kraj0t
08-11-2010 00:15:39
Hi there!
First post MyGUI forums - I just need to say THANKS for this great library
I am looking for a way to quickly editing my game objects' attributes while debugging. I've used and known other dead-simple gui libraries that let you do something like this:
You see what I mean? You're simply telling the GUI system that you want a widget that lets you edit a variable. You pass the display name for the widget, the type of it and the memory address that will be modified. For example, the gui system would add a slider if it's an integer, a textfield if it's a string...
Now, I know this has a lot of caveats and it can get totally horrible in so many ways: no multithreading control, direct access to a memory address... But I'm just asking if MyGUI supports it, or if anyone has done it. I just need it for quick 'n dirty debugging.
Cheers!
First post MyGUI forums - I just need to say THANKS for this great library

I am looking for a way to quickly editing my game objects' attributes while debugging. I've used and known other dead-simple gui libraries that let you do something like this:
m_fieldsEditPanel->addEditableField( "Player's jump speed", EDIT_FIELD_FLOAT, &( m_player.jumpSpeed ) );
You see what I mean? You're simply telling the GUI system that you want a widget that lets you edit a variable. You pass the display name for the widget, the type of it and the memory address that will be modified. For example, the gui system would add a slider if it's an integer, a textfield if it's a string...
Now, I know this has a lot of caveats and it can get totally horrible in so many ways: no multithreading control, direct access to a memory address... But I'm just asking if MyGUI supports it, or if anyone has done it. I just need it for quick 'n dirty debugging.
Cheers!