I'm making a mod that has pop up events (not using Sukitract's Events and Decisions because I wanted a different UI and also for the mod to not be dependant on the community patch in case people don't want it for w/e reason)
The UI works fine, but with auto-end turn on the turn will end before the player has actually chosen any option, and that sometimes leads to crashes.
What I have been doing is spawning a custom unit just as the pop up fires and then deleting it just as an option is chosen. Since the unit still has moves left, it stops the auto-end turn. But it's... kind of an ugly, patchwork solution? Also if the player presses space it puts the spawned unit into rest mode and the auto end turn kicks in again.
The UI works fine, but with auto-end turn on the turn will end before the player has actually chosen any option, and that sometimes leads to crashes.
What I have been doing is spawning a custom unit just as the pop up fires and then deleting it just as an option is chosen. Since the unit still has moves left, it stops the auto-end turn. But it's... kind of an ugly, patchwork solution? Also if the player presses space it puts the spawned unit into rest mode and the auto end turn kicks in again.