//* -----------------------------------------------------------------------* /// <summary>メッセージボックスを表示します。</summary> /// /// <param name="strText">表示したいメッセージ文字列</param> public static void show(String strText) { CLogger.add(strText); #if WINDOWS MessageBox.Show(strText, titleBar, MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Hand); #else CGuideManager.reserveMessage(endMessageBox, strText); #endif }
//* -----------------------------------------------------------------------* /// <summary>設定データを補助記憶装置から読み出します。</summary> /// <remarks> /// <para> /// XBOX360版では読み出すデバイスを選択するダイアログが出現します。 /// 一方、Windows版では無条件にカレントフォルダが選択されます。 /// </para> /// <para> /// また、XBOX360版ではアプリケーションとは非同期にダイアログが /// 表示されるので、出現中もアプリケーションは停止せず進行を続けます。 /// </para> /// </remarks> public void load() { CLogger.add("ゲーム 設定データを読込しています..."); #if WINDOWS __load(FILE); #else if ((device == null || !device.IsConnected) && !Guide.IsVisible) { device = null; CGuideManager.reserveSelectDevice(load); } #endif }
//* -----------------------------------------------------------------------* /// <summary>1フレーム分の更新処理をします。</summary> /// /// <param name="gameTime">前フレームからの経過時間</param> protected override void Update(GameTime gameTime) { #if WINDOWS bool bUpdate = IsActive; #else CGuideManager.update(); bool bUpdate = IsActive && !Guide.IsVisible; #endif if (bUpdate) { if (input != null) { input.update(); } if (!sceneManager.update(gameTime)) { CLogger.add("ゲームの終了処理を開始します。"); isExit = true; Content.Unload(); if (input != null) { input.Dispose(); input = null; } if (audio != null) { audio.Dispose(); audio = null; } if (spriteDraw != null) { spriteDraw.Dispose(); spriteDraw = null; } Exit(); } } if (audio != null) { audio.update(); } base.Update(gameTime); }