Board index FlightGear Development Canvas

API documentation for canvas

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.

API documentation for canvas

Postby wlbragg » Fri Apr 05, 2019 6:21 pm

Is there an API doc for canvas. where?

I'm also in need for information about formating numerical text. Is there a way to format it, for example something like...

ah, I think I just found it...
.setText(sprintf("%4.0f", 100.0 * getprop("/fdm/jsbsim/systems/apu/apu/apu-rpm-fraction"))

is this the best way?
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
Posts: 5884
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: API documentation for canvas

Postby Thorsten » Fri Apr 05, 2019 6:57 pm

Posts: 11765
Joined: Mon Nov 02, 2009 8:33 am

Return to Canvas

Who is online

Users browsing this forum: No registered users and 0 guests