TheTom wrote in Sun Aug 05, 2012 1:17 pm:omega95 wrote in Sun Aug 05, 2012 1:00 pm:Is there a way, I can load THIS canvas onto a canvas GUI? Like in the above example?
Add the following to canvas/gui.nas:
- Code: Select all
setCanvas: func(canvas_)
{
if( !isa(canvas_, canvas.Canvas) )
return debug.warn("Not a canvas.Canvas");
canvas_.addPlacement({type: "window", index: me._node.getIndex()});
},
and then use
- Code: Select all
dlg.setCanvas(fmcScreen);
I will push it later...
What if I want to get canvas into a gui canvas area?