--- a/share/hedgewars/Data/Scripts/SimpleMission.lua Thu Feb 22 01:39:30 2018 +0100
+++ b/share/hedgewars/Data/Scripts/SimpleMission.lua Thu Feb 22 02:24:42 2018 +0100
@@ -122,6 +122,7 @@
- customGoalCheck When to check goals and non-goals. Values: "instant" (default), "turnStart", "turnEnd"
- missionTitle: The name of the mission (highly recommended)
+ - missionIcon: Icon of the mission panel, see documentation of ShowMission in the Lua API
- goalText: A short string explaining the goal of the mission (use this if you set custom goals).
GOAL TYPES:
@@ -249,6 +250,9 @@
if params.missionTitle == nil then
params.missionTitle = loc("Scenario")
end
+ if params.missionIcon == nil then
+ params.missionIcon = 1 -- target icon
+ end
if params.goalText == nil then
params.goalText = loc("Defeat the enemy!")
end
@@ -745,7 +749,7 @@
params.goalText = params.goalText .. "|" .. string.format(loc("Mines time: %.2fs"), MinesTime/1000)
end
end
- ShowMission(params.missionTitle, loc("Scenario"), params.goalText, 1, 5000)
+ ShowMission(params.missionTitle, loc("Scenario"), params.goalText, params.missionIcon, 5000)
-- Spawn objects