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

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

No files matched your search

+2 -2
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;