Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ body:
validations:
required: false

- type: input
id: resolution
attributes:
label: Game resolution
placeholder: e.g. 1920x1080
description: >
If you report a problem from within the game, this will have been filled automatically with the current resolution.

You can change this if you are reporting a problem you saw in a different resolution.
Comment on lines +29 to +31

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good explanation!

validations:
required: false

- type: input
id: scene
attributes:
Expand All @@ -35,6 +47,19 @@ body:
validations:
required: false

- type: input
id: location
attributes:
label: Player location (X,Y)
placeholder: e.g. 0,0
description: >
Provide the player's coordinates in the format `X,Y` (integers only, no spaces). If reporting from within the game,
this will have been filled automatically with the player's current location.

Leave blank if location is irrelevant to the issue.
Comment on lines +56 to +59

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one too, nice explanation!

validations:
required: false

- type: textarea
id: about
attributes:
Expand Down
8 changes: 8 additions & 0 deletions scenes/globals/pause/report_bug_button.gd
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,12 @@ func _on_pressed() -> void:
if current_scene:
url += "&scene=" + current_scene.scene_file_path.uri_encode()

var game_resolution := DisplayServer.window_get_size()
if game_resolution:
url += "&resolution=" + var_to_str(game_resolution).uri_encode()

var player := get_tree().get_first_node_in_group("player") as Node2D
if player:
url += "&location=" + var_to_str(player.global_position).uri_encode()

OS.shell_open(url)
Loading