Override F12 with TR1133 dialog.
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
This commit is contained in:
parent
8b3649d140
commit
0475580b10
1 changed files with 7 additions and 4 deletions
|
@ -49,11 +49,14 @@ var TR1133_init = func(){
|
||||||
comm1_selected_node.setValue(0);
|
comm1_selected_node.setValue(0);
|
||||||
comm1_standby_node.setValue(0);
|
comm1_standby_node.setValue(0);
|
||||||
|
|
||||||
|
# override F12
|
||||||
|
setprop("input/keyboard/key[268]/binding/command", "nasal");
|
||||||
|
setprop("input/keyboard/key[268]/binding/script", "TR1133.radio_dlg.open()");
|
||||||
|
|
||||||
# Disable the menu item "Equipment > radio" so we use our own gui: " > Radio".
|
# Disable the menu item "Equipment > radio" so we use our own gui: " > Radio".
|
||||||
print("Disabling Menu: Equipment -> Radios GUI use Spitfire -> Radio");
|
print("Disabling Menu: Equipment -> Radios GUI using TR1133 -> Radio");
|
||||||
# gui.menuEnable("radio",0);
|
|
||||||
|
gui.menuBind("radio", "TR1133.radio_dlg.open()");
|
||||||
gui.menuBind("radio", "TR1133.radio_dlg.open()");
|
|
||||||
|
|
||||||
|
|
||||||
# =============================== listeners ===============================
|
# =============================== listeners ===============================
|
||||||
|
|
Loading…
Reference in a new issue