} //private void OnErrorDisplay() /* * Saved Message */ private void OnSavedDisplay(int windowID) { bool MMPathLoaderIsReady = DatabaseHandler.isModuleManagerInstalled ? (bool)DatabaseHandler.DynaInvokeMMPatchLoaderMethod("IsReady") : false; GUILayout.BeginVertical(); if (DatabaseHandler.isReloading) { ScreenMessages.PostScreenMessage(string.Concat(Constants.guiDBReloading1, "\n", Constants.guiDBReloading2), Time.deltaTime, ScreenMessageStyle.UPPER_CENTER); GUILayout.Label(Constants.guiDBReloading1); GUILayout.Label(Constants.guiDBReloading2); if (!MMPathLoaderIsReady) { GUILayout.Label(String.Format("ModuleManager progress: {0:P0}", (float)DatabaseHandler.DynaInvokeMMPatchLoaderMethod("ProgressFraction"))); // GUILayout.Label(String.Format("{0}", (string)DatabaseHandler.DynaInvokeMMPatchLoaderMethod("ProgressTitle"))); } } else { GUILayout.Label(Constants.guiDialSaved); GUILayout.FlexibleSpace(); if (GUILayout.Button(Constants.guiOK)) { _state = DisplayState.none; ClearEditor(); } } GUILayout.EndVertical(); GUI.DragWindow(); } //private void OnErrorDisplay()
} //private void OnErrorDisplay() /* * Saved Message */ private void OnSavedDisplay(int windowID) { bool MMPathLoaderIsReady = (bool)DatabaseHandler.DynaInvokeMMPatchLoaderMethod("IsReady"); GUILayout.BeginVertical(); if (DatabaseHandler.isReloading) { GUILayout.Label(Constants.guiDBReloading1); GUILayout.Label(Constants.guiDBReloading2); if (!MMPathLoaderIsReady) { GUILayout.Label(String.Format("ModuleManager progress: {0:P0}", (float)DatabaseHandler.DynaInvokeMMPatchLoaderMethod("ProgressFraction"))); // GUILayout.Label(String.Format("{0}", (string)DatabaseHandler.DynaInvokeMMPatchLoaderMethod("ProgressTitle"))); } } else { GUILayout.Label(Constants.guiDialSaved); GUILayout.FlexibleSpace(); if (GUILayout.Button(Constants.guiOK)) { ClearEditor(); _state = DisplayState.none; } } GUILayout.EndVertical(); GUI.DragWindow(); } //private void OnErrorDisplay()