public static void OpenQuestLoadScreen(string title, string lore) { if (Object.op_Equality((Object)ProgressWindow.mInstance, (Object)null)) { ProgressWindow progressWindow = AssetManager.Load <ProgressWindow>("UI/QuestLoadScreen"); if (Object.op_Inequality((Object)progressWindow, (Object)null)) { Object.DontDestroyOnLoad((Object)((Component)Object.Instantiate <ProgressWindow>((M0)progressWindow)).get_gameObject()); GameUtility.FadeIn(0.1f); } } if (string.IsNullOrEmpty(title)) { title = string.Empty; } if (string.IsNullOrEmpty(lore)) { lore = string.Empty; } ProgressWindow.SetTexts(title, lore); }
public static void OpenQuestLoadScreen(string title, string lore) { if (UnityEngine.Object.op_Equality((UnityEngine.Object)ProgressWindow.mInstance, (UnityEngine.Object)null)) { ProgressWindow progressWindow = !MonoSingleton <GameManager> .Instance.IsVersusMode() ? AssetManager.Load <ProgressWindow>("UI/QuestLoadScreen") : (GlobalVars.IsVersusDraftMode ? AssetManager.Load <ProgressWindow>("UI/QuestLoadScreen_Draft") : AssetManager.Load <ProgressWindow>("UI/QuestLoadScreen_VS")); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)progressWindow, (UnityEngine.Object)null)) { UnityEngine.Object.DontDestroyOnLoad((UnityEngine.Object)((Component)UnityEngine.Object.Instantiate <ProgressWindow>((M0)progressWindow)).get_gameObject()); GameUtility.FadeIn(0.1f); } } if (string.IsNullOrEmpty(title)) { title = string.Empty; } if (string.IsNullOrEmpty(lore)) { lore = string.Empty; } ProgressWindow.SetTexts(title, lore); }