Game Development Community

dev|Pro Game Development Curriculum

Popping windows out off the Canvas (Video included)

by Vince Gee · 10/13/2013 (5:19 pm) · 6 comments

Hey guys,

So I was playing around Friday and I mentioned to Paul that it sure would be nice to be able to break a tool window out of the play canvas and put it on it's own window. Mainly so our developers could use multiple monitors.

So, this is what I gave them!



Cool thing is that it works with any GuiWindow, you just have to add
new GuiWindowCollapseCtrl(EWInspectorWindow) {
      AllowPopWindow = "1";<------------
      canSaveDynamicFields = "0";
      internalName = "InspectorWindow";

The GuiWindowCtrl does now have a new event onPopWindow which is called after the window is popped out of the play canvas so you can reinitialize things if need be.

Once you set that property, all the magic happens in the C++.

Guess we will just include it in the next release of DNT (Codename: OMNI) since I don't feel like adding the necessary Bling to the video :)

#1
10/13/2013 (6:09 pm)
Wow, that's kind of great. Nice work!
#2
10/13/2013 (7:21 pm)
Guess I was wrong... it was 4 lines.... not 3 :-) Nice job guys!

Ron
#3
10/13/2013 (8:37 pm)
This is quite nice.

I am still wondering about using DNT or not. It is the sort of thing I wish would be considered for a community buyout, but I think it would cost a bit for you to decide to do that?
#4
10/14/2013 (12:21 am)
Our team of professional web designers offer the best <a href="http://www.mapitinc.com/basic-website-design.php">website design service</a>. The responsibility of our web design company is not to design a website only, but to design an online face for our customers that reflect their vision, mission, and strategy.
#5
10/14/2013 (3:34 am)
@Edward

IMO a community buyout is awesome to encourage a programmer to write a chunk of code. Basically, youre paying him. All the code is then donated to the community. To me, thats GREAT for an issue that needs fixed.

WinterLeaf Entertainment supports all of our products that anyone purchases from us. We also (in general) upgrade alot of our products and put out small fixes as we go forward. We are also actively developing more engine advancements than what we are informing you of here.

IMO, all of this is beyond a person writing some code for a community buyout. This is a company trying to get on its feet that will support products that we believe in.

If you have any reservations about DNT or any other WLE product, email myself (pyoskowitz@winterleafentertainment.com) or Vince (vgee@winterleafentertainment.com)
#6
10/15/2013 (1:16 am)
"The GuiWindowCtrl does now have a new event onPopWindow which is called after the window is popped out of the play canvas so you can reinitialize things if need be.
"

i did something like that long time ago(no c++,all was in script) and using it everyday.actually i got that idea from another popular engine.
very much helpful during world editing.