mirror of
https://github.com/gopher64/gopher64.git
synced 2026-09-23 12:56:24 +02:00
netplay feedback button (#454)
This commit is contained in:
@@ -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>]) {
|
||||
|
||||
@@ -93,5 +93,6 @@ export component About inherits Page {
|
||||
newversion_button_clicked();
|
||||
}
|
||||
}
|
||||
Rectangle { }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -43,5 +43,6 @@ export component LocalGame inherits Page {
|
||||
newversion_button_clicked();
|
||||
}
|
||||
}
|
||||
Rectangle { }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user