mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-12 03:45:51 -05:00
Update help buttons, chart help text
This commit is contained in:
@@ -37,6 +37,8 @@ ProjectSettingsEditor::~ProjectSettingsEditor()
|
||||
}
|
||||
|
||||
void ProjectSettingsEditor::connectSignals() {
|
||||
connect(ui->button_HelpFiles, &QAbstractButton::clicked, this, &ProjectSettingsEditor::openFilesHelp);
|
||||
connect(ui->button_HelpIdentifiers, &QAbstractButton::clicked, this, &ProjectSettingsEditor::openIdentifiersHelp);
|
||||
connect(ui->buttonBox, &QDialogButtonBox::clicked, this, &ProjectSettingsEditor::dialogButtonClicked);
|
||||
connect(ui->button_ImportDefaultPrefabs, &QAbstractButton::clicked, this, &ProjectSettingsEditor::importDefaultPrefabsClicked);
|
||||
connect(ui->comboBox_BaseGameVersion, &QComboBox::currentTextChanged, this, &ProjectSettingsEditor::promptRestoreDefaults);
|
||||
@@ -658,6 +660,16 @@ void ProjectSettingsEditor::dialogButtonClicked(QAbstractButton *button) {
|
||||
}
|
||||
}
|
||||
|
||||
void ProjectSettingsEditor::openFilesHelp() {
|
||||
static const QUrl url("https://huderlem.github.io/porymap/manual/project-files.html#files");
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
void ProjectSettingsEditor::openIdentifiersHelp() {
|
||||
static const QUrl url("https://huderlem.github.io/porymap/manual/project-files.html#identifiers");
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
// Close event triggered by a project reload. User doesn't need any prompts, just close the window.
|
||||
void ProjectSettingsEditor::closeQuietly() {
|
||||
// Turn off flags that trigger prompts
|
||||
|
||||
Reference in New Issue
Block a user