Рефактор

This commit is contained in:
sasha80
2025-04-10 09:20:44 +03:00
parent fb5d80fe7e
commit baff42a31d
7 changed files with 41 additions and 35 deletions

View File

@@ -43,6 +43,16 @@ var settings_program: Dictionary
}
const FREQ_MAX: = 6000.0
const FREQ_MIN: = 400.0
const WIDTH_MAX: = 120.0
const WIDTH_MIN: = 0.0
const DUR_MAX: = 1000000.0
const PERIOD_MAX: = 1000000.0
const UM_MIN: = -5.0
const UM_MAX: = 55.0
func _ready() -> void:
var file = FileAccess.open(settings_file, FileAccess.READ)
if not file:
@@ -85,7 +95,6 @@ func _ready() -> void:
UnitProfiles[key][2] = temp_array[1]
else:
log.info('Не удалось прочитать ключ %s из файла настроек, использованы настройики по умолчанию' % key)
log.info('Модуль настроек готов')