public void t歌詞テクスチャを生成する(string str歌詞) { using (var bmpleric = this.pf歌詞フォント.DrawPrivateFont(str歌詞, CDTXMania.Skin.Game_Lyric_ForeColor, CDTXMania.Skin.Game_Lyric_BackColor)) { this.tx歌詞テクスチャ = CDTXMania.tテクスチャの生成(bmpleric, false); } }
private bool tプレビュー画像の指定があれば構築する() { Cスコア cスコア = CDTXMania.stage選曲.r現在選択中のスコア; if ((cスコア == null) || string.IsNullOrEmpty(cスコア.譜面情報.Preimage)) { return(false); } string str = cスコア.ファイル情報.フォルダの絶対パス + cスコア.譜面情報.Preimage; if (!str.Equals(this.str現在のファイル名)) { CDTXMania.tテクスチャの解放(ref this.txプレビュー画像); this.str現在のファイル名 = str; if (!File.Exists(this.str現在のファイル名)) { Trace.TraceWarning("ファイルが存在しません。({0})", new object[] { this.str現在のファイル名 }); return(false); } this.txプレビュー画像 = CDTXMania.tテクスチャの生成(this.str現在のファイル名, false); if (this.txプレビュー画像 != null) { this.r表示するプレビュー画像 = this.txプレビュー画像; } else { this.r表示するプレビュー画像 = this.txプレビュー画像がないときの画像; } } return(true); }
protected void Initialize(List <CItemBase> menulist, bool showAllItems, string title, int defaultPos) { ConditionallyInitializePrvFont(); stqMenuTitle = new stQuickMenuItem(); stqMenuTitle.cItem = new CItemBase(); stqMenuTitle.cItem.str項目名 = title; using (var bitmap = prvFont.DrawPrivateFont(title, Color.White, Color.Black)) { stqMenuTitle.txName = CDTXMania.tテクスチャの生成(bitmap, false); stqMenuTitle.rectName = prvFont.RectStrings; } lciMenuItems = new stQuickMenuItem[menulist.Count]; for (int i = 0; i < menulist.Count; i++) { stQuickMenuItem stqm = new stQuickMenuItem(); stqm.cItem = menulist[i]; using (var bitmap = prvFont.DrawPrivateFont(menulist[i].str項目名, Color.White, Color.Black)) { stqm.txName = CDTXMania.tテクスチャの生成(bitmap, false); stqm.rectName = prvFont.RectStrings; } lciMenuItems[i] = stqm; } bShowAllItems = showAllItems; n現在の選択行 = defaultPos; }
public override void OnManagedリソースの作成() { Dan_Plate = CDTXMania.tテクスチャの生成(Path.GetDirectoryName(CDTXMania.DTX.strファイル名の絶対パス) + @"\Dan_Plate.png"); Sound_Section = CDTXMania.Sound管理.tサウンドを生成する(CSkin.Path(@"Sounds\Dan\Section.ogg"), ESoundGroup.SoundEffect); Sound_Failed = CDTXMania.Sound管理.tサウンドを生成する(CSkin.Path(@"Sounds\Dan\Failed.ogg"), ESoundGroup.SoundEffect); base.OnManagedリソースの作成(); }
public override void OnManagedリソースの作成() { this.txLane = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_fieldbgA.png")); this.txLaneB = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_fieldbgB.png")); this.txゴーゴー = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_fieldbgC.png")); this.tx普通譜面[0] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_field_normal_base.png")); this.tx玄人譜面[0] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_field_expert_base.png")); this.tx達人譜面[0] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_field_master_base.png")); this.tx普通譜面[1] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_field_normal.png")); this.tx玄人譜面[1] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_field_expert.png")); this.tx達人譜面[1] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_field_master.png")); this.tx枠線 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_mtaiko_B.png")); this.tx判定枠 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_taiko_notes.png")); //this.txアタックエフェクトLower = CDTXMania.tテクスチャの生成Af( CSkin.Path( @"Graphics\7_explosion_lower.png" ) ); this.txゴーゴー炎 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_gogo_fire.png")); this.txArアタックエフェクトLower_A = new CTexture[15]; this.txArアタックエフェクトLower_B = new CTexture[15]; this.txArアタックエフェクトLower_C = new CTexture[15]; this.txArアタックエフェクトLower_D = new CTexture[15]; for (int i = 0; i < 15; i++) { this.txArアタックエフェクトLower_A[i] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Effect\lower_1_" + i.ToString() + ".png")); this.txArアタックエフェクトLower_B[i] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Effect\lower_2_" + i.ToString() + ".png")); this.txArアタックエフェクトLower_C[i] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Effect\lower_3_" + i.ToString() + ".png")); this.txArアタックエフェクトLower_D[i] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Effect\lower_4_" + i.ToString() + ".png")); //this.txArアタックエフェクトLower_A[ i ].b加算合成 = true; //this.txArアタックエフェクトLower_B[ i ].b加算合成 = true; //this.txArアタックエフェクトLower_C[ i ].b加算合成 = true; //this.txArアタックエフェクトLower_D[ i ].b加算合成 = true; } base.OnManagedリソースの作成(); }
// CActivity 実装 public override void On活性化() { if (!string.IsNullOrEmpty(CDTXMania.ConfigIni.strPrivateFontで使うフォント名)) { this.pfMusicName = new CPrivateFastFont(new FontFamily(CDTXMania.ConfigIni.strPrivateFontで使うフォント名), 30); this.pfStageText = new CPrivateFastFont(new FontFamily(CDTXMania.ConfigIni.strPrivateFontで使うフォント名), 30); } else { this.pfMusicName = new CPrivateFastFont(new FontFamily("MS PGothic"), 30); this.pfStageText = new CPrivateFastFont(new FontFamily("MS PGothic"), 30); } Bitmap bmpSongTitle = new Bitmap(1, 1); Bitmap bmpStageText = new Bitmap(1, 1); bmpSongTitle = pfMusicName.DrawPrivateFont(CDTXMania.DTX.TITLE, Color.White, Color.Black); bmpStageText = pfStageText.DrawPrivateFont(CDTXMania.Skin.str曲数テキスト, Color.White, Color.Black); this.txStageText = CDTXMania.tテクスチャの生成(bmpStageText, false); this.txMusicName = CDTXMania.tテクスチャの生成(bmpSongTitle, false); base.On活性化(); }
public override void OnManagedリソースの作成() // OPTIONと画像以外共通 { if (base.b活性化してる) { this.tx背景 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\4_background.jpg"), false); this.tx上部パネル = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\4_header panel.png")); this.tx下部パネル = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\4_footer panel.png")); this.txMenuカーソル = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\ScreenConfig menu cursor.png")); prvFont = new CPrivateFastFont(CSkin.Path(@"Graphics\fonts\mplus-1p-heavy.ttf"), 20); string[] strMenuItem = { "System", "Drums", "Exit" }; txMenuItemLeft = new CTexture[strMenuItem.Length, 2]; for (int i = 0; i < strMenuItem.Length; i++) { Bitmap bmpStr; bmpStr = prvFont.DrawPrivateFont(strMenuItem[i], Color.White, Color.Black); txMenuItemLeft[i, 0] = CDTXMania.tテクスチャの生成(bmpStr, false); bmpStr.Dispose(); bmpStr = prvFont.DrawPrivateFont(strMenuItem[i], Color.White, Color.Black, Color.Yellow, Color.OrangeRed); txMenuItemLeft[i, 1] = CDTXMania.tテクスチャの生成(bmpStr, false); bmpStr.Dispose(); } if (this.bメニューにフォーカス中) { this.t説明文パネルに現在選択されているメニューの説明を描画する(); } else { this.t説明文パネルに現在選択されている項目の説明を描画する(); } base.OnManagedリソースの作成(); } }
// CActivity 実装 public override void On活性化() { if (!string.IsNullOrEmpty(CDTXMania.ConfigIni.FontName)) { this.pfMusicName = new CPrivateFastFont(new FontFamily(CDTXMania.ConfigIni.FontName), 30); this.pfStageText = new CPrivateFastFont(new FontFamily(CDTXMania.ConfigIni.FontName), 30); } else { this.pfMusicName = new CPrivateFastFont(new FontFamily("MS UI Gothic"), 30); this.pfStageText = new CPrivateFastFont(new FontFamily("MS UI Gothic"), 30); } using (var bmpSongTitle = pfMusicName.DrawPrivateFont(CDTXMania.DTX.TITLE, Color.White, Color.Black)) { this.txMusicName = CDTXMania.tテクスチャの生成(bmpSongTitle, false); txMusicName.vc拡大縮小倍率.X = CDTXMania.GetSongNameXScaling(ref txMusicName); } using (var bmpStageText = pfStageText.DrawPrivateFont(CDTXMania.Skin.Game_StageText, Color.White, Color.Black)) { this.txStageText = CDTXMania.tテクスチャの生成(bmpStageText, false); } base.On活性化(); }
// CActivity 実装 public override void On活性化() { if (this.b活性化してる) { return; } this.b登場アニメ全部完了 = false; this.n目標のスクロールカウンタ = 0; this.n現在のスクロールカウンタ = 0; this.nスクロールタイマ = -1; this.ct三角矢印アニメ = new CCounter(); this.ct移動 = new CCounter(); this.ct譜面分岐 = new CCounter(); this.n現在の選択行 = new int[2]; this._プレイヤーカーソル = new プレイヤーカーソル[] { new プレイヤーカーソル() { txカーソル = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_player cursor p1.png")) }, new プレイヤーカーソル() { txカーソル = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_player cursor p2.png")) } }; base.On活性化(); }
public override void OnManagedリソースの作成() { this.b再生済み = false; this.txバチお左_成功[0] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\End\Clear_L_00.png")); this.txバチお左_成功[1] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\End\Clear_L_01.png")); this.txバチお左_成功[2] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\End\Clear_L_02.png")); this.txバチお左_成功[3] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\End\Clear_L_03.png")); this.txバチお左_成功[4] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\End\Clear_L_04.png")); this.txバチお右_成功[0] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\End\Clear_R_00.png")); this.txバチお右_成功[1] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\End\Clear_R_01.png")); this.txバチお右_成功[2] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\End\Clear_R_02.png")); this.txバチお右_成功[3] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\End\Clear_R_03.png")); this.txバチお右_成功[4] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\End\Clear_R_04.png")); this.tx文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\End\Text.png")); this.tx文字マスク = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\End\Text_Effect.png")); if (this.tx文字マスク != null) { this.tx文字マスク.b加算合成 = true; } this.soundClear = CDTXMania.Sound管理.tサウンドを生成する(CSkin.Path(@"Sounds\Clear.ogg")); base.OnManagedリソースの作成(); }
public void t歌詞テクスチャを生成する(string str歌詞) { using (var bmpleric = this.pf歌詞フォント.DrawPrivateFont(str歌詞, Color.White, Color.Blue)) { this.tx歌詞テクスチャ = CDTXMania.tテクスチャの生成(bmpleric, false); } }
public override void OnManagedリソースの作成() { this.tx連打枠 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_Rollballoon.png")); this.tx連打数字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_RollNumber.png")); base.OnManagedリソースの作成(); }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.tx背景 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background.jpg"), false); this.tx上部パネル = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_header_panel.png"), false); this.tx下部パネル = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_footer panel.png")); //this.txFLIP = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\5_skill number on gauge etc.png" ), false ); this.tx難易度名 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_difficulty name.png")); this.txジャンル別背景[0] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_Anime.png")); this.txジャンル別背景[1] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_JPOP.png")); this.txジャンル別背景[2] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_Game.png")); this.txジャンル別背景[3] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_Namco.png")); this.txジャンル別背景[4] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_Classic.png")); this.txジャンル別背景[5] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_Child.png")); this.txジャンル別背景[6] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_Variety.png")); this.txジャンル別背景[7] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_VOCALID.png")); this.txジャンル別背景[8] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_Other.png")); this.tx難易度別背景[0] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_Easy.png")); this.tx難易度別背景[1] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_Normal.png")); this.tx難易度別背景[2] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_Hard.png")); this.tx難易度別背景[3] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_Master.png")); this.tx難易度別背景[4] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_background_Edit.png")); this.tx下部テキスト = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\5_footer text.png")); base.OnManagedリソースの作成(); } }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.tx背景 = CDTXMania.tテクスチャの生成(this.strSTAGEFILE, false); //this.txSongnamePlate = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\6_SongnamePlate.png" ) ); this.ct待機 = new CCounter(0, 600, 5, CDTXMania.Timer); this.ct曲名表示 = new CCounter(1, 30, 30, CDTXMania.Timer); try { // When performing calibration, inform the player that // calibration is about to begin, rather than // displaying the song title and subtitle as usual. var タイトル = CDTXMania.IsPerformingCalibration ? "Input calibration is about to begin." : this.str曲タイトル; var サブタイトル = CDTXMania.IsPerformingCalibration ? "Please play as accurately as possible." : this.strサブタイトル; if (!string.IsNullOrEmpty(タイトル)) { //this.txタイトル = new CTexture( CDTXMania.app.Device, image, CDTXMania.TextureFormat ); //this.txタイトル.vc拡大縮小倍率 = new Vector3( 0.5f, 0.5f, 1f ); using (var bmpSongTitle = this.pfTITLE.DrawPrivateFont(タイトル, CDTXMania.Skin.SongLoading_Title_ForeColor, CDTXMania.Skin.SongLoading_Title_BackColor)) { this.txタイトル = new CTexture(CDTXMania.app.Device, bmpSongTitle, CDTXMania.TextureFormat, false); txタイトル.vc拡大縮小倍率.X = CDTXMania.GetSongNameXScaling(ref txタイトル, 710); } using (var bmpSongSubTitle = this.pfSUBTITLE.DrawPrivateFont(サブタイトル, CDTXMania.Skin.SongLoading_SubTitle_ForeColor, CDTXMania.Skin.SongLoading_SubTitle_BackColor)) { this.txサブタイトル = new CTexture(CDTXMania.app.Device, bmpSongSubTitle, CDTXMania.TextureFormat, false); } } else { this.txタイトル = null; this.txサブタイトル = null; } } catch (CTextureCreateFailedException e) { Trace.TraceError(e.ToString()); Trace.TraceError("テクスチャの生成に失敗しました。({0})", new object[] { this.strSTAGEFILE }); this.txタイトル = null; this.txサブタイトル = null; this.tx背景 = null; } base.OnManagedリソースの作成(); } }
public void t歌詞テクスチャを生成する(string str歌詞) { Bitmap bmpleric = new Bitmap(1, 1); bmpleric = this.pf歌詞フォント.DrawPrivateFont(str歌詞, Color.White, Color.Blue); this.tx歌詞テクスチャ = CDTXMania.tテクスチャの生成(bmpleric, false); CDTXMania.t安全にDisposeする(ref bmpleric); }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.tx背景 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\1_Title\Background.png"), false); base.OnManagedリソースの作成(); } }
// CActivity 実装 public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.tx数値 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\ScreenSelect level numbers.png")); base.OnManagedリソースの作成(); } }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.tx黒タイル64x64 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Tile black 64x64.png"), false); base.OnManagedリソースの作成(); } }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.txオプションパネル = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Screen option panels.png"), false); base.OnManagedリソースの作成(); } }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.tx幕 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\8_background_mask.png")); base.OnManagedリソースの作成(); } }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.txScore = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_Score_number.png")); base.OnManagedリソースの作成(); } }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.tx判定文字列 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_judgement.png")); base.OnManagedリソースの作成(); } }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.txフォント8x16[0] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Console font 8x16.png")); this.txフォント8x16[1] = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Console font 2 8x16.png")); base.OnManagedリソースの作成(); } }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.tx幕 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\6_FO.png")); this.tx幕2 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\6_FI.png")); base.OnManagedリソースの作成(); } }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.txカーソル = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\ScreenConfig menu cursor.png"), false); this.txHitKeyダイアログ = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\ScreenConfig hit key to assign dialog.png"), false); base.OnManagedリソースの作成(); } }
public override void OnManagedリソースの作成() { this.tx残り時間数字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_combo taiko.png")); this.tx加算時間数字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_Score_number_Add.png")); this.txタイマー枠 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_TimerPanel.png")); this.txタイマー針 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_TimerTick.png")); this.tx背景黒 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Tile black 64x64.png")); base.OnManagedリソースの作成(); }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.tx背景 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\2_background.jpg"), false); this.txメニュー = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\2_menu.png"), false); base.OnManagedリソースの作成(); } }
// CActivity 実装 public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.tx通常文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Screen font dfp.png"), false); this.tx強調文字 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Screen font dfp em.png"), false); base.OnManagedリソースの作成(); } }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.txタイル = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\FIFO Face.png"), false); this.txタイル背景 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Tile red 64x64.png")); base.OnManagedリソースの作成(); } }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { this.txゴーゴースプラッシュ = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\7_gogosplash.png")); this.txゴーゴースプラッシュ.b加算合成 = true; base.OnManagedリソースの作成(); } }