aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-10-10 02:04:00 +0200
committermetamuffin <metamuffin@disroot.org>2025-10-10 02:04:00 +0200
commitbd5cfa8adf2038d52cc0f9c137b024e20b16cee6 (patch)
tree2bcf27d912d70ce43af13e0452b4980b90dc79ca /client
parentf837968a63764b1fe2edda442e5f73da2cf203d7 (diff)
downloadhurrycurry-bd5cfa8adf2038d52cc0f9c137b024e20b16cee6.tar
hurrycurry-bd5cfa8adf2038d52cc0f9c137b024e20b16cee6.tar.bz2
hurrycurry-bd5cfa8adf2038d52cc0f9c137b024e20b16cee6.tar.zst
Add "report issues" button to about menu
Diffstat (limited to 'client')
-rw-r--r--client/gui/menus/main/about.gd9
-rw-r--r--client/gui/menus/main/about.tscn6
2 files changed, 12 insertions, 3 deletions
diff --git a/client/gui/menus/main/about.gd b/client/gui/menus/main/about.gd
index 0b559f91..fa3b6581 100644
--- a/client/gui/menus/main/about.gd
+++ b/client/gui/menus/main/about.gd
@@ -42,6 +42,7 @@ You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>."""
const SOURCE_CODE := "https://codeberg.org/hurrycurry/hurrycurry"
+const REPORT_ISSUE := "https://codeberg.org/hurrycurry/hurrycurry/issues"
func _ready() -> void:
super()
@@ -179,13 +180,15 @@ func _on_legal_pressed() -> void:
func _on_version_pressed() -> void:
submenu("res://gui/menus/popup_large.tscn", version_text())
-func _on_back_pressed() -> void:
- exit()
-
+func _on_report_issue_pressed() -> void:
+ OS.shell_open(REPORT_ISSUE)
func _on_source_pressed() -> void:
OS.shell_open(SOURCE_CODE)
+func _on_back_pressed() -> void:
+ exit()
+
func dedup_array(a: Array) -> Array:
var b = []
for x in a: if not b.has(x): b.append(x)
diff --git a/client/gui/menus/main/about.tscn b/client/gui/menus/main/about.tscn
index 006b61fe..5461d090 100644
--- a/client/gui/menus/main/about.tscn
+++ b/client/gui/menus/main/about.tscn
@@ -76,6 +76,11 @@ layout_mode = 2
text = "c.menu.about.source"
alignment = 0
+[node name="report_issue" type="Button" parent="side/margin/options/first"]
+layout_mode = 2
+text = "c.menu.about.report_issue"
+alignment = 0
+
[node name="first2" type="VBoxContainer" parent="side/margin/options"]
layout_mode = 2
size_flags_vertical = 3
@@ -90,4 +95,5 @@ alignment = 0
[connection signal="pressed" from="side/margin/options/first/version" to="." method="_on_version_pressed"]
[connection signal="pressed" from="side/margin/options/first/legal" to="." method="_on_legal_pressed"]
[connection signal="pressed" from="side/margin/options/first/source" to="." method="_on_source_pressed"]
+[connection signal="pressed" from="side/margin/options/first/report_issue" to="." method="_on_report_issue_pressed"]
[connection signal="pressed" from="side/margin/options/first2/back" to="." method="_on_back_pressed"]