2 using System.Collections.Generic;
3 using System.Diagnostics;
8 internal class CActSortSongs : CActSelectPopupMenu
13 public CActSortSongs()
15 List<CItemBase> lci = new List<CItemBase>();
16 lci.Add( new CItemList( "Title", CItemBase.Eパネル種別.通常, 0, "", "", new string[] { "Z,Y,X,...", "A,B,C,..." } ) );
17 lci.Add( new CItemList( "Level", CItemBase.Eパネル種別.通常, 0, "", "", new string[] { "99,98,97,...", "1,2,3,..." } ) );
18 lci.Add( new CItemList( "Best Rank", CItemBase.Eパネル種別.通常, 0, "", "", new string[] { "E,D,C,...", "SS,S,A,..." } ) );
19 lci.Add( new CItemList( "PlayCount", CItemBase.Eパネル種別.通常, 0, "", "", new string[] { "10,9,8,...", "1,2,3,..." } ) );
20 lci.Add( new CItemList( "Author", CItemBase.Eパネル種別.通常, 0, "", "", new string[] { "Z,Y,X,...", "A,B,C,..." } ) );
21 lci.Add( new CItemList( "SkillPoint", CItemBase.Eパネル種別.通常, 0, "", "", new string[] { "100,99,98,...", "1,2,3,..." } ) );
23 lci.Add( new CItemList( "BPM", CItemBase.Eパネル種別.通常, 0, "", "", new string[] { "300,200,...", "70,80,90,..." } ) );
25 lci.Add( new CItemList( "Date", CItemBase.Eパネル種別.通常, 0, "", "", new string[] { "Dec.31,30,...", "Jan.1,2,..." } ) );
26 lci.Add( new CItemList( "Return", CItemBase.Eパネル種別.通常, 0, "", "", new string[] { "", "" } ) );
28 base.Initialize( lci, false, "SORT MENU" );
33 public void tActivatePopupMenu( E楽器パート einst, ref CActSelect曲リスト ca )
36 base.tActivatePopupMenu( einst );
38 //public void tDeativatePopupMenu()
40 // base.tDeativatePopupMenu();
44 public override void tEnter押下Main( int nSortOrder )
46 nSortOrder *= 2; // 0,1 => -1, 1
50 case (int) EOrder.Title:
51 this.act曲リスト.t曲リストのソート(
52 CDTXMania.Songs管理.t曲リストのソート2_タイトル順, eInst, nSortOrder
54 this.act曲リスト.t選択曲が変更された(true);
56 case (int) EOrder.Level:
57 this.act曲リスト.t曲リストのソート(
58 CDTXMania.Songs管理.t曲リストのソート4_LEVEL順, eInst, nSortOrder,
59 this.act曲リスト.n現在のアンカ難易度レベル
61 this.act曲リスト.t選択曲が変更された( true );
63 case (int) EOrder.BestRank:
64 this.act曲リスト.t曲リストのソート(
65 CDTXMania.Songs管理.t曲リストのソート5_BestRank順, eInst, nSortOrder,
66 this.act曲リスト.n現在のアンカ難易度レベル
69 case (int) EOrder.PlayCount:
70 // this.act曲リスト.t曲リストのソート3_演奏回数の多い順( eInst, nSortOrder );
71 this.act曲リスト.t曲リストのソート(
72 CDTXMania.Songs管理.t曲リストのソート3_演奏回数の多い順, eInst, nSortOrder,
73 this.act曲リスト.n現在のアンカ難易度レベル
75 this.act曲リスト.t選択曲が変更された( true );
77 case (int) EOrder.Author:
78 this.act曲リスト.t曲リストのソート(
79 CDTXMania.Songs管理.t曲リストのソート8_アーティスト名順, eInst, nSortOrder,
80 this.act曲リスト.n現在のアンカ難易度レベル
82 this.act曲リスト.t選択曲が変更された( true );
84 case (int) EOrder.SkillPoint:
85 this.act曲リスト.t曲リストのソート(
86 CDTXMania.Songs管理.t曲リストのソート6_SkillPoint順, eInst, nSortOrder,
87 this.act曲リスト.n現在のアンカ難易度レベル
89 this.act曲リスト.t選択曲が変更された( true );
92 case (int) ESortItem.BPM:
93 this.act曲リスト.t曲リストのソート(
94 CDTXMania.Songs管理.t曲リストのソート9_BPM順, eInst, nSortOrder,
95 this.act曲リスト.n現在のアンカ難易度レベル
97 this.act曲リスト.t選択曲が変更された(true);
100 case (int) EOrder.Date:
101 this.act曲リスト.t曲リストのソート(
102 CDTXMania.Songs管理.t曲リストのソート7_更新日時順, eInst, nSortOrder,
103 this.act曲リスト.n現在のアンカ難易度レベル
105 this.act曲リスト.t選択曲が変更された( true );
107 case (int) EOrder.Return:
108 this.tDeativatePopupMenu();
117 public override void On活性化()
121 public override void On非活性化()
128 public override void OnManagedリソースの作成()
132 base.OnManagedリソースの作成();
135 public override void OnManagedリソースの解放()
137 base.OnManagedリソースの解放();
143 private CActSelect曲リスト act曲リスト;
145 private enum EOrder : int
147 Title = 0, Level, BestRank, PlayCount,