Tooltips: Difference between revisions

Jump to navigation Jump to search
64 bytes added ,  30 November 2020
m
→‎Use from Nasal: this was wrong, the argument must be wrapped in a props.Node, because it's handled by an fgcommand internally
m (→‎Known Issues: https://sourceforge.net/p/flightgear/mailman/message/35132010/)
m (→‎Use from Nasal: this was wrong, the argument must be wrapped in a props.Node, because it's handled by an fgcommand internally)
Line 150: Line 150:


#Show readme at position 10, 10
#Show readme at position 10, 10
gui.popupTip("readme", nil, nil, {y: 10, x: 10});
gui.popupTip("readme", nil, nil, props.Node.new({y: 10, x: 10}));


#Show readme at position y=10, with 2 second delay
#Show readme at position y=10, with 2 second delay
gui.popupTip("readme", 2, nil, {y: 10});
gui.popupTip("readme", 2, nil, props.Node.new({y: 10}));


#Show readme, with 6 second delay
#Show readme, with 6 second delay
Line 159: Line 159:


#Show readme at position x=10, y at default position
#Show readme at position x=10, y at default position
gui.popupTip("readme", nil, nil, {x: 10});
gui.popupTip("readme", nil, nil, props.Node.new({x: 10}));


#Show readme at position 10, 10, with 10 second delay
#Show readme at position 10, 10, with 10 second delay
gui.popupTip("readme", 10, nil, {"y": 10, "x": 10});
gui.popupTip("readme", 10, nil, props.Node.new({"y": 10, "x": 10}));
</syntaxhighlight>
</syntaxhighlight>


Navigation menu