ataylor Posted March 20, 2015 Share Posted March 20, 2015 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
ataylor Posted March 24, 2015 Author Share Posted March 24, 2015 Can this currently be done? Link to comment
silent Posted March 25, 2015 Share Posted March 25, 2015 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
ataylor Posted March 25, 2015 Author Share Posted March 25, 2015 Okay, I can work around limitation. Thanks. Link to comment
Recommended Posts