Skip to content

Commit

Permalink
Show EventProgress for both players
Browse files Browse the repository at this point in the history
  • Loading branch information
teejusb committed Mar 7, 2024
1 parent c7986a2 commit fee9075
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions BGAnimations/ScreenEvaluation common/Shared/EventInputHandler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,20 @@ local function input(event)
-- Pressing Start or Back (typically Esc on a keyboard) will queue "DirectInputToEngine"
-- but only if the event.type is not a Release.
if (event.GameButton == "Start" or event.GameButton == "Back") and event.type ~= "InputEventType_Release" then
overlay:GetChild("AutoSubmitMaster"):GetChild("EventOverlay"):visible(false)
local pn = ToEnumShortString(event.PlayerNumber)
local progressBox = SCREENMAN:GetTopScreen()
:GetChild("Overlay")
:GetChild("ScreenEval Common")
:GetChild(pn.."_AF_Upper")
:GetChild("EventProgress"..pn)
if progressBox ~= nil then
progressBox:playcommand("MaybeShow")
overlay:GetChild("AutoSubmitMaster"):GetChild("EventOverlay"):visible(false)

for player in ivalues(PlayerNumber) do
if GAMESTATE:IsSideJoined(player) then
local pn = ToEnumShortString(player)
local progressBox = SCREENMAN:GetTopScreen()
:GetChild("Overlay")
:GetChild("ScreenEval Common")
:GetChild(pn.."_AF_Upper")
:GetChild("EventProgress"..pn)
if progressBox ~= nil then
progressBox:playcommand("MaybeShow")
end
end
end
overlay:queuecommand("DirectInputToEngine")
end
Expand Down

0 comments on commit fee9075

Please sign in to comment.