Bugs are now only placed in the scene if the bug report form was submitted.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user