Added code to fill in menus for the bug report form and display it when placing a marker.

This commit is contained in:
Jamie Greunbaum
2024-05-23 01:36:00 -04:00
parent 5c37903872
commit 64f6193701
11 changed files with 447 additions and 118 deletions
+7 -1
View File
@@ -299,6 +299,7 @@ func __place_marker(_position:Vector3, _normal:Vector3):
if __raycast_collision:
var collider : Area3D = __raycast_collision["collider"] as Area3D
if collider and collider.is_in_group("BugMarkerInfo"):
print("Pop up bug marker info here.")
return
var marker : BugMarker = (load(bug_marker) as PackedScene).instantiate() as BugMarker
@@ -307,7 +308,12 @@ func __place_marker(_position:Vector3, _normal:Vector3):
marker.set_rotation_to_normal(_normal)
marker.marker_status = BugMarker.BugStatus.UNRESOLVED
__bugbot_server._send_form_data(func(data:Array):print(data))
__bugbot_server._prepare_form(__bug_report_form_data_prepared)
func __bug_report_form_data_prepared(tag_lists:Array):
var bug_report_form : Control = preload("res://addons/Bugbot/UI/bug_report_form.tscn").instantiate()
add_child(bug_report_form)
bug_report_form.fill_tags(tag_lists)
func __place_dummy_marker():