Example #1
0
        public static void Draw(GameTime gameTime)
        {
            switch (module)
            {
            //doesn't need memory
            case Module.OvertureDebug:
            case Module.MovieTest:
                break;

            default:
                //requires memory to be loaded.
                if ((Memory.InitTask != null) && (Memory.InitTask.IsCompleted == false ||
                                                  Memory.InitTask.Status == TaskStatus.Running ||
                                                  Memory.InitTask.Status == TaskStatus.WaitingToRun ||
                                                  Memory.InitTask.Status == TaskStatus.WaitingForActivation))
                {
                    //suppress draw in update but if draw happens before update, blank screen, and end here
                    Memory.Graphics.GraphicsDevice.Clear(Color.Black);
                    return;
                }
                break;
            }
            switch (module)
            {
            case Module.Battle:
                ModuleBattle.Draw();
                break;

            case Module.BattleDebug:
                ModuleBattleDebug.Draw();
                break;

            case Module.MovieTest:
                ModuleMovieTest.Draw();
                break;

            case Module.FieldDebug:
                Fields.Module.Draw();
                break;

            case Module.OvertureDebug:
                Module_overture_debug.Draw();
                break;

            case Module.MainMenuDebug:
                Menu.Module.Draw();
                break;

            case Module.WorldDebug:
                Module_world_debug.Draw();
                break;

            case Module.FaceTest:
                Module_face_test.Draw();
                break;

            case Module.IconTest:
                Module_icon_test.Draw();
                break;

            case Module.CardTest:
                Module_card_test.Draw();
                break;

            case Module.BattleSwirl:
                BattleSwirl.Draw();
                break;

            case Module.FieldModelTest:
                Fields.ModuleFieldObjectTest.Draw();
                break;
            }
        }
Example #2
0
        public static void Draw(GameTime gameTime)
        {
            switch (module)
            {
            //doesn't need memory
            case MODULE.OVERTURE_DEBUG:
            case MODULE.MOVIETEST:
                break;

            default:
                //requires memory to be loaded.
                if ((Memory.InitTask != null) && (Memory.InitTask.IsCompleted == false ||
                                                  Memory.InitTask.Status == TaskStatus.Running ||
                                                  Memory.InitTask.Status == TaskStatus.WaitingToRun ||
                                                  Memory.InitTask.Status == TaskStatus.WaitingForActivation))
                {
                    //suppress draw in update but if draw happens before update, blank screen, and end here
                    Memory.graphics.GraphicsDevice.Clear(Color.Black);
                    return;
                }
                break;
            }
            switch (module)
            {
            case MODULE.BATTLE:
                module_battle.Draw();
                break;

            case MODULE.BATTLE_DEBUG:
                Module_battle_debug.Draw();
                break;

            case MODULE.MOVIETEST:
                Module_movie_test.Draw();
                break;

            case MODULE.FIELD_DEBUG:
                Fields.Module.Draw();
                break;

            case MODULE.OVERTURE_DEBUG:
                Module_overture_debug.Draw();
                break;

            case MODULE.MAINMENU_DEBUG:
                Menu.Module.Draw();
                break;

            case MODULE.WORLD_DEBUG:
                Module_world_debug.Draw();
                break;

            case MODULE.FACE_TEST:
                Module_face_test.Draw();
                break;

            case MODULE.ICON_TEST:
                Module_icon_test.Draw();
                break;

            case MODULE.CARD_TEST:
                Module_card_test.Draw();
                break;

            case MODULE.BATTLE_SWIRL:
                BattleSwirl.Draw();
                break;

            case MODULE.FIELD_MODEL_TEST:
                Fields.Module_field_object_test.Draw();
                break;
            }
        }