netplay feedback button (#454)

This commit is contained in:
Logan McNaughton 2025-06-28 16:50:59 +02:00 committed by GitHub
parent 11830b0222
commit 25aaa985f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 0 deletions

View File

@ -91,6 +91,9 @@ fn netplay_window(app: &AppWindow, controller_paths: &[Option<String>]) {
app.on_netplay_discord_button_clicked(move || {
open::that_detached("https://discord.gg/JyW6ZgBUyS").unwrap();
});
app.on_netplay_feedback_button_clicked(move || {
open::that_detached("https://github.com/gopher64/gopher64/discussions/453").unwrap();
});
}
fn local_game_window(app: &AppWindow, controller_paths: &[Option<String>]) {

View File

@ -93,5 +93,6 @@ export component About inherits Page {
newversion_button_clicked();
}
}
Rectangle { }
}
}

View File

@ -27,6 +27,7 @@ export component AppWindow inherits Window {
callback create_session_button_clicked;
callback join_session_button_clicked;
callback netplay_discord_button_clicked;
callback netplay_feedback_button_clicked;
in property version <=> AboutData.version;
in property has_update <=> AboutData.has_update;
in-out property integer_scaling <=> SettingsData.integer_scaling;
@ -87,6 +88,9 @@ export component AppWindow inherits Window {
netplay_discord_button_clicked => {
netplay_discord_button_clicked();
}
netplay_feedback_button_clicked => {
netplay_feedback_button_clicked();
}
}
if(side-bar.current-item == 3): Settings { }
if(side-bar.current-item == 4): About {

View File

@ -43,5 +43,6 @@ export component LocalGame inherits Page {
newversion_button_clicked();
}
}
Rectangle { }
}
}

View File

@ -37,6 +37,7 @@ export component Netplay inherits Page {
callback create_session_button_clicked;
callback join_session_button_clicked;
callback netplay_discord_button_clicked;
callback netplay_feedback_button_clicked;
title: @tr("Netplay");
VerticalBox {
@ -61,6 +62,10 @@ export component Netplay inherits Page {
}
}
Rectangle {
height: 20px;
}
HorizontalBox {
alignment: center;
Button {
@ -69,6 +74,13 @@ export component Netplay inherits Page {
netplay_discord_button_clicked();
}
}
Button {
text: @tr("Provide Feedback");
clicked => {
netplay_feedback_button_clicked();
}
}
}
}
}