/// <summary>
        /// Loads the data.
        /// </summary>
        public void LoadData()
        {
            ProfilerShort.Begin("MyScreenManager.LoadData");
            MyScreenManager.LoadData();
            ProfilerShort.BeginNextBlock("MyGuiManager.LoadData");
            MyGuiManager.LoadData();
            ProfilerShort.End();

            ProfilerShort.Begin("MyLanguage.CurrentLanguage set");
            MyLanguage.CurrentLanguage = MySandboxGame.Config.Language;
            ProfilerShort.End();

            if (MyFakes.SHOW_AUDIO_DEV_SCREEN)
            {
                ProfilerShort.Begin("MyGuiScreenDebugAudio");
                MyGuiScreenDebugAudio audioDebug = new MyGuiScreenDebugAudio();
                AddScreen(audioDebug);
                ProfilerShort.End();
            }
        }
Exemple #2
0
        /// <summary>
        /// Loads the data.
        /// </summary>
        public void LoadData()
        {
            MyScreenManager.LoadData();
            MyGuiManager.LoadData();

            MyLanguage.CurrentLanguage = MySandboxGame.Config.Language;

            if (MyFakes.SHOW_AUDIO_DEV_SCREEN)
            {
                MyGuiScreenDebugAudio audioDebug = new MyGuiScreenDebugAudio();
                AddScreen(audioDebug);
            }
        }