Extract Tiberian Dawn campaign translations.
This commit is contained in:
committed by
Gustas
parent
b62cf7ee9a
commit
621c85059e
@@ -12,3 +12,23 @@ IdleHunt = function(actor)
|
||||
Trigger.OnIdle(actor, actor.Hunt)
|
||||
end
|
||||
end
|
||||
|
||||
---Adds a new mandatory objective, translates it and announces it via in-game chat message.
|
||||
---@param player player recipient of the objective
|
||||
---@param description string key of the translation string
|
||||
---@return number id used to query for the objective later
|
||||
AddPrimaryObjective = function(player, description)
|
||||
local translation = UserInterface.Translate(description)
|
||||
Media.DisplayMessage(translation, UserInterface.Translate("new-primary-objective"))
|
||||
return player.AddObjective(translation, UserInterface.Translate("primary"), true)
|
||||
end
|
||||
|
||||
---Adds a new optional objective, translates it and announces it via in-game chat message.
|
||||
---@param player player recipient of the objective
|
||||
---@param description string key of the translation string
|
||||
---@return number id used to query for the objective later
|
||||
AddSecondaryObjective = function(player, description)
|
||||
local translation = UserInterface.Translate(description)
|
||||
Media.DisplayMessage(translation, UserInterface.Translate("new-secondary-objective"))
|
||||
return player.AddObjective(translation, UserInterface.Translate("secondary"), false)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user