Allow changing where general notifications pop up, just like with achievement notifications

This commit is contained in:
Henrik Rydgård 2025-01-20 18:02:56 +01:00
parent eb10247d77
commit 7d8b0329be
48 changed files with 53 additions and 2 deletions

View file

@ -315,6 +315,7 @@ static const ConfigSetting generalSettings[] = {
ConfigSetting("MemStickInserted", &g_Config.bMemStickInserted, true, CfgFlag::PER_GAME | CfgFlag::REPORT),
ConfigSetting("LoadPlugins", &g_Config.bLoadPlugins, true, CfgFlag::PER_GAME),
ConfigSetting("NotificationPos", &g_Config.iNotificationPos, (int)ScreenEdgePosition::TOP_CENTER, CfgFlag::DEFAULT),
ConfigSetting("IgnoreCompatSettings", &g_Config.sIgnoreCompatSettings, "", CfgFlag::PER_GAME | CfgFlag::REPORT),

View file

@ -555,6 +555,7 @@ public:
bool bAchievementsEnableRAIntegration;
// Positioning of the various notifications
int iNotificationPos;
int iAchievementsLeaderboardTrackerPos;
int iAchievementsLeaderboardStartedOrFailedPos;
int iAchievementsLeaderboardSubmittedPos;

View file

@ -1117,6 +1117,11 @@ void GameSettingsScreen::CreateSystemSettings(UI::ViewGroup *systemSettings) {
systemSettings->Add(new CheckBox(&g_Config.bTransparentBackground, sy->T("Transparent UI background")));
// Shared with achievements.
static const char *positions[] = { "None", "Bottom Left", "Bottom Center", "Bottom Right", "Top Left", "Top Center", "Top Right", "Center Left", "Center Right" };
systemSettings->Add(new PopupMultiChoice(&g_Config.iNotificationPos, sy->T("Notification screen position"), positions, -1, ARRAY_SIZE(positions), I18NCat::DIALOG, screenManager()));
static const char *backgroundAnimations[] = { "No animation", "Floating symbols", "Recent games", "Waves", "Moving background" };
systemSettings->Add(new PopupMultiChoice(&g_Config.iBackgroundAnimation, sy->T("UI background animation"), backgroundAnimations, 0, ARRAY_SIZE(backgroundAnimations), I18NCat::SYSTEM, screenManager()));

View file

@ -288,9 +288,9 @@ void OnScreenMessagesView::Draw(UIContext &dc) {
edges[(size_t)ScreenEdgePosition::TOP_CENTER].alpha = 1.0f;
ScreenEdgePosition typeEdges[(size_t)OSDType::VALUE_COUNT]{};
// Default to top.
// Default to the configured position.
for (int i = 0; i < (size_t)OSDType::VALUE_COUNT; i++) {
typeEdges[i] = ScreenEdgePosition::TOP_CENTER;
typeEdges[i] = (ScreenEdgePosition)g_Config.iNotificationPos;
}
typeEdges[(size_t)OSDType::ACHIEVEMENT_CHALLENGE_INDICATOR] = (ScreenEdgePosition)g_Config.iAchievementsChallengePos;

View file

@ -1355,6 +1355,7 @@ Moving background = خلفية متحركة
Newest Save = Newest save
No animation = No animation
Not a PSP game = PSP ليست لعبة
Notification screen position = Notification screen position
Off = ‎مغلق
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Not a PSP game
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Not a PSP game
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Not a PSP game
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Toto není hra PSP
Notification screen position = Notification screen position
Off = Vypnuto
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Not a PSP game
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Neuester Spielstand
No animation = No animation
Not a PSP game = Kein PSP Spiel
Notification screen position = Notification screen position
Off = Aus
Oldest Save = Ältester Spielstand
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Not a PSP game
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1361,6 +1361,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Not a PSP game
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1348,6 +1348,7 @@ Moving background = Fondo en movimiento
Newest Save = Partida guardada más reciente
No animation = Sin animación
Not a PSP game = No es un juego de PSP
Notification screen position = Notification screen position
Off = No
Oldest Save = Partida guardada más antigua
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1349,6 +1349,7 @@ Moving background = Fondo en movimiento
Newest Save = Nuevos datos de guardado
No animation = Sin animación
Not a PSP game = No es un juego de PSP
Notification screen position = Notification screen position
Off = No
Oldest Save = Antiguos datos de guardado
Only JPG and PNG images are supported = Sólo se admiten imágenes JPG y PNG

View file

@ -1347,6 +1347,7 @@ Moving background = پس زمینه فیلم
Newest Save = جدید ترین ذخیره سازی
No animation = بدون انمیشین
Not a PSP game = ‎نیست PSP بازی
Notification screen position = Notification screen position
Off = ‎خاموش
Oldest Save = قدیمی ترین ذخیره
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Liikkuva tausta
Newest Save = Uusin tallennus
No animation = Ei animaatiota
Not a PSP game = Ei PSP-peli
Notification screen position = Notification screen position
Off = Pois
Oldest Save = Vanhin tallennus
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1338,6 +1338,7 @@ Moving background = Moving background
Newest Save = Le plus récent état
No animation = No animation
Not a PSP game = Ce n'est pas un jeu PSP.
Notification screen position = Notification screen position
Off = Désactivé
Oldest Save = Le plus ancien état
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Not a PSP game
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Νεότερο αρχείο αποθήκευσης
No animation = No animation
Not a PSP game = Δεν είναι παιχνίδι PSP
Notification screen position = Notification screen position
Off = Off
Oldest Save = Παλαιότερο αρχείο αποθήκευσης
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Not a PSP game
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Not a PSP game
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Najnoviji save
No animation = No animation
Not a PSP game = Nije PSP igra
Notification screen position = Notification screen position
Off = Isključeno
Oldest Save = Najstariji save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Mozgó háttér
Newest Save = Legújabb mentés
No animation = Nincs animáció
Not a PSP game = Nem egy PSP játék
Notification screen position = Notification screen position
Off = Ki
Oldest Save = Legrégebbi mentés
Only JPG and PNG images are supported = Csak JPG és PNG képek támogatottak.

View file

@ -1347,6 +1347,7 @@ Moving background = Latar belakang bergerak
Newest Save = Simpanan terbaru
No animation = Tanpa animasi
Not a PSP game = Bukan permainan PSP
Notification screen position = Notification screen position
Off = Mati
Oldest Save = Simpanan lawas
Only JPG and PNG images are supported = Hanya gambar JPG dan PNG yang didukung

View file

@ -1332,6 +1332,7 @@ Fast Memory = Memoria Rapida (instabile)
Force real clock sync (slower, less lag) = Forza sincronizzazione con frequenza reale (lento, meno lag)
Moving background = Spostamento dello sfondo
No animation = Nessuna animazione
Notification screen position = Notification screen position
Only JPG and PNG images are supported = Sono supportate solo immagini JPG e PNG
Path does not exist! = Il percorso non esiste!
Pause when not focused = Pausa quando non attivo

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = 最も新しいセーブ
No animation = アニメーションなし
Not a PSP game = PSPのゲームではありません
Notification screen position = Notification screen position
Off = オフ
Oldest Save = 最も古いセーブ
Only JPG and PNG images are supported = JPGとPNG画像のみ対応しています

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Ora ana dolanan PSP
Notification screen position = Notification screen position
Off = Mati
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1337,6 +1337,7 @@ Moving background = 움직이는 배경
Newest Save = 가장 최신 저장
No animation = 애니메이션 없음
Not a PSP game = PSP 게임이 아님
Notification screen position = Notification screen position
Off =
Oldest Save = 가장 오래된 저장
Only JPG and PNG images are supported = JPG 및 PNG 이미지만 지원됩니다.

View file

@ -1351,6 +1351,7 @@ Moving background = باکگراوندی جوڵاو
Newest Save = Newest save
No animation = بەبێ ئەنیمەیشن
Not a PSP game = Not a PSP game
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = ອັນນີ້ບໍ່ແມ່ນເກມ PSP
Notification screen position = Notification screen position
Off = ປິດ
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Not a PSP game
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Not a PSP game
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Geen PSP-game
Notification screen position = Notification screen position
Off = Uit
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Not a PSP game
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1352,6 +1352,7 @@ Moving background = Ruchome tło
Newest Save = Najnowszy zapis
No animation = Bez animacji
Not a PSP game = To nie jest gra PSP
Notification screen position = Notification screen position
Off = Wył.
Oldest Save = Najstarszy zapis
Only JPG and PNG images are supported = Tylko pliki JPG i PNG są wspierane

View file

@ -1361,6 +1361,7 @@ Moving background = Movendo o cenário de fundo
Newest Save = Save mais novo
No animation = Sem animação
Not a PSP game = Não é um jogo de PSP
Notification screen position = Notification screen position
Off = Desligado
Oldest Save = Save mais antigo
Only JPG and PNG images are supported = Só imagens JPGs e PNGs são suportadas

View file

@ -1363,6 +1363,7 @@ Moving background = Movendo o cenário de fundo
Newest Save = Salvamento mais novo
No animation = Sem animação
Not a PSP game = Não é um jogo de PSP
Notification screen position = Notification screen position
Off = Desativado
Oldest Save = Salvamento mais antigo
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1348,6 +1348,7 @@ Moving background = Moving background
Newest Save = Newest save
No animation = No animation
Not a PSP game = Nu e joc PSP
Notification screen position = Notification screen position
Off = Off
Oldest Save = Oldest save
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1347,6 +1347,7 @@ Moving background = Двигающийся фон
Newest Save = Самое новое сохранение
No animation = Нет анимации
Not a PSP game = Игра не для PSP
Notification screen position = Notification screen position
Off = Отключено
Oldest Save = Самое старое сохранение
Only JPG and PNG images are supported = Поддерживаются только изображения в формате JPG и PNG

View file

@ -1348,6 +1348,7 @@ Moving background = Rörlig bakgrund
Newest Save = Nyaste sparfilen
No animation = Ingen animation
Not a PSP game = Inte ett PSP-spel
Notification screen position = Notification screen position
Off = Off
Oldest Save = Äldsta sparfilen
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1350,6 +1350,7 @@ Moving background = Gumagalaw na larawan
Newest Save = Pinakabagong na i-save
No animation = Walang animation
Not a PSP game = Hindi PSP game
Notification screen position = Notification screen position
Off = Nakapatay
Oldest Save = Pinakalumang na i-save
Only JPG and PNG images are supported = Tanging ang mga JPG at PNG na mga imahe ang sinusuportahan

View file

@ -1385,6 +1385,7 @@ Moving background = พื้นหลังเคลื่อนไหว
Newest Save = เซฟอันใหม่สุด
No animation = ไม่แสดงอนิเมชั่น
Not a PSP game = นี่ไม่ใช่เกม PSP นะจ้ะ
Notification screen position = Notification screen position
Off = ปิด
Oldest Save = เซฟอันเก่าสุด
Only JPG and PNG images are supported = รองรับเฉพาะไฟล์รูปภาพนามสกุล JPG และ PNG

View file

@ -1348,6 +1348,7 @@ Moving background = hareketli arka plan
Newest Save = En yeni kayıt
No animation = animasyon yok
Not a PSP game = Bir PSP oyunu değil
Notification screen position = Notification screen position
Off = Kapalı
Oldest Save = En eski kayıt
Only JPG and PNG images are supported = Sadece JPG ve PNG resimleri desteklenir

View file

@ -1347,6 +1347,7 @@ Moving background = Рухомий фон
Newest Save = Найновіші збереження
No animation = Без анімації
Not a PSP game = Не є грою для PSP
Notification screen position = Notification screen position
Off = Вимкнено
Oldest Save = Найстаріші збереження
Only JPG and PNG images are supported = Підтримуються лише зображення JPG і PNG

View file

@ -1347,6 +1347,7 @@ Moving background = Moving background
Newest Save = Save mới nhất
No animation = No animation
Not a PSP game = Đây Không phải là game PSP
Notification screen position = Notification screen position
Off = Tắt
Oldest Save = Save cũ nhất
Only JPG and PNG images are supported = Only JPG and PNG images are supported

View file

@ -1288,6 +1288,7 @@ JIT using IR = 动态重编译 (IR模式)
Loaded plugin: %1 = 已加载插件: %1
Memory Stick in installed.txt = 记忆棒目录使用“installed.txt”
Memory Stick in My Documents = 记忆棒目录使用“我的文档”
Notification screen position = Notification screen position
Only JPG and PNG images are supported = 只支持JPG和PNG图片
Pause when not focused = 后台运行时自动暂停
Plugins = 插件

View file

@ -1337,6 +1337,7 @@ Moving background = 動態背景
Newest Save = 最新存檔
No animation = 靜態背景
Not a PSP game = 這不是 PSP 遊戲
Notification screen position = Notification screen position
Off = 關閉
Oldest Save = 最舊存檔
Only JPG and PNG images are supported = 僅支援 JPG 和 PNG 影像