19 lines
748 B
GDScript
19 lines
748 B
GDScript
class_name setting extends Panel
|
|
|
|
|
|
## Вызывается, когда узел впервые попадает в дерево сцены.
|
|
func _ready() -> void:
|
|
$lbl_commit.text = 'Текущая версия ПО УАРЭП: \"%s\"' % commit.VCS_HEAD
|
|
if not OS.get_cmdline_args().has('++ограниченный'):
|
|
return
|
|
$Label2.text = 'Текущий режим доступа: ограниченный'
|
|
for node in $GridContainer.get_children().filter(func(b): return b is Button):
|
|
node.disabled = true
|
|
|
|
|
|
func _on_external_cu_btn_pressed() -> void:
|
|
var state = $GridContainer2/external_cu_btn.button_pressed
|
|
ProjectSettings.set_setting('application/config/external_cu', state)
|
|
if state:
|
|
signaller.emit_signal('interfer_off_all')
|