mirror of
https://github.com/simple64/simple64.git
synced 2026-11-17 02:54:02 +01:00
update gui
This commit is contained in:
1 parent
ba66c6da3c
commit
14f261f187
3 files changed
+38
-19
No files matched your search
+21
-16
@@ -176,15 +176,15 @@ void MainWindow::updateGB(Ui::MainWindow *ui)
|
||||
|
||||
QAction *fileSelect2 = new QAction(this);
|
||||
current = settings->value("Player1GBRAM").toString();
|
||||
fileSelect2->setText("Player 1 RAM: " + current);
|
||||
fileSelect2->setText("Player 1 SAV: " + current);
|
||||
GB->addAction(fileSelect2);
|
||||
connect(fileSelect2, &QAction::triggered,[=](){
|
||||
QString filename = QFileDialog::getOpenFileName(this,
|
||||
tr("GB RAM File"), NULL, tr("GB RAM Files (*.sav)"));
|
||||
tr("GB RAM File"), NULL, tr("GB SAV Files (*.sav)"));
|
||||
if (!filename.isNull()) {
|
||||
settings->setValue("Player1GBRAM", filename);
|
||||
QString current = filename;
|
||||
fileSelect2->setText("Player 1 RAM: " + current);
|
||||
fileSelect2->setText("Player 1 SAV: " + current);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -195,7 +195,7 @@ void MainWindow::updateGB(Ui::MainWindow *ui)
|
||||
settings->remove("Player1GBROM");
|
||||
settings->remove("Player1GBRAM");
|
||||
fileSelect->setText("Player 1 ROM: ");
|
||||
fileSelect2->setText("Player 1 RAM: ");
|
||||
fileSelect2->setText("Player 1 SAV: ");
|
||||
});
|
||||
GB->addSeparator();
|
||||
|
||||
@@ -215,15 +215,15 @@ void MainWindow::updateGB(Ui::MainWindow *ui)
|
||||
|
||||
fileSelect2 = new QAction(this);
|
||||
current = settings->value("Player2GBRAM").toString();
|
||||
fileSelect2->setText("Player 2 RAM: " + current);
|
||||
fileSelect2->setText("Player 2 SAV: " + current);
|
||||
GB->addAction(fileSelect2);
|
||||
connect(fileSelect2, &QAction::triggered,[=](){
|
||||
QString filename = QFileDialog::getOpenFileName(this,
|
||||
tr("GB RAM File"), NULL, tr("GB RAM Files (*.sav)"));
|
||||
tr("GB RAM File"), NULL, tr("GB SAV Files (*.sav)"));
|
||||
if (!filename.isNull()) {
|
||||
settings->setValue("Player2GBRAM", filename);
|
||||
QString current = filename;
|
||||
fileSelect2->setText("Player 2 RAM: " + current);
|
||||
fileSelect2->setText("Player 2 SAV: " + current);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -234,7 +234,7 @@ void MainWindow::updateGB(Ui::MainWindow *ui)
|
||||
settings->remove("Player2GBROM");
|
||||
settings->remove("Player2GBRAM");
|
||||
fileSelect->setText("Player 2 ROM: ");
|
||||
fileSelect2->setText("Player 2 RAM: ");
|
||||
fileSelect2->setText("Player 2 SAV: ");
|
||||
});
|
||||
GB->addSeparator();
|
||||
|
||||
@@ -254,15 +254,15 @@ void MainWindow::updateGB(Ui::MainWindow *ui)
|
||||
|
||||
fileSelect2 = new QAction(this);
|
||||
current = settings->value("Player3GBRAM").toString();
|
||||
fileSelect2->setText("Player 3 RAM: " + current);
|
||||
fileSelect2->setText("Player 3 SAV: " + current);
|
||||
GB->addAction(fileSelect2);
|
||||
connect(fileSelect2, &QAction::triggered,[=](){
|
||||
QString filename = QFileDialog::getOpenFileName(this,
|
||||
tr("GB RAM File"), NULL, tr("GB RAM Files (*.sav)"));
|
||||
tr("GB RAM File"), NULL, tr("GB SAV Files (*.sav)"));
|
||||
if (!filename.isNull()) {
|
||||
settings->setValue("Player3GBRAM", filename);
|
||||
QString current = filename;
|
||||
fileSelect2->setText("Player 3 RAM: " + current);
|
||||
fileSelect2->setText("Player 3 SAV: " + current);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -273,7 +273,7 @@ void MainWindow::updateGB(Ui::MainWindow *ui)
|
||||
settings->remove("Player3GBROM");
|
||||
settings->remove("Player3GBRAM");
|
||||
fileSelect->setText("Player 3 ROM: ");
|
||||
fileSelect2->setText("Player 3 RAM: ");
|
||||
fileSelect2->setText("Player 3 SAV: ");
|
||||
});
|
||||
GB->addSeparator();
|
||||
|
||||
@@ -293,15 +293,15 @@ void MainWindow::updateGB(Ui::MainWindow *ui)
|
||||
|
||||
fileSelect2 = new QAction(this);
|
||||
current = settings->value("Player4GBRAM").toString();
|
||||
fileSelect2->setText("Player 4 RAM: " + current);
|
||||
fileSelect2->setText("Player 4 SAV: " + current);
|
||||
GB->addAction(fileSelect2);
|
||||
connect(fileSelect2, &QAction::triggered,[=](){
|
||||
QString filename = QFileDialog::getOpenFileName(this,
|
||||
tr("GB RAM File"), NULL, tr("GB RAM Files (*.sav)"));
|
||||
tr("GB RAM File"), NULL, tr("GB SAV Files (*.sav)"));
|
||||
if (!filename.isNull()) {
|
||||
settings->setValue("Player4GBRAM", filename);
|
||||
QString current = filename;
|
||||
fileSelect2->setText("Player 4 RAM: " + current);
|
||||
fileSelect2->setText("Player 4 SAV: " + current);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -312,7 +312,7 @@ void MainWindow::updateGB(Ui::MainWindow *ui)
|
||||
settings->remove("Player4GBROM");
|
||||
settings->remove("Player4GBRAM");
|
||||
fileSelect->setText("Player 4 ROM: ");
|
||||
fileSelect2->setText("Player 4 RAM: ");
|
||||
fileSelect2->setText("Player 4 SAV: ");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -912,6 +912,11 @@ void MainWindow::on_actionSupport_on_Patreon_triggered()
|
||||
QDesktopServices::openUrl(QUrl("https://www.patreon.com/loganmc10"));
|
||||
}
|
||||
|
||||
void MainWindow::on_actionSupport_on_GithubSponser_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://github.com/sponsors/loganmc10"));
|
||||
}
|
||||
|
||||
void MainWindow::on_actionOpen_Discord_Channel_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://discord.gg/tsR3RtYynZ"));
|
||||
|
||||
@@ -124,6 +124,8 @@ private slots:
|
||||
|
||||
void on_actionSupport_on_Patreon_triggered();
|
||||
|
||||
void on_actionSupport_on_GithubSponser_triggered();
|
||||
|
||||
void on_actionOpen_Discord_Channel_triggered();
|
||||
|
||||
private:
|
||||
|
||||
@@ -70,13 +70,20 @@
|
||||
</property>
|
||||
<addaction name="actionCreate_Room"/>
|
||||
<addaction name="actionJoin_Room"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuCommunity">
|
||||
<property name="title">
|
||||
<string>Community</string>
|
||||
</property>
|
||||
<addaction name="actionOpen_Discord_Channel"/>
|
||||
<addaction name="actionSupport_on_Patreon"/>
|
||||
<addaction name="actionSupport_on_GithubSponser"/>
|
||||
</widget>
|
||||
<addaction name="menuFile"/>
|
||||
<addaction name="menuEmulation"/>
|
||||
<addaction name="menuSettings"/>
|
||||
<addaction name="menuNetplay"/>
|
||||
<addaction name="menuCommunity"/>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusBar"/>
|
||||
<action name="actionOpen_ROM">
|
||||
@@ -91,12 +98,12 @@
|
||||
</action>
|
||||
<action name="actionPlugin_Paths">
|
||||
<property name="text">
|
||||
<string>Plugin and Path Selection</string>
|
||||
<string>Input Plugin and Config Path Selection</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionStop_Game">
|
||||
<property name="text">
|
||||
<string>Stop Game (Escape)</string>
|
||||
<string>Stop Emulation (Escape)</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionPlugin_Settings">
|
||||
@@ -194,9 +201,14 @@
|
||||
<string>Support on Patreon</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSupport_on_GithubSponser">
|
||||
<property name="text">
|
||||
<string>Support on GitHub</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOpen_Discord_Channel">
|
||||
<property name="text">
|
||||
<string>Join Discord Channel</string>
|
||||
<string>Join Discord Server</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
|
||||
Reference in new issue
Block a user