Joshua reported that the "RESET STAGE" button is not shown if Round Looping is turned off and a round ends naturally.
The problem was that PanelPlayback was keeping track of the sim isRunning state by setting local state based on the round button presses (PREP ROUND, START ROUND, STOP ROUND, etc.). When a round runs out, there is no button press, so the isRunning state is never cleared.
api-sim aka SIMCTRL keeps track of IsRunning() with its own method. The fix is to actively rely on api-sim's isRunning state instead of trying to track it locally.
Now when the round ends, api-sim.IsRunning() will return false, and the "RESET STAGE" button will be shown.
Merges dev-bl/always-show-reset-stage -> dev-next
Joshua reported that the "RESET STAGE" button is not shown if Round Looping is turned off and a round ends naturally.
The problem was that PanelPlayback was keeping track of the sim
isRunning
state by setting local state based on the round button presses (PREP ROUND, START ROUND, STOP ROUND, etc.). When a round runs out, there is no button press, so theisRunning
state is never cleared.api-sim
akaSIMCTRL
keeps track ofIsRunning()
with its own method. The fix is to actively rely onapi-sim
'sisRunning
state instead of trying to track it locally.Now when the round ends,
api-sim.IsRunning()
will return false, and the "RESET STAGE" button will be shown.