prompt to save

This commit is contained in:
2025-01-09 19:42:40 -06:00
committed by Celtic Minstrel
parent 87aa353f28
commit 00b33843f6
2 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='save'>
<button name='save' type='regular' top='43' left='240'>Save</button>
<button name='cancel' type='regular' def-key='esc' top='43' left='175'>Cancel</button>
<button name='revert' type='regular' top='43' left='109'>Don't</button>
<pict type='dlog' num='16' top='6' left='6'/>
<text top='6' left='49' width='256' height='32'>
Save changes to your scenario before launching it?
</text>
</dialog>

View File

@@ -100,7 +100,8 @@ void launch_scenario() {
return;
}
// TODO require save first?
// Prompt to save first
if(!save_check("save-before-launch")) return;
fs::path game_binary;
#ifdef SFML_SYSTEM_MACOS