Extract translation strings.
This commit is contained in:
committed by
abcdefg30
parent
867efcc6e8
commit
9b2e291a46
@@ -235,7 +235,11 @@ Tick = function()
|
||||
player.MarkFailedObjective(villageObjective)
|
||||
end
|
||||
|
||||
UserInterface.SetMissionText(VillagePercentage .. "% of the village destroyed.", CurrentColor)
|
||||
if CachedVillagePercentage ~= VillagePercentage then
|
||||
VillageDestroyed = UserInterface.Translate("percentage-village-destroyed", { ["percentage"] = VillagePercentage })
|
||||
UserInterface.SetMissionText(VillageDestroyed, CurrentColor)
|
||||
CachedVillagePercentage = VillagePercentage
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -245,9 +249,9 @@ WorldLoaded = function()
|
||||
|
||||
InitObjectives(player)
|
||||
|
||||
sovietObjective = soviets.AddObjective("Destroy the village.")
|
||||
villageObjective = player.AddObjective("Save the village.")
|
||||
beachheadObjective = player.AddObjective("Get your MCV to the main island.")
|
||||
sovietObjective = AddPrimaryObjective(soviets, "")
|
||||
villageObjective = AddPrimaryObjective(player, "save-village")
|
||||
beachheadObjective = AddPrimaryObjective(player, "mcv-main-island")
|
||||
|
||||
beachheadTrigger = false
|
||||
Trigger.OnExitedFootprint(BeachheadTrigger, function(a, id)
|
||||
@@ -256,7 +260,7 @@ WorldLoaded = function()
|
||||
Trigger.RemoveFootprintTrigger(id)
|
||||
player.MarkCompletedObjective(beachheadObjective)
|
||||
|
||||
captureObjective = player.AddObjective("Locate and capture the enemy's Air Force HQ.")
|
||||
captureObjective = AddPrimaryObjective(player, "capture-air-force-hq")
|
||||
|
||||
if AirForceHQ.IsDead then
|
||||
player.MarkFailedObjective(captureObjective)
|
||||
|
||||
Reference in New Issue
Block a user