Bugs are now only placed in the scene if the bug report form was submitted.

This commit is contained in:
Jamie Greunbaum
2024-05-27 00:01:03 -04:00
parent 209d83cfea
commit a31a2f63af
2 changed files with 20 additions and 17 deletions
+4 -4
View File
@@ -1,7 +1,8 @@
class_name BugReportForm
extends ColorRect
signal closed
signal submitted(map_name:String, bug_location:Vector3, bug_rotation:Vector3)
signal cancelled
@onready var __version_button : MenuButton = $Form/VBoxContainerLeft/GridContainer/VersionButton
@onready var __hardware_button : MenuButton = $Form/VBoxContainerLeft/GridContainer/HardwareButton
@@ -100,10 +101,9 @@ func __get_label_ids_for_submission_data(label_array:Array, label_group_id:int):
break
func __submission_response(response:Variant):
print(response)
submitted.emit(map_name, bug_location, bug_rotation)
queue_free()
closed.emit()
func _on_cancel_button_pressed() -> void:
cancelled.emit()
queue_free()
closed.emit()