--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Movement.lua Fri Dec 14 19:14:42 2018 +0100
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Movement.lua Sat Dec 15 00:26:17 2018 +0100
@@ -24,6 +24,7 @@
local tookDamage = false
local switchTextDelay = -1
local missionPanelConfirmed = false
+local missionPanelConfirmedTimer = 0
local turnStarted = false
local map = {
@@ -418,9 +419,9 @@
end
local function firstMission()
- -- This part is CRITICALLY important for all future missions.
- -- Because the player must know how to show the current mission texts again.
+ -- Here we teach player must know how to show the current mission texts again.
-- We force the player to hit Attack before the actual training begins.
+ -- Later, the mission panel key is perma-shown as caption.
local ctrl = ""
if INTERFACE == "desktop" then
ctrl = loc("IMPORTANT: To see the mission panel again, hold the mission panel key.").."| |"..
@@ -457,6 +458,19 @@
-- Forces the first mission panel to be displayed without time limit
firstMission()
end
+ if missionPanelConfirmed then
+ missionPanelConfirmedTimer = missionPanelConfirmedTimer + 20
+ --[[ After confirming the initial mission panel,
+ show the mission panel key as permanent caption
+ so the player can't overlook or forget it. ]]
+ if missionPanelConfirmedTimer > 7000 then
+ if INTERFACE == "desktop" then
+ AddCaption(loc("Press [M] to see the mission texts"), capcolDefault, capgrpMessage2)
+ elseif INTERFACE == "touch" then
+ AddCaption(loc("Tap [Pause] to see the mission texts"), capcolDefault, capgrpMessage2)
+ end
+ end
+ end
end
function onGearResurrect(gear, vGear)