Define and measure duration for text notifications in milliseconds

During a game notification duration should be the same regardless of
game speed. Switch to using wall-clock time defined in milliseconds 
instead of game ticks. Also use the opportunity to rename the field 
to "Duration" because "RemoveTime" is not so clear.
This commit is contained in:
Ivaylo Draganov
2022-12-13 11:49:58 +02:00
committed by abcdefg30
parent e280e0f31c
commit 614603089e
7 changed files with 54 additions and 11 deletions

View File

@@ -72,9 +72,8 @@ namespace OpenRA.Mods.Common.UpdateRules
new RemoveLaysTerrain(),
}),
new UpdatePath("release-20210321", new UpdateRule[]
new UpdatePath("release-20210321", "playtest-20221203", new UpdateRule[]
{
// Bleed only changes here
new RenameMPTraits(),
new RemovePlayerHighlightPalette(),
new ReplaceWithColoredOverlayPalette(),
@@ -97,6 +96,11 @@ namespace OpenRA.Mods.Common.UpdateRules
new UnhardcodeBaseBuilderBotModule(),
new UnhardcodeVeteranProductionIconOverlay(),
new RenameContrailProperties(),
}),
new UpdatePath("playtest-20221203", new UpdateRule[]
{
new TextNotificationsDisplayWidgetRemoveTime(),
})
};