implement provisional bug button
This commit is contained in:
parent
2182df5210
commit
23eb1e3ed2
|
|
@ -0,0 +1,29 @@
|
||||||
|
class_name BugButton extends Button
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
pressed.connect(create_bug_report)
|
||||||
|
text = "copy Debug Info & open Log"
|
||||||
|
tooltip_text = "Get what is nessecary to create a Bug Report in the Steam Community Forums"
|
||||||
|
|
||||||
|
func create_bug_report():
|
||||||
|
OS.shell_show_in_file_manager(ProjectSettings.globalize_path(ProjectSettings.get_setting("debug/file_logging/log_path")))
|
||||||
|
var debug_text:String = """Help us identify the bug by
|
||||||
|
1. Telling us what you did before it happened
|
||||||
|
2. Describing what you expected to happen and what ended up happening
|
||||||
|
3. Attaching a screenshot if possible
|
||||||
|
4. Attaching the Log file that should have popped up on your screen.
|
||||||
|
5. Leaving in this information:
|
||||||
|
|
||||||
|
OS: %s
|
||||||
|
GPU: %s
|
||||||
|
Current Focus: %s
|
||||||
|
Current Scene: %s
|
||||||
|
Mementos: %s
|
||||||
|
""" % [OS.get_name(), OS.get_video_adapter_driver_info(), State.stage_list, State.current_room, Scenes.completed_sequences]
|
||||||
|
|
||||||
|
|
||||||
|
#debug_text = debug_text.replace(" ", "%20").replace("\n", "%0A").replace("\t", "")
|
||||||
|
DisplayServer.clipboard_set(debug_text)
|
||||||
|
|
||||||
|
|
||||||
|
#print("mailto:support@polynormal.games?subject=Frame%20of%20Mind%20Demo%20-%20Bug%20Report&body=" + debug_text)
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
uid://sa15wakvpj2e
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
[gd_scene load_steps=2 format=3 uid="uid://bcce5c1o6g13w"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://sa15wakvpj2e" path="res://dev-util/bug_button.gd" id="1_jjjqg"]
|
||||||
|
|
||||||
|
[node name="BugButton" type="Button"]
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
script = ExtResource("1_jjjqg")
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=76 format=3 uid="uid://befxf8uruwnrl"]
|
[gd_scene load_steps=77 format=3 uid="uid://befxf8uruwnrl"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://k8yppfbkq0xv" path="res://main.gd" id="1_rqkns"]
|
[ext_resource type="Script" uid="uid://k8yppfbkq0xv" path="res://main.gd" id="1_rqkns"]
|
||||||
[ext_resource type="PackedScene" uid="uid://gldtxysavetf" path="res://logic-scenes/startup/startup.tscn" id="1_v5rpm"]
|
[ext_resource type="PackedScene" uid="uid://gldtxysavetf" path="res://logic-scenes/startup/startup.tscn" id="1_v5rpm"]
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
[ext_resource type="Script" uid="uid://ladew4bsypon" path="res://addons/markdownlabel/header_formats/h6_format.gd" id="16_isrq1"]
|
[ext_resource type="Script" uid="uid://ladew4bsypon" path="res://addons/markdownlabel/header_formats/h6_format.gd" id="16_isrq1"]
|
||||||
[ext_resource type="Texture2D" uid="uid://d3ewjumh0b0g6" path="res://logic-scenes/main menu/logo.png" id="19_madrp"]
|
[ext_resource type="Texture2D" uid="uid://d3ewjumh0b0g6" path="res://logic-scenes/main menu/logo.png" id="19_madrp"]
|
||||||
[ext_resource type="Texture2D" uid="uid://sfo05h6uah7b" path="res://import/interface-elements/USK_12.svg" id="20_ku514"]
|
[ext_resource type="Texture2D" uid="uid://sfo05h6uah7b" path="res://import/interface-elements/USK_12.svg" id="20_ku514"]
|
||||||
|
[ext_resource type="Script" uid="uid://sa15wakvpj2e" path="res://dev-util/bug_button.gd" id="22_ryguw"]
|
||||||
|
|
||||||
[sub_resource type="GDScript" id="GDScript_8sq0u"]
|
[sub_resource type="GDScript" id="GDScript_8sq0u"]
|
||||||
script/source = "extends Label
|
script/source = "extends Label
|
||||||
|
|
@ -1732,6 +1733,11 @@ unique_name_in_owner = true
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "Resume"
|
text = "Resume"
|
||||||
|
|
||||||
|
[node name="BugButton" type="Button" parent="CenterContainer/PauseMenu/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
script = ExtResource("22_ryguw")
|
||||||
|
metadata/_custom_type_script = "uid://sa15wakvpj2e"
|
||||||
|
|
||||||
[node name="ToMenuButton" type="Button" parent="CenterContainer/PauseMenu/VBoxContainer"]
|
[node name="ToMenuButton" type="Button" parent="CenterContainer/PauseMenu/VBoxContainer"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
visible = false
|
visible = false
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
[gd_scene load_steps=17 format=3 uid="uid://b51wdql4mby47"]
|
[gd_scene load_steps=18 format=3 uid="uid://b51wdql4mby47"]
|
||||||
|
|
||||||
[ext_resource type="Theme" uid="uid://b056fn288p8ha" path="res://logic-scenes/themes/handwriting.theme" id="1_2dg4n"]
|
[ext_resource type="Theme" uid="uid://b056fn288p8ha" path="res://logic-scenes/themes/handwriting.theme" id="1_2dg4n"]
|
||||||
[ext_resource type="Script" uid="uid://c3o65t2rwpbtn" path="res://logic-scenes/main menu/main_menu.gd" id="2_rm576"]
|
[ext_resource type="Script" uid="uid://c3o65t2rwpbtn" path="res://logic-scenes/main menu/main_menu.gd" id="2_rm576"]
|
||||||
[ext_resource type="PackedScene" uid="uid://gmxenhavh1lp" path="res://logic-scenes/main menu/video_settings.tscn" id="3_f0dcd"]
|
[ext_resource type="PackedScene" uid="uid://gmxenhavh1lp" path="res://logic-scenes/main menu/video_settings.tscn" id="3_f0dcd"]
|
||||||
[ext_resource type="Texture2D" uid="uid://d3ewjumh0b0g6" path="res://logic-scenes/main menu/logo.png" id="3_xb2np"]
|
[ext_resource type="Texture2D" uid="uid://d3ewjumh0b0g6" path="res://logic-scenes/main menu/logo.png" id="3_xb2np"]
|
||||||
|
[ext_resource type="Script" uid="uid://sa15wakvpj2e" path="res://dev-util/bug_button.gd" id="4_j5v2v"]
|
||||||
[ext_resource type="Script" uid="uid://byiih47fi6740" path="res://dev-util/settings_popup.gd" id="4_k8jo0"]
|
[ext_resource type="Script" uid="uid://byiih47fi6740" path="res://dev-util/settings_popup.gd" id="4_k8jo0"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dfhkfocy8axb8" path="res://logic-scenes/main menu/audio_settings.tscn" id="4_o07mg"]
|
[ext_resource type="PackedScene" uid="uid://dfhkfocy8axb8" path="res://logic-scenes/main menu/audio_settings.tscn" id="4_o07mg"]
|
||||||
[ext_resource type="Script" uid="uid://0tb763w0vfv7" path="res://tab_container.gd" id="5_lhfti"]
|
[ext_resource type="Script" uid="uid://0tb763w0vfv7" path="res://tab_container.gd" id="5_lhfti"]
|
||||||
|
|
@ -316,6 +317,11 @@ layout_mode = 2
|
||||||
tooltip_text = "Plays the Game Credits"
|
tooltip_text = "Plays the Game Credits"
|
||||||
text = "Attribution"
|
text = "Attribution"
|
||||||
|
|
||||||
|
[node name="BugButton" type="Button" parent="PanelContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
script = ExtResource("4_j5v2v")
|
||||||
|
metadata/_custom_type_script = "uid://sa15wakvpj2e"
|
||||||
|
|
||||||
[node name="QuitButton" type="Button" parent="PanelContainer"]
|
[node name="QuitButton" type="Button" parent="PanelContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "quit"
|
text = "quit"
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,8 @@ PromptManager="*res://addons/input_prompts/input_prompt_manager.gd"
|
||||||
|
|
||||||
[debug]
|
[debug]
|
||||||
|
|
||||||
|
file_logging/enable_file_logging=true
|
||||||
|
file_logging/log_path="user://logs/frame-of-mind.log"
|
||||||
gdscript/warnings/native_method_override=0
|
gdscript/warnings/native_method_override=0
|
||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue