New sfx, credits overhaul, and feedback button

This commit is contained in:
2020-05-17 17:07:52 -04:00
parent 3614049c11
commit e22d56d0df
23 changed files with 388 additions and 6 deletions

View File

@ -14,6 +14,7 @@ func _ready():
$CreditsButton.connect("button_down", self, "_on_button_press", ["credits"])
$OptionsButton.connect("button_down", self, "_on_button_press", ["options"])
$BugButton.connect("button_down", self, "_on_button_press", ["bug"])
check_completion()
func _on_button_press(button):
@ -29,3 +30,20 @@ func _on_button_press(button):
get_parent().get_parent().get_node("OptionsDialog").popup_centered()
"bug":
OS.shell_open("https://github.com/josephbmanley/the-connection/issues/new?labels=bug&template=1_bug_report.md")
"feedback":
OS.shell_open("https://cloudsumu.com/r/confeedback")
func check_completion():
var file = File.new()
if file.file_exists("user://progress.json"):
file.open("user://progress.json", File.READ)
var data = parse_json(file.get_as_text())
file.close()
if typeof(data) == TYPE_DICTIONARY:
if "completed" in data:
if data["completed"] == "true":
var feed_back_button = Button.new()
feed_back_button.text = "Give Feedback"
feed_back_button.connect("button_down", self, "_on_button_press", ["feedback"])
add_child(feed_back_button)
move_child(feed_back_button, 3)