Bubble-Blower/addons/ai_assistant_hub/chat_history_editor.tscn
Marvin Dalheimer 0ab65e1df6
Init
2025-01-25 21:40:19 +01:00

82 lines
2.8 KiB
Text

[gd_scene load_steps=3 format=3 uid="uid://dn7xoyvs56oy6"]
[ext_resource type="Script" path="res://addons/ai_assistant_hub/chat_history_editor.gd" id="1_n0n5m"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dxmwm"]
bg_color = Color(0.21, 0.24, 0.29, 1)
[node name="ChatHistoryEditor" type="Window"]
title = "Chat hisotry editor"
initial_position = 2
size = Vector2i(800, 600)
exclusive = true
script = ExtResource("1_n0n5m")
[node name="Background" type="Panel" parent="."]
unique_name_in_owner = true
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_dxmwm")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="MarginContainer2" type="MarginContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/margin_left = 4
theme_override_constants/margin_top = 4
theme_override_constants/margin_right = 4
theme_override_constants/margin_bottom = 4
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/MarginContainer2"]
layout_mode = 2
theme_override_constants/separation = 8
[node name="Label" type="Label" parent="VBoxContainer/MarginContainer2/VBoxContainer"]
layout_mode = 2
text = "Edit the chat history. This is useful when you want the assistant to forget about parts of the conversation, or simply alter parts of it."
autowrap_mode = 2
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/MarginContainer2/VBoxContainer"]
layout_mode = 2
[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer/MarginContainer2/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
follow_focus = true
horizontal_scroll_mode = 0
[node name="EntriesContainer" type="VBoxContainer" parent="VBoxContainer/MarginContainer2/VBoxContainer/ScrollContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="HSeparator2" type="HSeparator" parent="VBoxContainer"]
auto_translate_mode = 1
layout_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
theme_override_constants/margin_left = 4
theme_override_constants/margin_top = 4
theme_override_constants/margin_right = 4
theme_override_constants/margin_bottom = 4
[node name="SaveAndCloseBtn" type="Button" parent="VBoxContainer/MarginContainer"]
layout_mode = 2
text = "Save and Close"
[connection signal="close_requested" from="." to="." method="_on_close_requested"]
[connection signal="pressed" from="VBoxContainer/MarginContainer/SaveAndCloseBtn" to="." method="_on_save_and_close_btn_pressed"]