Board index FlightGear Development Canvas

Not a canvas.Canvas  Topic is solved

Canvas is FlightGear's new fully scriptable 2D drawing system that will allow you to easily create new instruments, HUDs and even GUI dialogs and custom GUI widgets, without having to write C++ code and without having to rebuild FlightGear.

Not a canvas.Canvas

Postby Gijs » Thu Jun 19, 2014 4:44 pm

Hi,

since some recent changes, the popup canvas dialogs in the 744 (and 777) no longer work. I get the following error when clicking the ND in the 3D cockpit:
Code: Select all
Not a canvas.Canvas

Tthe error is coming from the second line of this:
Code: Select all
var dlg = canvas.Window.new([400, 400], "dialog");
dlg.setCanvas( nd_display[pilot] );

See Aircraft/747-400/Models/Cockpit/Instruments/ND/ND.nas for the full code. The ND itself shows up fine, so the Canvas is correctly generated.

Cheers,
Gijs
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Not a canvas.Canvas

Postby TheTom » Thu Jun 19, 2014 9:04 pm

fixed
TheTom
 
Posts: 322
Joined: Sun Oct 09, 2011 11:20 am

Re: Not a canvas.Canvas

Postby Gijs » Thu Jun 19, 2014 9:12 pm

Ehm where? Git reports no updates in either of three repositories...
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Not a canvas.Canvas  

Postby TheTom » Thu Jun 19, 2014 9:19 pm

Now it's really fixed. Should better read what git tells me^^
TheTom
 
Posts: 322
Joined: Sun Oct 09, 2011 11:20 am

Re: Not a canvas.Canvas

Postby Gijs » Thu Jun 19, 2014 9:25 pm

Don't worry, that happened a lot to me :-)
Excellent fix, thanks!
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10


Return to Canvas

Who is online

Users browsing this forum: No registered users and 6 guests