• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision58cdb99e1d36df4da1b24e6cc68692f4b8202d90 (tree)
Zeit2020-01-07 01:29:01
Autoryyagi <yyagi.dtxmania@gmai...>
Commiteryyagi

Log Message

#39817 Fixed not to crash when entering Sort menu, after showing non-music-select-screen.

Ändern Zusammenfassung

  • delete: "DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\203\206\343\203\274\343\202\270/05.\351\201\270\346\233\262/CActSelectPopupMenu.cs"

Diff

--- "a/DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\203\206\343\203\274\343\202\270/05.\351\201\270\346\233\262/CActSelectPopupMenu.cs"
+++ "b/DTXMania/\343\202\263\343\203\274\343\203\211/\343\202\271\343\203\206\343\203\274\343\202\270/05.\351\201\270\346\233\262/CActSelectPopupMenu.cs"
@@ -64,15 +64,16 @@ namespace DTXMania
6464 stqMenuTitle = new stQuickMenuItem();
6565 stqMenuTitle.cItem = new COptionString(title);
6666 stqMenuTitle.cItem.label = title;
67- stqMenuTitle.txName = TextureFactory.tテクスチャの生成(prvFont.DrawPrivateFont(title, Color.White, Color.Black), false);
68- stqMenuTitle.rectName = prvFont.RectStrings;
67+ //stqMenuTitle.txName = TextureFactory.tテクスチャの生成(prvFont.DrawPrivateFont(title, Color.White, Color.Black), false);
68+ //stqMenuTitle.rectName = prvFont.RectStrings;
6969 lciMenuItems = new stQuickMenuItem[menulist.Count];
7070 for (int i = 0; i < menulist.Count; i++)
7171 {
7272 stQuickMenuItem stqm = new stQuickMenuItem();
7373 stqm.cItem = menulist[i];
74- stqm.txName = TextureFactory.tテクスチャの生成(prvFont.DrawPrivateFont(menulist[i].label, Color.White, Color.Black), false);
75- stqm.rectName = prvFont.RectStrings;
74+ stqm.label = menulist[i].label;
75+ //stqm.txName = TextureFactory.tテクスチャの生成(prvFont.DrawPrivateFont(menulist[i].label, Color.White, Color.Black), false);
76+ //stqm.rectName = prvFont.RectStrings;
7677 lciMenuItems[i] = stqm;
7778 }
7879
@@ -205,6 +206,18 @@ namespace DTXMania
205206 {
206207 this.txPopupMenuBackground = TextureFactory.tテクスチャの生成(pathPopupMenuBackground, false);
207208 }
209+
210+ if (stqMenuTitle.txName == null)
211+ {
212+ stqMenuTitle.txName = TextureFactory.tテクスチャの生成(prvFont.DrawPrivateFont(stqMenuTitle.cItem.label, Color.White, Color.Black), false);
213+ stqMenuTitle.rectName = prvFont.RectStrings;
214+ }
215+ for (int i = 0; i < lciMenuItems.Length; i++)
216+ {
217+ lciMenuItems[i].txName = TextureFactory.tテクスチャの生成(prvFont.DrawPrivateFont(lciMenuItems[i].label, Color.White, Color.Black), false);
218+ lciMenuItems[i].rectName= prvFont.RectStrings;
219+ }
220+
208221 base.OnManagedリソースの作成();
209222 }
210223 }
@@ -325,7 +338,10 @@ namespace DTXMania
325338 #endregion
326339 #region [ タイトル描画 ]
327340 int x = (int)(240 * Scale.X), y = (int)(16 * Scale.Y);
328- stqMenuTitle.txName.t2D描画(CDTXMania.Instance.Device, x, y);
341+ if (stqMenuTitle.txName != null)
342+ {
343+ stqMenuTitle.txName.t2D描画(CDTXMania.Instance.Device, x, y);
344+ }
329345 #endregion
330346 #region [ カーソル描画 ]
331347 if (this.txCursor != null)
@@ -393,6 +409,7 @@ namespace DTXMania
393409 internal COptionBase cItem;
394410 internal CTexture txName;
395411 internal Rectangle rectName;
412+ internal string label;
396413 }
397414 private stQuickMenuItem[] lciMenuItems;
398415 CPrivateFastFont prvFont;