mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
Description
This commit is contained in:
parent
b6ab8de2b9
commit
b0c8f8538b
@ -228,14 +228,12 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
|
||||
|
||||
// User TAB
|
||||
{
|
||||
connect(ui->OpenCustom_trophyLocationButton, &QPushButton::clicked, this, []() {
|
||||
connect(ui->OpenCustomTrophyLocationButton, &QPushButton::clicked, this, []() {
|
||||
QString userPath;
|
||||
Common::FS::PathToQString(userPath,
|
||||
Common::FS::GetUserPath(Common::FS::PathType::CustomTrophy));
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(userPath));
|
||||
});
|
||||
|
||||
ui->label_Custom_Trophy->setText(ui->label_Custom_Trophy->text().replace("\\n", "\n"));
|
||||
}
|
||||
|
||||
// Input TAB
|
||||
@ -321,6 +319,9 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
|
||||
ui->checkCompatibilityOnStartupCheckBox->installEventFilter(this);
|
||||
ui->updateCompatibilityButton->installEventFilter(this);
|
||||
|
||||
// User
|
||||
ui->OpenCustomTrophyLocationButton->installEventFilter(this);
|
||||
|
||||
// Input
|
||||
ui->hideCursorGroupBox->installEventFilter(this);
|
||||
ui->idleTimeoutGroupBox->installEventFilter(this);
|
||||
@ -606,6 +607,11 @@ void SettingsDialog::updateNoteTextEdit(const QString& elementName) {
|
||||
text = tr("Update Compatibility Database:\\nImmediately update the compatibility database.");
|
||||
}
|
||||
|
||||
//User
|
||||
if (elementName == "OpenCustomTrophyLocationButton") {
|
||||
text = tr("It is possible to add custom images to the trophies.\\nAdd the files to custom_trophy with the following names:\\nbronze.png, gold.png, platinum.png, silver.png");
|
||||
}
|
||||
|
||||
// Input
|
||||
if (elementName == "hideCursorGroupBox") {
|
||||
text = tr("Hide Cursor:\\nChoose when the cursor will disappear:\\nNever: You will always see the mouse.\\nidle: Set a time for it to disappear after being idle.\\nAlways: you will never see the mouse.");
|
||||
|
@ -59,7 +59,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>6</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QScrollArea" name="generalTab">
|
||||
<property name="widgetResizable">
|
||||
@ -1292,18 +1292,9 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_Custom_Trophy">
|
||||
<widget class="QPushButton" name="OpenCustomTrophyLocationButton">
|
||||
<property name="text">
|
||||
<string>It is possible to add custom images to the trophies.
|
||||
Add the files to custom_trophy with the following names:
|
||||
bronze.png, gold.png, platinum.png, silver.png</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="OpenCustom_trophyLocationButton">
|
||||
<property name="text">
|
||||
<string>Open custom_trophy folder</string>
|
||||
<string>Open custom trophy image folder</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -1312,14 +1312,8 @@
|
||||
<translation>Trophy</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>It is possible to add custom images to the trophies.
|
||||
Add the files to custom_trophy with the following names:
|
||||
bronze.png, gold.png, platinum.png, silver.png</source>
|
||||
<translation>It is possible to add custom images to the trophies.\nAdd the files to custom_trophy with the following names:\nbronze.png, gold.png, platinum.png, silver.png</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Open custom_trophy folder</source>
|
||||
<translation>Open custom_trophy folder</translation>
|
||||
<source>Open custom trophy image folder</source>
|
||||
<translation>Open custom trophy image folder</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Logger</source>
|
||||
@ -1621,6 +1615,10 @@ bronze.png, gold.png, platinum.png, silver.png</source>
|
||||
<source>Update Compatibility Database:\nImmediately update the compatibility database.</source>
|
||||
<translation>Update Compatibility Database:\nImmediately update the compatibility database.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>It is possible to add custom images to the trophies.\nAdd the files to custom_trophy with the following names:\nbronze.png, gold.png, platinum.png, silver.png</source>
|
||||
<translation>It is possible to add custom images to the trophies.\nAdd the files to custom_trophy with the following names:\nbronze.png, gold.png, platinum.png, silver.png</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Never</source>
|
||||
<translation>Never</translation>
|
||||
|
Loading…
Reference in New Issue
Block a user