Ejemplo n.º 1
0
        /// <summary>
        /// Initialize SceneTitle
        /// </summary>
        public override void LoadSceneContent()
        {
            // Load database
            Data.Actors       = Cache.ActorData("actors");
            Data.Classes      = Cache.ClassData("classes");
            Data.Skills       = Cache.SkillData("skills");
            Data.Items        = Cache.ItemData("items");
            Data.Weapons      = Cache.WeaponData("weapons");
            Data.Armors       = Cache.ArmorData("armors");
            Data.Npcs         = Cache.NpcData("npcs");
            Data.Troops       = Cache.TroopData("troops");
            Data.States       = Cache.StateData("states");
            Data.Animations   = Cache.AnimationData("animations");
            Data.CommonEvents = Cache.CommonEventData("commonevents");
            Data.System       = Cache.SystemData("system");
            Cache.LoadIcons("icons", "IconsReach");
            InGame.System    = new GameSystem();
            InGame.Switches  = new GameSwitches();
            InGame.Variables = new GameVariables();
            InGame.Temp      = new GameTemp();

            // Title
            title        = new Sprite(Graphics.Background);
            title.Z      = 0;
            title.Bitmap = Cache.Title(Data.System.TitleName);
            string s1 = "New Game";
            string s2 = "Continue";
            string s3 = "Shutdown";

            commandWindow = new WindowCommand(192, new List <string>()
            {
                s1, s2, s3
            });
            commandWindow.BackOpacity = 160;
            commandWindow.X           = (GeexEdit.GameWindowWidth - commandWindow.Width) / 2;
            commandWindow.Y           = GeexEdit.GameWindowHeight - 192;
            commandWindow.Z           = 500;
            continueEnabled           = true;
            // Play title BGM
            Audio.SongPlay(Data.System.TitleMusicLoop);
            // Stop playing Song effect and background sound
            Audio.SongEffectStop();
            Audio.BackgroundSoundStop();
        }