コード例 #1
0
        bool LoadGrandMutusDocument(XElement root, string fileName)
        {
            // rootからMutusDocumentというメソッドはないんだっけ?
            MutusDocument doc = new MutusDocument();

            doc.LoadGrandMutusDocument(root, fileName);                 // 0.6.4.2以降!

            NowLoading = true;
            try {
                foreach (var q in doc.Questions)
                {
                    IntroQuestion question       = (IntroQuestion)q;
                    var           sweet_question = new SweetQuestion(question.Song);
                    sweet_question.PlayPos = question.PlayPos;
                    // intro_question側で未実装.
                    //sweet_question.StopPos = question.StopPos;
                    sweet_question.Category = question.Category;
                    sweet_question.No       = question.No;

                    this.AddQuestion(sweet_question);
                }
            }
            finally { NowLoading = false; }
            return(true);
        }
コード例 #2
0
        // (0.0.4)
        protected void StandbyQuestion(IntroQuestion question)
        {
            listBoxQuestions.SelectedItem = question;

            // 現在の曲を設定する。
            SongPlayer.Open(question.Song.FileName);
            // シークはStartQuestionコマンドで行う。
            CurrentQuestion = question;
            CurrentGameMode = GameMode.Standby;
        }
コード例 #3
0
		// (0.0.4)
		protected void StandbyQuestion(IntroQuestion question)
		{
			listBoxQuestions.SelectedItem = question;

			// 現在の曲を設定する。
			SongPlayer.Open(question.Song.FileName);
			// シークはStartQuestionコマンドで行う。
			CurrentQuestion = question;
			CurrentGameMode = GameMode.Standby;
			
		}