share/hedgewars/Data/Scripts/Multiplayer/WxW.lua
changeset 13982 681a53c8b18c
parent 13750 110d6c1e817f
child 14770 0ee6b01c7f30
equal deleted inserted replaced
13981:8e479dabdd88 13982:681a53c8b18c
  1533 	ShowMission(loc("Wall to wall"), loc("A Shoppa minigame"), text, 1, showTime)
  1533 	ShowMission(loc("Wall to wall"), loc("A Shoppa minigame"), text, 1, showTime)
  1534 end
  1534 end
  1535 
  1535 
  1536 function HandleStartingStage()
  1536 function HandleStartingStage()
  1537 
  1537 
  1538 	temp = menu[menuIndex].line
  1538 	local renderedLines = {}
  1539 	menu[menuIndex].line = "--> " .. menu[menuIndex].line
  1539 	for m = 1, #menu do
       
  1540 		local marker
       
  1541 		local line = menu[m].line
       
  1542 		if m == menuIndex then
       
  1543 			marker = "▶"
       
  1544 		else
       
  1545 			marker = "▷"
       
  1546 			line = string.gsub(line, ":", "\\:")
       
  1547 		end
       
  1548 		table.insert(renderedLines, marker .. " " .. line)
       
  1549 	end
  1540 
  1550 
  1541 	missionComment = ""
  1551 	missionComment = ""
  1542 	for i = 1, #menu do
  1552 	for l = 1, #renderedLines do
  1543 		missionComment = missionComment .. menu[i].line
  1553 		missionComment = missionComment .. renderedLines[l]
  1544 	end
  1554 	end
  1545 
  1555 
  1546 	ShowMission	(
  1556 	ShowMission	(
  1547 				loc("Wall to wall"),
  1557 				loc("Wall to wall"),
  1548 				loc("Configuration phase"),
  1558 				loc("Configuration phase"),
  1549 				preMenuCfg..
  1559 				preMenuCfg..
  1550 				missionComment ..
  1560 				missionComment ..
  1551 				postMenuCfg ..
  1561 				postMenuCfg ..
  1552 				"", 2, 9999000, true
  1562 				"", 2, 9999000, true
  1553 				)
  1563 				)
  1554 
       
  1555 	menu[menuIndex].line = temp
       
  1556 
  1564 
  1557 end
  1565 end
  1558 
  1566 
  1559 function onGameTick()
  1567 function onGameTick()
  1560 
  1568