CGUI: MyGUI plugin for Construct

sglorz

07-02-2011 20:18:38

Hi all,

I'm creating a plugin for Construct game engine (http://www.scirra.com/). You can see part of the result here: http://www.scirra.com/forum/viewtopic.php?f=33&t=8313&sid=82d2c667cc273a1647a076f5e18fe567.

I just want to ask the authors if it's ok for them and if I can distribute a compiled version of the tools (layout editor, skin editor, etc...) along with my plugin.

Altren

07-02-2011 22:12:22

I'm glad to see MyGUI being integrated in game engine. Yes, you are free to distribute a compiled version of the tools, but I hope that users can see, that they use MyGUI :)

Do you have any problems with integrating MyGUI? May be changed something? Feedback is welcome.

sglorz

07-02-2011 22:24:18

Of course they know that they are using MyGUI! :D

The most difficult part was the rendering, but now it works well. I've ported the Themes_Demo into the Construct code and it works pretty well.
My only concern is that MyGUI really need a full documentation on top of doxygen's generated files to explain skin's, messaging among widget, xml files, etc...

By the way, how do I get the skin metrics (Window border width, window title height, etc...) and how can I make the resizing of a window client updating also its window size?

Altren

07-02-2011 23:20:09

The most difficult part was the rendering, but now it works well. I've ported the Themes_Demo into the Construct code and it works pretty well.
My only concern is that MyGUI really need a full documentation on top of doxygen's generated files to explain skin's, messaging among widget, xml files, etc...
There are also several pages at the wiki, but I agree about that much more still required.
By the way, how do I get the skin metrics (Window border width, window title height, etc...)Widget::getClientCoord() return client area coordinates, so you can calculate any metrics you need.
and how can I make the resizing of a window client updating also its window size?You should resize window itself, something like
window->setSize(window->getSize() - window->getClientCoord().size() + newClientSize);

my.name

07-02-2011 23:59:40

=)

sglorz

08-02-2011 08:25:13

There are also several pages at the wiki, but I agree about that much more still required.
Hopefully, MyGUI code is easy to understand (except for some coments in Russian :mrgreen:) and the overall design is very good.


Widget::getClientCoord() return client area coordinates, so you can calculate any metrics you need.

Ok, I will look into it.

window->setSize(window->getSize() - window->getClientCoord().size() + newClientSize);
Of course! I should have found it myself :P