[Plugin]UITemplates

Forum Home Forum Home > Construct 2 Development > Plugins for Construct 2
 Post Reply Post Reply
Author
5,297 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Topic: [Plugin]UITemplates
    Posted: 02 Mar 2012 at 2:19pm
After a discussion with Kyatric on IRC, here's a new plugin : UITemplates.



Do you miss the various "Layout" objects from Java/SWING, allowing you to have a "bag" in which you throw some widgets, and the "Layout" object arranges everything onscreen for you (you can have GridLayout, a FlowLayout, and a lot of other elastic Layouts).

This plugin is there to do the same. I renamed the whole thing "Templates", to avoid confusions with C2's layouts.

For the beginning, there's only GridTemplate. You can specify a number of rows/columns, the inner padding in pixels from the border, and at widgets.

Currently, it only works with objects added at runtime (I still need to understand how to add objects create at editime without breaking everythin). It doesn't work also with HTML objects (Button, TextBox, HTML_Div, etc..), because those are using CSS to style themselves.

The demo : http://dl.dropbox.com/u/1412774/UITemplate/index.html

The plugin : http://dl.dropbox.com/u/1412774/UITemplate/pode_UITemplates.0.1.zip

As always, Critics&Comments are welcomed !

Edit : I forgot to say it, but : thanks a lot to (French)Yann for is ]sliders example code !

Edited by Pode - 02 Mar 2012 at 2:20pm
Back to Top
9,205 Rep
Post Options Post Options   Quote edisone Quote  Post ReplyReply Direct Link To This Post Posted: 05 Mar 2012 at 12:53pm
FANTASTIC...ty Pode ^^
Back to Top
5,297 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Posted: 05 Mar 2012 at 6:12pm
@edisone : wouhou, at least one answer !
I'm planning to add that possibility at edittime too...
Back to Top
2,772 Rep
Post Options Post Options   Quote Joe7 Quote  Post ReplyReply Direct Link To This Post Posted: 05 Mar 2012 at 7:32pm
Keep up your good work!
Maybe some people that have never worked with a Layoutmanager didn't realise for what or how to use your plugin...

Much endurance for the edittime (-v8-) ..

.. waiting for the gridbag..

Edited by Joe7 - 05 Mar 2012 at 7:34pm
Back to Top
4,275 Rep
Post Options Post Options   Quote Index Quote  Post ReplyReply Direct Link To This Post Posted: 06 Mar 2012 at 3:29am
I love you.
Back to Top
1,506 Rep
Post Options Post Options   Quote Aura Quote  Post ReplyReply Direct Link To This Post Posted: 07 Aug 2012 at 5:01pm
Thank you !!!
Back to Top
3,605 Rep
Post Options Post Options   Quote sheepy Quote  Post ReplyReply Direct Link To This Post Posted: 07 Aug 2012 at 6:46pm
Thanks, Do you have the .capx of the example? ;]
Back to Top
5,297 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Posted: 07 Aug 2012 at 9:39pm
@sheepy : I'm on holidays, so I can't post it this week, but when I'm home I'll post it here.
Back to Top
1,651 Rep
Post Options Post Options   Quote rosareven Quote  Post ReplyReply Direct Link To This Post Posted: 03 Apr 2013 at 12:29am
I installed this plugin a while back to run a capx example from someone, then I forgot about it.

Recently I spent days wrestling with GUI management for my game, with a lot of "in-game winodws" set up. I ended up with the "each window gets its own layer" strategy, but after all that is done, I found UITemplates in my object selector.

/headdesk

I'll have to remember using this plugin for my next game. Right now my current game needs to get done and it's too late to redo the GUI with this plugin.
Personal edition user
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down