use gui.Dialog() class instead of gui.loadXMLDialog() function (which has
been removed)
This commit is contained in:
parent
8aa5947e7a
commit
b5863d9cad
1 changed files with 8 additions and 3 deletions
|
@ -402,12 +402,17 @@ LeadTargetUpdate = func {
|
||||||
|
|
||||||
|
|
||||||
select_task_dialog = func {
|
select_task_dialog = func {
|
||||||
var dlg = props.globals.getNode("/sim/gui/dialogs/NTPS/config/dialog", 1);
|
dialog.load(); # load every time?
|
||||||
gui.loadXMLDialog(dlg, "gui/dialogs/NTPS_target_task.xml");
|
dialog.open();
|
||||||
fgcommand("dialog-show", dlg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var dialog = nil;
|
||||||
|
settimer(func {
|
||||||
|
dialog = gui.Dialog.new("/sim/gui/dialogs/NTPS/config/dialog", "gui/dialogs/NTPS_target_task.xml");
|
||||||
|
}, 0);
|
||||||
|
|
||||||
|
|
||||||
# timer handling to cause our update function to be called periodially
|
# timer handling to cause our update function to be called periodially
|
||||||
registerTimer = func {
|
registerTimer = func {
|
||||||
settimer(LeadTargetUpdate, update_period );
|
settimer(LeadTargetUpdate, update_period );
|
||||||
|
|
Loading…
Add table
Reference in a new issue