|
@@ -375,23 +375,40 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
|
|
|
{
|
|
|
if (meidoManager.Busy || SceneManager.Busy) return;
|
|
|
|
|
|
- ResetCalcNearClip();
|
|
|
-
|
|
|
- uiActive = false;
|
|
|
- active = false;
|
|
|
-
|
|
|
- meidoManager.Deactivate();
|
|
|
- environmentManager.Deactivate();
|
|
|
- propManager.Deactivate();
|
|
|
- lightManager.Deactivate();
|
|
|
- effectManager.Deactivate();
|
|
|
- messageWindowManager.Deactivate();
|
|
|
- windowManager.Deactivate();
|
|
|
-
|
|
|
- Modal.Close();
|
|
|
+ SystemDialog sysDialog = GameMain.Instance.SysDlg;
|
|
|
|
|
|
- GameObject dailyPanel = GameObject.Find("UI Root")?.transform.Find("DailyPanel")?.gameObject;
|
|
|
- dailyPanel?.SetActive(true);
|
|
|
+ if (sysDialog.IsDecided)
|
|
|
+ {
|
|
|
+ uiActive = false;
|
|
|
+ active = false;
|
|
|
+ string exitMessage = string.Format(Translation.Get("systemMessage", "exitConfirm"), pluginName);
|
|
|
+ sysDialog.Show(exitMessage, SystemDialog.TYPE.OK_CANCEL,
|
|
|
+ f_dgOk: () =>
|
|
|
+ {
|
|
|
+ sysDialog.Close();
|
|
|
+ ResetCalcNearClip();
|
|
|
+
|
|
|
+ meidoManager.Deactivate();
|
|
|
+ environmentManager.Deactivate();
|
|
|
+ propManager.Deactivate();
|
|
|
+ lightManager.Deactivate();
|
|
|
+ effectManager.Deactivate();
|
|
|
+ messageWindowManager.Deactivate();
|
|
|
+ windowManager.Deactivate();
|
|
|
+
|
|
|
+ Modal.Close();
|
|
|
+
|
|
|
+ GameObject dailyPanel = GameObject.Find("UI Root")?.transform.Find("DailyPanel")?.gameObject;
|
|
|
+ dailyPanel?.SetActive(true);
|
|
|
+ },
|
|
|
+ f_dgCancel: () =>
|
|
|
+ {
|
|
|
+ sysDialog.Close();
|
|
|
+ uiActive = true;
|
|
|
+ active = true;
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void SetNearClipPlane()
|