Rename Lua UserInterface.Translate to .GetFluentMessage.
This commit is contained in:
@@ -139,7 +139,7 @@ InitAi = function()
|
||||
|
||||
if not GDIAdvComCenter.IsDead then
|
||||
IonCannonOnline = true
|
||||
Media.DisplayMessage(UserInterface.Translate("destroy-ion-cannon-advice"))
|
||||
Media.DisplayMessage(UserInterface.GetFluentMessage("destroy-ion-cannon-advice"))
|
||||
DestroyIonCannon = AddSecondaryObjective(Nod, "quickly-destroy-ion-cannon")
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -90,7 +90,7 @@ RunForHelp = function()
|
||||
CivsRunning = true
|
||||
local cam = Actor.Create("camera", true, { Owner = Nod, Location = CPos.New(53,44) })
|
||||
Trigger.AfterDelay(125, cam.Destroy)
|
||||
Media.DisplayMessage(UserInterface.Translate("civilians-running"), UserInterface.Translate("nod-soldier"))
|
||||
Media.DisplayMessage(UserInterface.GetFluentMessage("civilians-running"), UserInterface.GetFluentMessage("nod-soldier"))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -98,7 +98,7 @@ CivsBuildingsToDestroy = 0
|
||||
CheckVillageDestruction = function()
|
||||
CivsBuildingsToDestroy = CivsBuildingsToDestroy - 1
|
||||
if CivsBuildingsToDestroy == 2 then
|
||||
Media.DisplayMessage(UserInterface.Translate("village-destruction-warning"))
|
||||
Media.DisplayMessage(UserInterface.GetFluentMessage("village-destruction-warning"))
|
||||
elseif CivsBuildingsToDestroy == 0 then
|
||||
Reinforcements.Reinforce(GDI, ReinforcementsMammoths, { CPos.New(2,9), CPos.New(3,9) }, 40, function(a)
|
||||
a.AttackMove(waypoint11.Location)
|
||||
|
||||
@@ -54,7 +54,7 @@ SendGDIReinforcements = function()
|
||||
if GDIReinforcementsLeft > 0 then
|
||||
GDIReinforcementsLeft = GDIReinforcementsLeft - 1
|
||||
Trigger.AfterDelay(DateTime.Seconds(5), function()
|
||||
Media.DisplayMessage(UserInterface.Translate("apcs-left", { ["apcs"] = GDIReinforcementsLeft }), UserInterface.Translate("battlefield-control"))
|
||||
Media.DisplayMessage(UserInterface.GetFluentMessage("apcs-left", { ["apcs"] = GDIReinforcementsLeft }), UserInterface.GetFluentMessage("battlefield-control"))
|
||||
SendGDIReinforcements()
|
||||
end)
|
||||
end
|
||||
@@ -114,7 +114,7 @@ WorldLoaded = function()
|
||||
InitObjectives(GDI)
|
||||
|
||||
GDIObjective = AddPrimaryObjective(GDI, "retrieve-rods")
|
||||
local eliminateReinforcements = UserInterface.Translate("eliminate-reinforcements", { ["kills"] = KillsUntilReinforcements })
|
||||
local eliminateReinforcements = UserInterface.GetFluentMessage("eliminate-reinforcements", { ["kills"] = KillsUntilReinforcements })
|
||||
ReinforcementsObjective = AddSecondaryObjective(GDI, eliminateReinforcements)
|
||||
|
||||
BuildNod()
|
||||
|
||||
@@ -51,7 +51,7 @@ SendGDIReinforcements = function()
|
||||
if GDIReinforcementsLeft > 0 then
|
||||
GDIReinforcementsLeft = GDIReinforcementsLeft - 1
|
||||
Trigger.AfterDelay(DateTime.Seconds(5), function()
|
||||
Media.DisplayMessage(UserInterface.Translate("apcs-left", { ["apcs"] = GDIReinforcementsLeft }), UserInterface.Translate("battlefield-control"))
|
||||
Media.DisplayMessage(UserInterface.GetFluentMessage("apcs-left", { ["apcs"] = GDIReinforcementsLeft }), UserInterface.GetFluentMessage("battlefield-control"))
|
||||
SendGDIReinforcements()
|
||||
end)
|
||||
end
|
||||
@@ -105,7 +105,7 @@ WorldLoaded = function()
|
||||
InitObjectives(GDI)
|
||||
|
||||
GDIObjective = AddPrimaryObjective(GDI, "retrieve-rods")
|
||||
local eliminateReinforcements = UserInterface.Translate("eliminate-reinforcements", { ["kills"] = KillsUntilReinforcements })
|
||||
local eliminateReinforcements = UserInterface.GetFluentMessage("eliminate-reinforcements", { ["kills"] = KillsUntilReinforcements })
|
||||
ReinforcementsObjective = AddSecondaryObjective(GDI, eliminateReinforcements)
|
||||
|
||||
SetupWorld()
|
||||
|
||||
@@ -117,7 +117,7 @@ WorldLoaded = function()
|
||||
|
||||
CiviliansKilledThreshold = CiviliansKilledThreshold[Difficulty]
|
||||
local civilians = 14 - CiviliansKilledThreshold
|
||||
local keepCiviliansAlive = UserInterface.Translate("keep-civilians-alive", { ["civilians"] = civilians })
|
||||
local keepCiviliansAlive = UserInterface.GetFluentMessage("keep-civilians-alive", { ["civilians"] = civilians })
|
||||
ProtectCivilians = AddPrimaryObjective(GDI, keepCiviliansAlive)
|
||||
Utils.Do(Civilians, function(civilian)
|
||||
Trigger.OnKilled(civilian, function()
|
||||
|
||||
@@ -123,7 +123,7 @@ WorldLoaded = function()
|
||||
if a.Type == "boat" then
|
||||
a.Stop()
|
||||
a.Destroy()
|
||||
Media.DisplayMessage(UserInterface.Translate("convoy-passed-partly"))
|
||||
Media.DisplayMessage(UserInterface.GetFluentMessage("convoy-passed-partly"))
|
||||
Media.PlaySoundNotification(GDI, "Beepy6")
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -114,7 +114,7 @@ WorldLoaded = function()
|
||||
|
||||
InitObjectives(Nod)
|
||||
|
||||
local localBuildSAMs = UserInterface.Translate("build-sams", { ["sams"] = SamSiteGoal })
|
||||
local localBuildSAMs = UserInterface.GetFluentMessage("build-sams", { ["sams"] = SamSiteGoal })
|
||||
BuildSAMObjective = AddPrimaryObjective(Nod, localBuildSAMs)
|
||||
DestroyGDI = AddPrimaryObjective(Nod, "destroy-gdi-base")
|
||||
GDIObjective = AddPrimaryObjective(GDI, "")
|
||||
|
||||
@@ -175,7 +175,7 @@ WorldLoaded = function()
|
||||
|
||||
FindBase = AddPrimaryObjective(Nod, "find-nod-base")
|
||||
EliminateGDI = AddPrimaryObjective(Nod, "eliminate-gdi-forces")
|
||||
local buildSAMs = UserInterface.Translate("build-sams", { ["sams"] = SamSiteGoal })
|
||||
local buildSAMs = UserInterface.GetFluentMessage("build-sams", { ["sams"] = SamSiteGoal })
|
||||
BuildSAMs = AddPrimaryObjective(Nod, buildSAMs)
|
||||
GDIObjective = AddPrimaryObjective(GDI, "")
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ WorldLoaded = function()
|
||||
InitObjectives(Nod)
|
||||
|
||||
EliminateGDI = AddPrimaryObjective(Nod, "eliminate-gdi-forces")
|
||||
local buildSAMs = UserInterface.Translate("build-sams", { ["sams"] = SamSiteGoal })
|
||||
local buildSAMs = UserInterface.GetFluentMessage("build-sams", { ["sams"] = SamSiteGoal })
|
||||
BuildSAMs = AddSecondaryObjective(Nod, buildSAMs)
|
||||
end
|
||||
|
||||
|
||||
@@ -196,7 +196,7 @@ WorldLoaded = function()
|
||||
LocateNodBase = AddPrimaryObjective(Nod, "locate-nod-base")
|
||||
CaptureRefinery = AddPrimaryObjective(Nod, "capture-refinery")
|
||||
EliminateGDI = AddPrimaryObjective(Nod, "eliminate-gdi-forces")
|
||||
local buildSAMs = UserInterface.Translate("build-sams", { ["sams"] = SamSiteGoal })
|
||||
local buildSAMs = UserInterface.GetFluentMessage("build-sams", { ["sams"] = SamSiteGoal })
|
||||
BuildSAMs = AddSecondaryObjective(Nod, buildSAMs)
|
||||
GDIObjective = AddPrimaryObjective(GDI, "")
|
||||
end
|
||||
|
||||
@@ -132,7 +132,7 @@ CompleteCaptureCommCenterObjective = function()
|
||||
end)
|
||||
end
|
||||
|
||||
Media.DisplayMessage(UserInterface.Translate("communications-center-captured-sams-located"))
|
||||
Media.DisplayMessage(UserInterface.GetFluentMessage("communications-center-captured-sams-located"))
|
||||
local activeSams = Nod.GetActorsByType("sam")
|
||||
local miniCams = { }
|
||||
if #activeSams > 0 then
|
||||
@@ -260,7 +260,7 @@ WorldLoaded = function()
|
||||
if AstkDelay > 0 then
|
||||
SendNodAirstrike(true)
|
||||
Trigger.AfterDelay(DateTime.Seconds(15), function()
|
||||
Media.DisplayMessage(UserInterface.Translate("air-strikes-intel-report"))
|
||||
Media.DisplayMessage(UserInterface.GetFluentMessage("air-strikes-intel-report"))
|
||||
Trigger.AfterDelay(DateTime.Seconds(8), function()
|
||||
CaptureCommCenter = AddSecondaryObjective(GDI, "capture-nod-communications-center")
|
||||
if NodAstkHq.IsDead then
|
||||
|
||||
Reference in New Issue
Block a user