Howto:Implementing a simple GCA system: Difference between revisions

Jump to navigation Jump to search
Line 278: Line 278:


var inputs = [
var inputs = [
{text: 'Aircraft root property:', default_value:'/position', focus:1},
{text: 'Aircraft root property:', default_value:'/position', focus:1, callback:nil, tooltip:nil, validate: nil, convert:nil},
{text: 'Airport:', default_value:'KSFO', focus:0},
{text: 'Airport:', default_value:'KSFO', focus:0, callback:nil, tooltip:nil, validate: nil, convert:nil},
{text: 'Runway:', default_value:'28R', focus:0},
{text: 'Runway:', default_value:'28R', focus:0, callback:nil, tooltip:nil, validate: nil, convert:nil},
{text: 'Glidepath:', default_value:'3.00', focus:0},
{text: 'Glidepath:', default_value:'3.00', focus:0, callback:nil, tooltip:nil, validate: nil, convert:nil},




Line 298: Line 298:
button.listen("clicked", func {
button.listen("clicked", func {
         # add code here to react on click on button.
         # add code here to react on click on button.
        # TODO: toggle all fields read-only
print("Button clicked !");
print("Button clicked !");
});
});

Navigation menu