Доработка. Исправления при сопряжении с ПО МП-550. Добавлена возможность удаления помехи по команде от МП-550.
This commit is contained in:
9
fs.gd
9
fs.gd
@@ -110,6 +110,12 @@ class Fs:
|
||||
pow = ''
|
||||
width = ''
|
||||
interfer = null
|
||||
if isg == 0:
|
||||
btn.set_texture_normal(btn_txr3)
|
||||
elif isg == 1:
|
||||
btn.set_texture_normal(btn_txr0)
|
||||
elif isg == 2:
|
||||
btn.set_texture_normal(btn_txr1)
|
||||
|
||||
|
||||
func init_lbls(tab, x0, y0):
|
||||
@@ -177,7 +183,6 @@ func on_item_selected(item_num):
|
||||
g_active_fs.isg = item_num
|
||||
if g_active_fs.isg == 0:
|
||||
fs_off(g_active_fs)
|
||||
g_active_fs.btn.set_texture_normal(btn_txr3)
|
||||
elif g_active_fs.isg == 1:
|
||||
g_active_fs.btn.set_texture_normal(btn_txr0)
|
||||
elif g_active_fs.isg == 2:
|
||||
@@ -244,7 +249,6 @@ func set_fs(interfer: Interfers.Interfer):
|
||||
g_fs_dict[fs_num].interfer = interfer
|
||||
if (interfer.active_fs != g_fs_dict[fs_num]) and (interfer.active_fs != null):
|
||||
fs_off(interfer.active_fs)
|
||||
interfer.active_fs.btn.set_texture_normal(btn_txr0)
|
||||
interfer.active_fs = g_fs_dict[fs_num]
|
||||
g_fs_dict[fs_num].pow = float(interfer.options['powp'])
|
||||
g_fs_dict[fs_num].freq = float(freq)
|
||||
@@ -292,3 +296,4 @@ func on_receive_msg8(data):
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user