Files
uarep-ctl/scenes/журнал/журнал.tscn

135 lines
4.4 KiB
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://trt0q8th3bn2"]
[ext_resource type="Script" uid="uid://drvdnl7f5kh45" path="res://scenes/журнал/журнал.gd" id="1_jtuvb"]
[ext_resource type="Script" uid="uid://wntacrubbnlp" path="res://addons/godot-logger/scripts/logger_output.gd" id="2_wm8il"]
[node name="журнал" type="Panel"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -2.0
offset_top = -1.0
offset_right = -2.0
offset_bottom = -1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_jtuvb")
[node name="content" type="RichTextLabel" parent="."]
layout_mode = 0
offset_left = 16.0
offset_top = 16.0
offset_right = 1584.0
offset_bottom = 1059.0
focus_mode = 2
theme_override_colors/selection_color = Color(0.72549, 0.270588, 0.133333, 1)
scroll_following = true
threaded = true
selection_enabled = true
deselect_on_focus_loss_enabled = false
drag_and_drop_selection_enabled = false
script = ExtResource("2_wm8il")
colors = {
1: Color(1, 0.930333, 0.81, 1),
2: Color(0.717032, 0.762489, 0.694309, 1),
4: Color(1, 0.690196, 0, 1),
8: Color(0.91, 0, 0, 1),
16: Color(0.868077, 0.247988, 0.62812, 1)
}
max_lines_count = 256
[node name="btn_save" type="Button" parent="."]
layout_mode = 0
offset_left = 1464.0
offset_top = 1080.0
offset_right = 1560.0
offset_bottom = 1116.0
text = "Сохранить"
[node name="btn_clear" type="Button" parent="."]
layout_mode = 0
offset_left = 1344.0
offset_top = 1080.0
offset_right = 1440.0
offset_bottom = 1116.0
text = "Очистить"
[node name="dlg_file" type="FileDialog" parent="."]
gui_embed_subwindows = true
title = "Сохранить журнал работы в файл"
initial_position = 2
size = Vector2i(900, 900)
borderless = true
cancel_button_text = "Отмена"
access = 2
[node name="filtrs" type="GridContainer" parent="."]
layout_mode = 0
offset_left = 15.0
offset_top = 1081.0
offset_right = 1326.0
offset_bottom = 1115.0
columns = 8
[node name="CheckBox_INFO" type="CheckBox" parent="filtrs"]
layout_mode = 2
button_pressed = true
text = "ИНФО"
metadata/filter = "ИНФО"
[node name="CheckBox_DEBUG" type="CheckBox" parent="filtrs"]
layout_mode = 2
button_pressed = true
text = "ОТЛАДКА"
metadata/filter = "ОТЛАДКА"
[node name="CheckBox_WARNING" type="CheckBox" parent="filtrs"]
layout_mode = 2
button_pressed = true
text = "ВНИМАНИЕ"
metadata/filter = "ВНИМАНИЕ"
[node name="CheckBox_ERROR" type="CheckBox" parent="filtrs"]
layout_mode = 2
button_pressed = true
text = "ОШИБКА"
metadata/filter = "ОШИБКА"
[node name="CheckBox_FATAL" type="CheckBox" parent="filtrs"]
layout_mode = 2
button_pressed = true
text = "АВАРИЯ"
metadata/filter = "АВАРИЯ"
[node name="CheckBox_THREAT" type="CheckBox" parent="filtrs"]
layout_mode = 2
button_pressed = true
text = "Цель"
metadata/filter = "Цель"
[node name="CheckBox_CONTROL" type="CheckBox" parent="filtrs"]
layout_mode = 2
button_pressed = true
text = "Контроль"
metadata/filter = "Контроль"
[node name="CheckBox_SCROLL" type="CheckBox" parent="filtrs"]
layout_mode = 2
button_pressed = true
text = "Прокручивать до конца"
metadata/filter = "Контроль"
[connection signal="button_down" from="btn_save" to="." method="_on_btn_save_button_down"]
[connection signal="button_down" from="btn_clear" to="." method="_on_clear_button_down" flags=3]
[connection signal="canceled" from="dlg_file" to="." method="_on_dlg_file_confirmed"]
[connection signal="confirmed" from="dlg_file" to="." method="_on_dlg_file_confirmed"]
[connection signal="file_selected" from="dlg_file" to="." method="_on_dlg_file_file_selected"]
[connection signal="pressed" from="filtrs/CheckBox_INFO" to="." method="_on_check_box_pressed"]
[connection signal="pressed" from="filtrs/CheckBox_DEBUG" to="." method="_on_check_box_pressed"]
[connection signal="pressed" from="filtrs/CheckBox_WARNING" to="." method="_on_check_box_pressed"]
[connection signal="pressed" from="filtrs/CheckBox_ERROR" to="." method="_on_check_box_pressed"]
[connection signal="pressed" from="filtrs/CheckBox_FATAL" to="." method="_on_check_box_pressed"]
[connection signal="pressed" from="filtrs/CheckBox_THREAT" to="." method="_on_check_box_pressed"]
[connection signal="pressed" from="filtrs/CheckBox_CONTROL" to="." method="_on_check_box_pressed"]
[connection signal="toggled" from="filtrs/CheckBox_SCROLL" to="content" method="_on_check_box_scroll_toggled"]