Presencode/Console.tscn
JeremyStarTM e158173104 Update source code
- [Console.tscn, src/console.gd, src/console_info.gd, src/console_expressionscript.gd] Add (mostly uncommented) debugging console
- [example/test.gd] Optimize example presentation controller
- [src/loader.gd, src/pmana.gd] Move click overlay into Loader
- [src/pmana.gd] Add check against invalid controller scripts
- [src/pmana.gd] Create seperate pmana.shutdown() function to handle shutdowns during presentations
- [src/preader.gd] Add checks against empty manifest variable
- [src/preader.gd] Fix bug in get_authors()
- Change/optimize various other smaller things
2024-01-14 21:52:38 +01:00

97 lines
3.6 KiB
Text

[gd_scene load_steps=10 format=3 uid="uid://btyi16dkvbly1"]
[ext_resource type="Script" path="res://src/console.gd" id="1_viv5y"]
[ext_resource type="FontFile" uid="uid://bl4vgye7bg8kf" path="res://docs/static/assets/fonts/FiraCode-Regular.ttf" id="2_ebuk0"]
[ext_resource type="FontFile" uid="uid://b5qsng8gpvos3" path="res://docs/static/assets/fonts/FiraCode-Bold.ttf" id="3_102to"]
[ext_resource type="FontFile" uid="uid://c5jkbqx10tj8e" path="res://docs/static/assets/fonts/FiraCode-Medium.ttf" id="4_jqfsc"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_u40jo"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_wj4aw"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ime8b"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_hjtld"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_xa0gg"]
[node name="Console" type="ColorRect"]
offset_right = 767.0
offset_bottom = 426.0
script = ExtResource("1_viv5y")
[node name="Bar" type="ColorRect" parent="."]
layout_mode = 0
offset_left = 2.5
offset_top = 2.5
offset_right = 764.5
offset_bottom = 27.5
color = Color(0.839216, 0.0196078, 0.196078, 1)
[node name="X1" type="Line2D" parent="Bar"]
points = PackedVector2Array(760, 2, 739, 23)
width = 2.0
[node name="X2" type="Line2D" parent="Bar"]
points = PackedVector2Array(760, 23, 739, 2)
width = 2.0
[node name="CloseButton" type="Button" parent="Bar"]
layout_mode = 0
offset_left = 737.0
offset_right = 762.0
offset_bottom = 25.0
theme_override_styles/normal = SubResource("StyleBoxEmpty_u40jo")
theme_override_styles/hover = SubResource("StyleBoxEmpty_wj4aw")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_ime8b")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_hjtld")
theme_override_styles/focus = SubResource("StyleBoxEmpty_xa0gg")
[node name="DragButton" type="Button" parent="Bar"]
layout_mode = 0
offset_right = 737.0
offset_bottom = 25.0
theme_override_styles/normal = SubResource("StyleBoxEmpty_u40jo")
theme_override_styles/hover = SubResource("StyleBoxEmpty_wj4aw")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_ime8b")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_hjtld")
theme_override_styles/focus = SubResource("StyleBoxEmpty_xa0gg")
[node name="Shell" type="ColorRect" parent="."]
layout_mode = 0
offset_left = 2.5
offset_top = 27.5
offset_right = 764.5
offset_bottom = 423.5
color = Color(0, 0, 0, 1)
[node name="Output" type="RichTextLabel" parent="Shell"]
layout_mode = 0
offset_right = 762.0
offset_bottom = 361.0
theme_override_fonts/normal_font = ExtResource("2_ebuk0")
theme_override_fonts/bold_font = ExtResource("3_102to")
theme_override_fonts/italics_font = ExtResource("2_ebuk0")
theme_override_fonts/bold_italics_font = ExtResource("3_102to")
theme_override_fonts/mono_font = ExtResource("2_ebuk0")
theme_override_font_sizes/normal_font_size = 18
theme_override_font_sizes/bold_font_size = 18
theme_override_font_sizes/italics_font_size = 18
theme_override_font_sizes/bold_italics_font_size = 18
theme_override_font_sizes/mono_font_size = 18
bbcode_enabled = true
scroll_following = true
[node name="Input" type="TextEdit" parent="Shell"]
layout_mode = 0
offset_top = 361.0
offset_right = 762.0
offset_bottom = 396.0
theme_override_colors/background_color = Color(0, 0, 0, 1)
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_fonts/font = ExtResource("4_jqfsc")
theme_override_font_sizes/font_size = 18
placeholder_text = "Enter a command here"
[connection signal="pressed" from="Bar/CloseButton" to="." method="close_console"]
[connection signal="text_changed" from="Shell/Input" to="." method="input_changed"]