Рефактор. Режим "Работа". Группы элементов объединены в сцены.
This commit is contained in:
@@ -196,11 +196,11 @@ func message(level: int, text: String) -> void:
|
||||
msg["level"] = level
|
||||
msg["level_name"] = _names[level]
|
||||
msg["text"] = " " + text
|
||||
|
||||
|
||||
_msg_array.append(msg)
|
||||
if (_flt_msg(msg)):
|
||||
logged.emit(msg)
|
||||
|
||||
|
||||
|
||||
if _file_write_enabled:
|
||||
_file.store_line(format_file(msg))
|
||||
@@ -228,8 +228,8 @@ func _open_file() -> void:
|
||||
return print_debug(error_string(err))
|
||||
var read = _file.get_as_text()
|
||||
_file.seek_end(0)
|
||||
|
||||
|
||||
|
||||
|
||||
func _close_file() -> void:
|
||||
if is_instance_valid(_file) and _file.is_open():
|
||||
_file = null
|
||||
@@ -259,8 +259,8 @@ func _flt_msg(msg):
|
||||
if msg['level_name'] in flt_arr:
|
||||
return true
|
||||
return false
|
||||
|
||||
|
||||
|
||||
|
||||
func add_msgs():
|
||||
for msg in _msg_array:
|
||||
if (_flt_msg(msg)):
|
||||
|
||||
Reference in New Issue
Block a user