prompt to save
This commit is contained in:
11
rsrc/dialogs/save-before-launch.xml
Normal file
11
rsrc/dialogs/save-before-launch.xml
Normal 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>
|
@@ -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
|
||||
|
Reference in New Issue
Block a user