Moved game save notification to StartGameNotification

This commit is contained in:
Gustas
2026-01-22 17:51:26 +02:00
committed by Paul Chote
parent 3a86c035b3
commit 0a9b493c14
10 changed files with 16 additions and 7 deletions

View File

@@ -30,9 +30,6 @@ namespace OpenRA.Network
[FluentReference]
const string GameStarted = "notification-game-has-started";
[FluentReference]
const string GameSaved = "notification-game-saved";
[FluentReference("player")]
const string GamePaused = "notification-game-paused";
@@ -213,9 +210,6 @@ namespace OpenRA.Network
}
case "GameSaved":
if (!orderManager.World.IsReplay)
TextNotificationsManager.AddSystemLine(GameSaved);
foreach (var nsr in orderManager.World.WorldActor.TraitsImplementing<INotifyGameSaved>())
nsr.GameSaved(orderManager.World);
break;

View File

@@ -21,6 +21,8 @@ notification-ally-under-attack = Our ally is under attack.
notification-silos-needed = Silos needed.
## world.yaml
notification-game-saved = Game saved.
options-starting-units =
.mcv-only = MCV Only
.light-support = Light Support

View File

@@ -265,6 +265,11 @@ World:
ObjectivesPanel:
PanelName: SKIRMISH_STATS
RadarPings:
StartGameNotification:
Notification:
LoadedNotification:
SavedNotification:
SavedTextNotification: notification-game-saved
LoadWidgetAtGameStart:
ShellmapRoot: MENU_BACKGROUND
ScriptTriggers:

View File

@@ -87,7 +87,6 @@ notification-lobby-disconnected = { $player } has left.
## UnitOrders
notification-game-has-started = The game has started.
notification-game-saved = Game saved.
notification-game-paused = The game has been paused by { $player }.
notification-game-unpaused = The game has been un-paused by { $player }.

View File

@@ -22,6 +22,8 @@ notification-cannot-build-here = Cannot build here.
notification-one-of-our-buildings-has-been-captured = One of our buildings has been captured.
## world.yaml
notification-game-saved = Game saved.
dropdown-map-worms =
.label = Worms
.description = Worms roam the map, devouring unprepared forces

View File

@@ -246,6 +246,7 @@ World:
ScriptTriggers:
CellTriggerOverlay:
StartGameNotification:
SavedTextNotification: notification-game-saved
FlashPostProcessEffect:
Type: flash
Color: E2DD8F4D

View File

@@ -27,6 +27,8 @@ notification-ally-under-attack = Our ally is under attack.
notification-silos-needed = Silos needed.
## world.yaml
notification-game-saved = Game saved.
options-starting-units =
.mcv-only = MCV Only
.light-support = Light Support

View File

@@ -271,6 +271,7 @@ World:
DebugPauseState:
RadarPings:
StartGameNotification:
SavedTextNotification: notification-game-saved
ObjectivesPanel:
PanelName: SKIRMISH_STATS
LoadWidgetAtGameStart:

View File

@@ -19,6 +19,8 @@ notification-harvester-under-attack = Harvester under attack.
notification-silos-needed = Silos needed.
## World
notification-game-saved = Game saved.
options-starting-units =
.mcv-only = MCV Only
.light = Light

View File

@@ -381,6 +381,7 @@ World:
ScreenShaker:
RadarPings:
StartGameNotification:
SavedTextNotification: notification-game-saved
ObjectivesPanel:
PanelName: SKIRMISH_STATS
LoadWidgetAtGameStart: