Placeholder bug report forms can now be posted to Gitea.

This commit is contained in:
Jamie Greunbaum
2024-05-20 01:55:54 -04:00
parent fd156e56f3
commit 1f000909bb
4 changed files with 124 additions and 49 deletions
+6 -1
View File
@@ -67,6 +67,8 @@ extends CharacterBody3D
#endregion
#region Private Properties
var __bugbot_server : BugbotServerAPI
var __movement_speed : float = 5.0
var __stored_camera : Camera3D
@@ -82,6 +84,8 @@ func _enter_tree() -> void:
get_tree().paused = true
__stored_mouse_mode = Input.mouse_mode
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
__bugbot_server = BugbotServerAPI._create_new_server_api()
#region Movement Configuration
@@ -295,7 +299,6 @@ 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("Hit a guy!")
return
var marker : BugMarker = (load(bug_marker) as PackedScene).instantiate() as BugMarker
@@ -303,6 +306,8 @@ func __place_marker(_position:Vector3, _normal:Vector3):
marker.global_position = _position
marker.set_rotation_to_normal(_normal)
marker.marker_status = BugMarker.BugStatus.UNRESOLVED
__bugbot_server._send_form_data(func(data:Array):print(data))
func __place_dummy_marker():