Bug info dialogue box now exists in-game, and offers the same functionality as the editor popup.
This commit is contained in:
@@ -377,7 +377,13 @@ func __place_marker(_position:Vector3, _normal:Vector3) -> void:
|
||||
process_mode = Node.PROCESS_MODE_PAUSABLE
|
||||
|
||||
func __pop_up_marker_info(_collider:BugInfoCollider, _position:Vector3, _normal:Vector3) -> void:
|
||||
print(_collider.bug_info.title)
|
||||
var bug_info_dialogue : BugbotBugInfoDialogue = preload("res://addons/Bugbot/UI/bug_info.tscn").instantiate()
|
||||
add_child(bug_info_dialogue)
|
||||
bug_info_dialogue.bug_info = _collider.bug_info
|
||||
process_mode = Node.PROCESS_MODE_PAUSABLE
|
||||
bug_info_dialogue.tree_exited.connect(__on_bug_info_dialogue_closed)
|
||||
func __on_bug_info_dialogue_closed() -> void:
|
||||
process_mode = Node.PROCESS_MODE_ALWAYS
|
||||
|
||||
|
||||
func __bug_report_form_data_prepared(tag_lists:Array) -> void:
|
||||
|
||||
Reference in New Issue
Block a user