Topic: Scenario message boxes which don't pause the game
kaputtnik Topic Opener |
Posted at: 2020-10-18, 12:25
As far i understand each scenario message box uses story_message_box.cc which pauses the game until the window get closed. Now i want to have a message box which is shown only for a short time and closes automatically. It contains only a few words, so the need to let the player close the window isn't needed. Such a window should attend the story with some atmosphere. Say one would show a ship in a thunderstorm and the corresponding message box shows "... ARGGHHH ..." or similar. It would be annoying if the player is forced to close this window then. Is there a possibility to archive this with lua? Fight simulator for Widelands: |
Nordfriese |
Posted at: 2020-10-18, 12:34
You could send a message to the player. Making that message a popup, and having your script delete the message and close the message window after some seconds might do the trick. Making the window non-modal and non-game-pausing should also be possible but this would be some additional C++ implementation effort. Top Quote |
GunChleoc |
Posted at: 2020-10-19, 17:05
I just happen to have implemented these in https://github.com/widelands/widelands/pull/4369 Busy indexing nil values Top Quote |