oh-my-git/terminal.tscn

82 lines
2.2 KiB
Plaintext
Raw Normal View History

2020-09-14 20:36:58 +03:00
[gd_scene load_steps=6 format=2]
[ext_resource path="res://fonts/default.tres" type="DynamicFont" id=1]
[ext_resource path="res://terminal.gd" type="Script" id=2]
2020-09-15 13:50:01 +03:00
[ext_resource path="res://styles/terminal_input.tres" type="StyleBox" id=3]
2020-09-15 19:41:06 +03:00
[sub_resource type="StyleBoxFlat" id=1]
2020-09-15 13:50:01 +03:00
bg_color = Color( 0, 0, 0, 1 )
2020-09-11 11:33:44 +03:00
2020-09-15 19:41:06 +03:00
[sub_resource type="StyleBoxFlat" id=2]
2020-09-05 11:47:38 +03:00
content_margin_left = 10.0
content_margin_right = 10.0
content_margin_top = 10.0
2020-09-15 13:50:01 +03:00
content_margin_bottom = 10.0
bg_color = Color( 0, 0, 0, 1 )
[node name="Terminal" type="Container"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Control" type="VBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/separation = 0
__meta__ = {
"_edit_use_anchors_": false
}
2020-09-05 11:47:38 +03:00
[node name="Output" type="RichTextLabel" parent="Control"]
margin_right = 1920.0
2020-09-14 20:36:58 +03:00
margin_bottom = 1039.0
2020-09-14 17:03:01 +03:00
focus_mode = 2
size_flags_vertical = 3
2020-09-15 19:41:06 +03:00
custom_styles/focus = SubResource( 1 )
custom_styles/normal = SubResource( 2 )
2020-09-05 11:47:38 +03:00
custom_fonts/normal_font = ExtResource( 1 )
2020-09-14 17:03:01 +03:00
custom_colors/selection_color = Color( 0.14902, 0.368627, 0.168627, 0.690196 )
2020-09-05 11:47:38 +03:00
scroll_following = true
2020-09-14 17:03:01 +03:00
selection_enabled = true
2020-09-14 20:36:58 +03:00
[node name="InputLine" type="HBoxContainer" parent="Control"]
2020-09-05 11:47:38 +03:00
margin_top = 1039.0
margin_right = 1920.0
margin_bottom = 1080.0
2020-09-14 20:36:58 +03:00
[node name="Input" type="LineEdit" parent="Control/InputLine"]
margin_right = 1874.0
margin_bottom = 41.0
size_flags_horizontal = 3
2020-09-15 13:50:01 +03:00
custom_styles/read_only = ExtResource( 3 )
custom_styles/focus = ExtResource( 3 )
custom_styles/normal = ExtResource( 3 )
custom_fonts/font = ExtResource( 1 )
caret_blink = true
__meta__ = {
"_edit_use_anchors_": false
}
2020-09-14 20:36:58 +03:00
[node name="CommandDropdown" type="MenuButton" parent="Control/InputLine"]
margin_left = 1878.0
margin_right = 1920.0
margin_bottom = 41.0
custom_fonts/font = ExtResource( 1 )
text = "..."
flat = false
align = 0
[node name="ClearButton" type="Button" parent="."]
anchor_left = 0.9
anchor_right = 1.0
margin_left = -10.0
margin_top = 10.0
margin_right = -10.0
custom_fonts/font = ExtResource( 1 )
text = "Clear"
2020-09-14 20:36:58 +03:00
[connection signal="text_entered" from="Control/InputLine/Input" to="." method="send_command"]
[connection signal="pressed" from="ClearButton" to="." method="clear"]