Add oitg_zoom_mode_actor. Turn off minimaid lights when exiting.

This commit is contained in:
Kyzentun Keeslala
2016-08-29 12:43:04 -06:00
parent 45e0787a74
commit 3d98fc7a60
5 changed files with 41 additions and 3 deletions
+14
View File
@@ -460,3 +460,17 @@ function GetCodeForGame(codeName)
local inputCode = CodeDetectorCodes[codeName]
return inputCode[gameName] or inputCode["default"]
end
function oitg_zoom_mode_actor()
return Def.Actor{
OnCommand= function(self)
local screen= SCREENMAN:GetTopScreen()
for i, pn in ipairs(GAMESTATE:GetEnabledPlayers()) do
local player= screen:GetChild("Player"..ToEnumShortString(pn))
if player and player.set_oitg_zoom_mode then
player:set_oitg_zoom_mode(true)
end
end
end,
}
end