[gd_scene load_steps=3 format=3 uid="uid://cbxovnvw5o4mo"]

[ext_resource type="Script" uid="uid://cufcnr6pxqofk" path="res://addons/godot_xterm/editor_plugins/terminal/terminal_panel.gd" id="1"]

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_osmrc"]
bg_color = Color(0.113329, 0.129458, 0.156802, 1)

[node name="Panel" type="Panel"]
custom_minimum_size = Vector2(0, 190)
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = 2304.0
offset_bottom = -233.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1")

[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 0

[node name="TabbarContainer" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="Tabs" type="TabBar" parent="VBoxContainer/TabbarContainer"]
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 0
tab_close_display_policy = 2
drag_to_rearrange_enabled = true

[node name="AddButton" type="Button" parent="VBoxContainer/TabbarContainer"]
layout_mode = 2
tooltip_text = "New Terminal (Ctrl+Shift+T)"
theme_override_colors/icon_normal_color = Color(0.6, 0.6, 0.6, 0.8)
flat = true

[node name="PopupMenu" type="PopupMenu" parent="VBoxContainer/TabbarContainer"]
item_count = 4
item_0/text = "Kill"
item_0/id = 0
item_1/text = "Kill Others"
item_1/id = 1
item_2/text = "Kill to the Right"
item_2/id = 2
item_3/text = "Kill All"
item_3/id = 3

[node name="TabContainer" type="TabContainer" parent="VBoxContainer"]
clip_contents = true
layout_mode = 2
size_flags_vertical = 3
theme_override_styles/panel = SubResource("StyleBoxFlat_osmrc")
tabs_visible = false
deselect_enabled = true

[node name="TerminalPopupMenu" type="PopupMenu" parent="VBoxContainer"]
size = Vector2i(136, 178)
item_count = 8
item_0/text = "New Terminal"
item_0/id = 0
item_1/id = 1
item_1/disabled = true
item_1/separator = true
item_2/text = "Copy"
item_2/id = 2
item_3/text = "Paste"
item_3/id = 3
item_4/text = "Select All"
item_4/id = 4
item_5/id = 5
item_5/separator = true
item_6/text = "Clear"
item_6/id = 6
item_7/text = "Kill Terminal"
item_7/id = 7

[node name="SizeLabel" type="Label" parent="."]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -52.0
offset_top = -15.5
offset_right = 52.0
offset_bottom = 15.5
grow_horizontal = 2
grow_vertical = 2
text = "Size:
(3456 x 1035 px)"

[node name="Panel" type="Panel" parent="SizeLabel"]
show_behind_parent = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -5.0
offset_top = -5.0
offset_right = 5.0
offset_bottom = 5.0
grow_horizontal = 2
grow_vertical = 2

[node name="SizeLabelTimer" type="Timer" parent="SizeLabel"]

[connection signal="resized" from="." to="." method="_on_Panel_resized"]
[connection signal="tab_changed" from="VBoxContainer/TabbarContainer/Tabs" to="." method="_on_Tabs_tab_changed"]
[connection signal="tab_close_pressed" from="VBoxContainer/TabbarContainer/Tabs" to="." method="_on_Tabs_tab_close"]
[connection signal="pressed" from="VBoxContainer/TabbarContainer/AddButton" to="." method="_on_AddButton_pressed"]
[connection signal="gui_input" from="VBoxContainer/TabContainer" to="." method="_on_TabContainer_gui_input"]
[connection signal="tab_changed" from="VBoxContainer/TabContainer" to="." method="_on_TabContainer_tab_changed"]
[connection signal="id_pressed" from="VBoxContainer/TerminalPopupMenu" to="." method="_on_TerminalPopupMenu_id_pressed"]
[connection signal="timeout" from="SizeLabel/SizeLabelTimer" to="." method="_on_SizeLabelTimer_timeout"]
