Bugs are now filed with their position information, and loaded into Godot with their proper positions intact.
This commit is contained in:
+10
-5
@@ -12,6 +12,12 @@ signal closed
|
||||
@onready var __summary_text : LineEdit = $Form/VBoxContainerRight/GridContainer/SummaryText
|
||||
@onready var __description_text : TextEdit = $Form/VBoxContainerRight/GridContainer/DescriptionText
|
||||
|
||||
@onready var __submit_button : Button = $Form/VBoxContainerRight/SubmitButton
|
||||
|
||||
var map_name : String
|
||||
var bug_location : Vector3
|
||||
var bug_rotation : Vector3
|
||||
|
||||
var __label_groups : Array
|
||||
var __stored_mouse_mode : int
|
||||
var __server_api : BugbotServerAPI
|
||||
@@ -52,6 +58,8 @@ func __fill_item_list(menu_button:MenuButton, label_group:int):
|
||||
|
||||
|
||||
func _on_submit_button_pressed() -> void:
|
||||
__submit_button.disabled = true
|
||||
|
||||
var error_detected : bool = false
|
||||
|
||||
var summary_text : String = __summary_text.text
|
||||
@@ -83,10 +91,7 @@ func _on_submit_button_pressed() -> void:
|
||||
"labels": labels_to_be_added,
|
||||
}
|
||||
|
||||
__server_api._send_form_data(bug_report_form_data, __form_data_response)
|
||||
|
||||
func __form_data_response(response:Variant):
|
||||
print(response)
|
||||
__server_api._send_form_data(bug_report_form_data, map_name, bug_location, bug_rotation, __submission_response)
|
||||
|
||||
func __get_label_ids_for_submission_data(label_array:Array, label_group_id:int):
|
||||
for label in __label_groups[label_group_id]:
|
||||
@@ -94,7 +99,7 @@ func __get_label_ids_for_submission_data(label_array:Array, label_group_id:int):
|
||||
label_array.append(label["id"])
|
||||
break
|
||||
|
||||
func __submission_response(response:Array):
|
||||
func __submission_response(response:Variant):
|
||||
print(response)
|
||||
queue_free()
|
||||
closed.emit()
|
||||
|
||||
Reference in New Issue
Block a user