diff --git a/UI/bug_report_form.gd b/UI/bug_report_form.gd index 709b052..2966b85 100644 --- a/UI/bug_report_form.gd +++ b/UI/bug_report_form.gd @@ -4,24 +4,24 @@ extends ColorRect signal submitted(map_name:String, bug_location:Vector3, bug_rotation:Vector3) signal cancelled -@onready var __product_name : Label = $Form/VBoxContainerLeft/GridContainer/ProductName as Label -@onready var __version_label : Label = $Form/VBoxContainerLeft/GridContainer/VersionLabel as Label -@onready var __version_button : MenuButton = $Form/VBoxContainerLeft/GridContainer/VersionButton as MenuButton -@onready var __hardware_label : Label = $Form/VBoxContainerLeft/GridContainer/HardwareLabel as Label -@onready var __hardware_button : MenuButton = $Form/VBoxContainerLeft/GridContainer/HardwareButton as MenuButton -@onready var __os_label : Label = $Form/VBoxContainerLeft/GridContainer/OSLabel as Label -@onready var __os_button : MenuButton = $Form/VBoxContainerLeft/GridContainer/OSButton as MenuButton -@onready var __component_label : Label = $Form/VBoxContainerLeft/GridContainer/ComponentLabel as Label -@onready var __component_button : MenuButton = $Form/VBoxContainerLeft/GridContainer/ComponentButton as MenuButton -@onready var __severity_label : Label = $Form/VBoxContainerLeft/GridContainer/SeverityLabel as Label -@onready var __severity_button : MenuButton = $Form/VBoxContainerLeft/GridContainer/SeverityButton as MenuButton +@onready var __product_name : Label = $VBoxContainer/Form/VBoxContainerLeft/GridContainer/ProductName as Label +@onready var __version_label : Label = $VBoxContainer/Form/VBoxContainerLeft/GridContainer/VersionLabel as Label +@onready var __version_button : MenuButton = $VBoxContainer/Form/VBoxContainerLeft/GridContainer/VersionButton as MenuButton +@onready var __hardware_label : Label = $VBoxContainer/Form/VBoxContainerLeft/GridContainer/HardwareLabel as Label +@onready var __hardware_button : MenuButton = $VBoxContainer/Form/VBoxContainerLeft/GridContainer/HardwareButton as MenuButton +@onready var __os_label : Label = $VBoxContainer/Form/VBoxContainerLeft/GridContainer/OSLabel as Label +@onready var __os_button : MenuButton = $VBoxContainer/Form/VBoxContainerLeft/GridContainer/OSButton as MenuButton +@onready var __component_label : Label = $VBoxContainer/Form/VBoxContainerLeft/GridContainer/ComponentLabel as Label +@onready var __component_button : MenuButton = $VBoxContainer/Form/VBoxContainerLeft/GridContainer/ComponentButton as MenuButton +@onready var __severity_label : Label = $VBoxContainer/Form/VBoxContainerLeft/GridContainer/SeverityLabel as Label +@onready var __severity_button : MenuButton = $VBoxContainer/Form/VBoxContainerLeft/GridContainer/SeverityButton as MenuButton -@onready var __summary_label : Label = $Form/VBoxContainerRight/GridContainer/SummaryLabel as Label -@onready var __summary_text : LineEdit = $Form/VBoxContainerRight/GridContainer/SummaryText as LineEdit -@onready var __description_label : Label = $Form/VBoxContainerRight/GridContainer/DescriptionLabel as Label -@onready var __description_text : TextEdit = $Form/VBoxContainerRight/GridContainer/DescriptionText as TextEdit +@onready var __summary_label : Label = $VBoxContainer/Form/VBoxContainerRight/GridContainer/SummaryLabel as Label +@onready var __summary_text : LineEdit = $VBoxContainer/Form/VBoxContainerRight/GridContainer/SummaryText as LineEdit +@onready var __description_label : Label = $VBoxContainer/Form/VBoxContainerRight/GridContainer/DescriptionLabel as Label +@onready var __description_text : TextEdit = $VBoxContainer/Form/VBoxContainerRight/GridContainer/DescriptionText as TextEdit -@onready var __submit_button : Button = $Form/VBoxContainerRight/SubmitButton as Button +@onready var __submit_button : Button = $VBoxContainer/Form/VBoxContainerRight/SubmitButton as Button var map_name : String var bug_location : Vector3 diff --git a/UI/bug_report_form.tscn b/UI/bug_report_form.tscn index 9172f4f..d0c712c 100644 --- a/UI/bug_report_form.tscn +++ b/UI/bug_report_form.tscn @@ -14,43 +14,50 @@ theme = ExtResource("1_rwv2x") color = Color(0, 0, 0, 0.25) script = ExtResource("2_w8fc6") -[node name="Form" type="HBoxContainer" parent="."] +[node name="VBoxContainer" type="VBoxContainer" parent="."] layout_mode = 1 anchors_preset = -1 -anchor_left = 0.1 -anchor_top = 0.54 -anchor_right = 0.9 +anchor_left = 0.05 +anchor_top = 0.1 +anchor_right = 0.95 anchor_bottom = 0.9 grow_horizontal = 2 grow_vertical = 2 -[node name="VBoxContainerLeft" type="VBoxContainer" parent="Form"] +[node name="Spacer" type="Control" parent="VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 + +[node name="Form" type="BoxContainer" parent="VBoxContainer"] +layout_mode = 2 + +[node name="VBoxContainerLeft" type="VBoxContainer" parent="VBoxContainer/Form"] layout_mode = 2 size_flags_horizontal = 3 size_flags_stretch_ratio = 0.67 -[node name="GridContainer" type="GridContainer" parent="Form/VBoxContainerLeft"] +[node name="GridContainer" type="GridContainer" parent="VBoxContainer/Form/VBoxContainerLeft"] layout_mode = 2 size_flags_vertical = 3 columns = 2 -[node name="ProductNameLabel" type="Label" parent="Form/VBoxContainerLeft/GridContainer"] +[node name="ProductNameLabel" type="Label" parent="VBoxContainer/Form/VBoxContainerLeft/GridContainer"] layout_mode = 2 text = "Product Name:" horizontal_alignment = 2 -[node name="ProductName" type="Label" parent="Form/VBoxContainerLeft/GridContainer"] +[node name="ProductName" type="Label" parent="VBoxContainer/Form/VBoxContainerLeft/GridContainer"] layout_mode = 2 size_flags_horizontal = 3 text = "NameOfProductHere" clip_text = true -[node name="VersionLabel" type="Label" parent="Form/VBoxContainerLeft/GridContainer"] +[node name="VersionLabel" type="Label" parent="VBoxContainer/Form/VBoxContainerLeft/GridContainer"] layout_mode = 2 text = "Version:" horizontal_alignment = 2 -[node name="VersionButton" type="MenuButton" parent="Form/VBoxContainerLeft/GridContainer"] +[node name="VersionButton" type="MenuButton" parent="VBoxContainer/Form/VBoxContainerLeft/GridContainer"] layout_mode = 2 focus_neighbor_right = NodePath("../../../VBoxContainerRight/GridContainer/SummaryText") focus_mode = 2 @@ -60,12 +67,12 @@ flat = false alignment = 0 clip_text = true -[node name="HardwareLabel" type="Label" parent="Form/VBoxContainerLeft/GridContainer"] +[node name="HardwareLabel" type="Label" parent="VBoxContainer/Form/VBoxContainerLeft/GridContainer"] layout_mode = 2 text = "Hardware:" horizontal_alignment = 2 -[node name="HardwareButton" type="MenuButton" parent="Form/VBoxContainerLeft/GridContainer"] +[node name="HardwareButton" type="MenuButton" parent="VBoxContainer/Form/VBoxContainerLeft/GridContainer"] layout_mode = 2 focus_neighbor_right = NodePath("../../../VBoxContainerRight/GridContainer/SummaryText") focus_mode = 2 @@ -75,12 +82,12 @@ flat = false alignment = 0 clip_text = true -[node name="OSLabel" type="Label" parent="Form/VBoxContainerLeft/GridContainer"] +[node name="OSLabel" type="Label" parent="VBoxContainer/Form/VBoxContainerLeft/GridContainer"] layout_mode = 2 text = "OS:" horizontal_alignment = 2 -[node name="OSButton" type="MenuButton" parent="Form/VBoxContainerLeft/GridContainer"] +[node name="OSButton" type="MenuButton" parent="VBoxContainer/Form/VBoxContainerLeft/GridContainer"] layout_mode = 2 focus_neighbor_right = NodePath("../../../VBoxContainerRight/GridContainer/SummaryText") focus_mode = 2 @@ -90,12 +97,12 @@ flat = false alignment = 0 clip_text = true -[node name="ComponentLabel" type="Label" parent="Form/VBoxContainerLeft/GridContainer"] +[node name="ComponentLabel" type="Label" parent="VBoxContainer/Form/VBoxContainerLeft/GridContainer"] layout_mode = 2 text = "Department:" horizontal_alignment = 2 -[node name="ComponentButton" type="MenuButton" parent="Form/VBoxContainerLeft/GridContainer"] +[node name="ComponentButton" type="MenuButton" parent="VBoxContainer/Form/VBoxContainerLeft/GridContainer"] layout_mode = 2 focus_neighbor_right = NodePath("../../../VBoxContainerRight/GridContainer/SummaryText") focus_mode = 2 @@ -105,12 +112,12 @@ flat = false alignment = 0 clip_text = true -[node name="SeverityLabel" type="Label" parent="Form/VBoxContainerLeft/GridContainer"] +[node name="SeverityLabel" type="Label" parent="VBoxContainer/Form/VBoxContainerLeft/GridContainer"] layout_mode = 2 text = "Severity:" horizontal_alignment = 2 -[node name="SeverityButton" type="MenuButton" parent="Form/VBoxContainerLeft/GridContainer"] +[node name="SeverityButton" type="MenuButton" parent="VBoxContainer/Form/VBoxContainerLeft/GridContainer"] layout_mode = 2 focus_neighbor_right = NodePath("../../../VBoxContainerRight/GridContainer/SummaryText") focus_mode = 2 @@ -120,42 +127,42 @@ flat = false alignment = 0 clip_text = true -[node name="CancelButton" type="Button" parent="Form/VBoxContainerLeft"] +[node name="CancelButton" type="Button" parent="VBoxContainer/Form/VBoxContainerLeft"] layout_mode = 2 text = "Cancel" -[node name="VBoxContainerRight" type="VBoxContainer" parent="Form"] +[node name="VBoxContainerRight" type="VBoxContainer" parent="VBoxContainer/Form"] layout_mode = 2 size_flags_horizontal = 3 -[node name="GridContainer" type="GridContainer" parent="Form/VBoxContainerRight"] +[node name="GridContainer" type="GridContainer" parent="VBoxContainer/Form/VBoxContainerRight"] layout_mode = 2 size_flags_vertical = 3 columns = 2 -[node name="SummaryLabel" type="Label" parent="Form/VBoxContainerRight/GridContainer"] +[node name="SummaryLabel" type="Label" parent="VBoxContainer/Form/VBoxContainerRight/GridContainer"] layout_mode = 2 text = "Summary:" horizontal_alignment = 2 -[node name="SummaryText" type="LineEdit" parent="Form/VBoxContainerRight/GridContainer"] +[node name="SummaryText" type="LineEdit" parent="VBoxContainer/Form/VBoxContainerRight/GridContainer"] layout_mode = 2 size_flags_horizontal = 3 -[node name="DescriptionLabel" type="Label" parent="Form/VBoxContainerRight/GridContainer"] +[node name="DescriptionLabel" type="Label" parent="VBoxContainer/Form/VBoxContainerRight/GridContainer"] layout_mode = 2 size_flags_vertical = 3 text = "Description:" horizontal_alignment = 2 -[node name="DescriptionText" type="TextEdit" parent="Form/VBoxContainerRight/GridContainer"] +[node name="DescriptionText" type="TextEdit" parent="VBoxContainer/Form/VBoxContainerRight/GridContainer"] layout_mode = 2 size_flags_vertical = 3 wrap_mode = 1 -[node name="SubmitButton" type="Button" parent="Form/VBoxContainerRight"] +[node name="SubmitButton" type="Button" parent="VBoxContainer/Form/VBoxContainerRight"] layout_mode = 2 text = "Submit" -[connection signal="pressed" from="Form/VBoxContainerLeft/CancelButton" to="." method="_on_cancel_button_pressed"] -[connection signal="pressed" from="Form/VBoxContainerRight/SubmitButton" to="." method="_on_submit_button_pressed"] +[connection signal="pressed" from="VBoxContainer/Form/VBoxContainerLeft/CancelButton" to="." method="_on_cancel_button_pressed"] +[connection signal="pressed" from="VBoxContainer/Form/VBoxContainerRight/SubmitButton" to="." method="_on_submit_button_pressed"]