Jump to content

[SOLVED] How to abort world shutdown process?


photo

Recommended Posts

I am building a document editor in UnigineScript. In world shutdown, the user is prompted "Do you want to save changes? yes/no/cancel". I need a way to abort the shutdown process in the event that the user clicks cancel.

 

I tried return 0, return -1 in world shutdown() function, but no effect.

Link to comment

Hi Adam,

 

I need a way to abort the shutdown process

I'm afraid it is not possible at the current moment.

 

The only available options when shutdown process is already started is to save or discard changes. We've added this feature in Unigine 2.0 alpha. Please, check  void confirm_world_save() function in <SDK>editor/data/editor/editor.cpp file.

 

Also, it is possible to discard changes, but not in scrpit shutdown, I'm afraid. Please, check the int dialog_world_save() function in <SDK>/editor/data/editor/editor_menu.h file.

 

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...