Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/DTXManiaプロジェクト/コード/ステージ/05.選曲/CActSelect曲リスト.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 410 by kairera0467, Mon Aug 11 09:56:36 2014 UTC revision 411 by kairera0467, Mon Aug 11 14:02:42 2014 UTC
# Line 308  namespace DTXMania Line 308  namespace DTXMania
308                                  this.t曲名バーの生成( i, this.stバー情報[ i ].strタイトル文字列, this.stバー情報[ i ].col文字色 );                                  this.t曲名バーの生成( i, this.stバー情報[ i ].strタイトル文字列, this.stバー情報[ i ].col文字色 );
309                  this.tアーティスト名テクスチャの生成( i, this.stバー情報[ i ].strアーティスト名 );                  this.tアーティスト名テクスチャの生成( i, this.stバー情報[ i ].strアーティスト名 );
310                  this.tパネルの生成( i, this.stバー情報[ i ].strタイトル文字列, this.stバー情報[ i ].strアーティスト名, this.stバー情報[ i ].col文字色 );                  this.tパネルの生成( i, this.stバー情報[ i ].strタイトル文字列, this.stバー情報[ i ].strアーティスト名, this.stバー情報[ i ].col文字色 );
311                  if( !this.dicThumbnail.ContainsKey( this.stバー情報[ i ].strDTXフォルダのパス ) )                  if( !this.dicThumbnail.ContainsKey( this.stバー情報[ i ].strPreimageのパス ) )
312                              {                              {
313                              //txTumbnail = this.tサムネイルテクスチャを作成する( Path.GetDirectoryName( song.ScoreFile ) );                              //txTumbnail = this.tサムネイルテクスチャを作成する( Path.GetDirectoryName( song.ScoreFile ) );
314                      this.tパスを指定してサムネイル画像を生成する( i, this.stバー情報[ i ].strDTXフォルダのパス, this.stバー情報[ i ].eバー種別  );                      this.tパスを指定してサムネイル画像を生成する( i, this.stバー情報[ i ].strPreimageのパス, this.stバー情報[ i ].eバー種別  );
315                                      this.dicThumbnail.Add( this.stバー情報[ i ].strDTXフォルダのパス, this.txTumbnail[ i ] );                                      this.dicThumbnail.Add( this.stバー情報[ i ].strPreimageのパス, this.txTumbnail[ i ] );
316                                  }                                  }
317                  txTumbnail[ i ] = this.dicThumbnail[ this.stバー情報[ i ].strDTXフォルダのパス ];                  txTumbnail[ i ] = this.dicThumbnail[ this.stバー情報[ i ].strPreimageのパス ];
318                          }                          }
319                  }                  }
320                  public void t次に移動()                  public void t次に移動()
# Line 630  namespace DTXMania Line 630  namespace DTXMania
630                  this.tアーティスト名テクスチャの生成( i, this.stバー情報[ i ].strアーティスト名 );                  this.tアーティスト名テクスチャの生成( i, this.stバー情報[ i ].strアーティスト名 );
631                  this.tパネルの生成( i, this.stバー情報[ i ].strタイトル文字列, this.stバー情報[ i ].strアーティスト名, this.stバー情報[ i ].col文字色 );                  this.tパネルの生成( i, this.stバー情報[ i ].strタイトル文字列, this.stバー情報[ i ].strアーティスト名, this.stバー情報[ i ].col文字色 );
632                  //this.tパスを指定してサムネイル画像を生成する(i, this.stバー情報[i].strDTXフォルダのパス, this.stバー情報[i].eバー種別);                  //this.tパスを指定してサムネイル画像を生成する(i, this.stバー情報[i].strDTXフォルダのパス, this.stバー情報[i].eバー種別);
633                  if( this.stバー情報[ i ].strDTXフォルダのパス != null )                  if( this.stバー情報[ i ].strPreimageのパス != null )
634                  {                  {
635                      if( !this.dicThumbnail.ContainsKey( this.stバー情報[ i ].strDTXフォルダのパス ) )                      if( !this.dicThumbnail.ContainsKey( this.stバー情報[ i ].strPreimageのパス ) )
636                                  {                                  {
637                                      //txTumbnail = this.tサムネイルテクスチャを作成する( Path.GetDirectoryName( song.ScoreFile ) );                                      //txTumbnail = this.tサムネイルテクスチャを作成する( Path.GetDirectoryName( song.ScoreFile ) );
638                          this.tパスを指定してサムネイル画像を生成する( i, this.stバー情報[ i ].strDTXフォルダのパス, this.stバー情報[ i ].eバー種別  );                          this.tパスを指定してサムネイル画像を生成する( i, this.stバー情報[ i ].strPreimageのパス, this.stバー情報[ i ].eバー種別  );
639                                          this.dicThumbnail.Add( this.stバー情報[ i ].strDTXフォルダのパス, this.txTumbnail[ i ] );                                          this.dicThumbnail.Add( this.stバー情報[ i ].strPreimageのパス, this.txTumbnail[ i ] );
640                                      }                                      }
641                      txTumbnail[ i ] = this.dicThumbnail[ this.stバー情報[ i ].strDTXフォルダのパス ];                      txTumbnail[ i ] = this.dicThumbnail[ this.stバー情報[ i ].strPreimageのパス ];
642                  }                  }
643              }              }
644              #endregion              #endregion
# Line 883  namespace DTXMania Line 883  namespace DTXMania
883                                                  this.stバー情報[ index ].strタイトル文字列 = song.strタイトル;                                                  this.stバー情報[ index ].strタイトル文字列 = song.strタイトル;
884                          this.stバー情報[ index ].strアーティスト名 = song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].譜面情報.アーティスト名;                          this.stバー情報[ index ].strアーティスト名 = song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].譜面情報.アーティスト名;
885                                                  this.stバー情報[ index ].col文字色 = song.col文字色;                                                  this.stバー情報[ index ].col文字色 = song.col文字色;
886                          this.stバー情報[ index ].strDTXフォルダのパス = song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].ファイル情報.フォルダの絶対パス + song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].譜面情報.Preimage;                          this.stバー情報[ index ].strDTXフォルダのパス = song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].ファイル情報.フォルダの絶対パス;
887                            this.stバー情報[ index ].strPreimageのパス = song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].ファイル情報.フォルダの絶対パス + song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].譜面情報.Preimage;
888                                                  this.t曲名バーの生成( index, this.stバー情報[ index ].strタイトル文字列, this.stバー情報[ index ].col文字色 );                                                  this.t曲名バーの生成( index, this.stバー情報[ index ].strタイトル文字列, this.stバー情報[ index ].col文字色 );
889                          this.tアーティスト名テクスチャの生成( index, this.stバー情報[ index ].strアーティスト名 );                          this.tアーティスト名テクスチャの生成( index, this.stバー情報[ index ].strアーティスト名 );
890                          this.tパネルの生成( index, this.stバー情報[ index ].strタイトル文字列, this.stバー情報[ index ].strアーティスト名, this.stバー情報[ index ].col文字色 );                          this.tパネルの生成( index, this.stバー情報[ index ].strタイトル文字列, this.stバー情報[ index ].strアーティスト名, this.stバー情報[ index ].col文字色 );
891    
892                          if( !this.dicThumbnail.ContainsKey( this.stバー情報[ index ].strDTXフォルダのパス ) )                          if( !this.dicThumbnail.ContainsKey( this.stバー情報[ index ].strPreimageのパス ) )
893                                          {                                          {
894                                                  //txTumbnail = this.tサムネイルテクスチャを作成する( Path.GetDirectoryName( song.ScoreFile ) );                                                  //txTumbnail = this.tサムネイルテクスチャを作成する( Path.GetDirectoryName( song.ScoreFile ) );
895                              this.tパスを指定してサムネイル画像を生成する( index, this.stバー情報[ index ].strDTXフォルダのパス, this.stバー情報[ index ].eバー種別  );                              this.tパスを指定してサムネイル画像を生成する( index, this.stバー情報[ index ].strPreimageのパス, this.stバー情報[ index ].eバー種別  );
896                                                  this.dicThumbnail.Add( this.stバー情報[ index ].strDTXフォルダのパス, this.txTumbnail[ index ] );                                                  this.dicThumbnail.Add( this.stバー情報[ index ].strPreimageのパス, this.txTumbnail[ index ] );
897                                          }                                          }
898                          txTumbnail[ index ] = this.dicThumbnail[ this.stバー情報[ index ].strDTXフォルダのパス ];                          txTumbnail[ index ] = this.dicThumbnail[ this.stバー情報[ index ].strPreimageのパス ];
899    
900    
901                                                  // stバー情報[] の内容を1行ずつずらす。                                                  // stバー情報[] の内容を1行ずつずらす。
# Line 959  namespace DTXMania Line 960  namespace DTXMania
960                                                  this.stバー情報[ index ].strタイトル文字列 = song.strタイトル;                                                  this.stバー情報[ index ].strタイトル文字列 = song.strタイトル;
961                          this.stバー情報[ index ].strアーティスト名 = song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す(song) ].譜面情報.アーティスト名;                          this.stバー情報[ index ].strアーティスト名 = song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す(song) ].譜面情報.アーティスト名;
962                                                  this.stバー情報[ index ].col文字色 = song.col文字色;                                                  this.stバー情報[ index ].col文字色 = song.col文字色;
963                          this.stバー情報[ index ].strDTXフォルダのパス = song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].ファイル情報.フォルダの絶対パス + song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].譜面情報.Preimage;                          this.stバー情報[ index ].strDTXフォルダのパス = song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].ファイル情報.フォルダの絶対パス;
964                            this.stバー情報[ index ].strPreimageのパス = song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].ファイル情報.フォルダの絶対パス + song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].譜面情報.Preimage;
965                                                  this.t曲名バーの生成( index, this.stバー情報[ index ].strタイトル文字列, this.stバー情報[ index ].col文字色 );                                                  this.t曲名バーの生成( index, this.stバー情報[ index ].strタイトル文字列, this.stバー情報[ index ].col文字色 );
966                          this.tアーティスト名テクスチャの生成( index, this.stバー情報[ index ].strアーティスト名 );                          this.tアーティスト名テクスチャの生成( index, this.stバー情報[ index ].strアーティスト名 );
967                          this.tパネルの生成( index, this.stバー情報[ index ].strタイトル文字列, this.stバー情報[ index ].strアーティスト名, this.stバー情報[ index ].col文字色 );                          this.tパネルの生成( index, this.stバー情報[ index ].strタイトル文字列, this.stバー情報[ index ].strアーティスト名, this.stバー情報[ index ].col文字色 );
968    
969                          if( !this.dicThumbnail.ContainsKey( this.stバー情報[ index ].strDTXフォルダのパス ) )                          if( !this.dicThumbnail.ContainsKey( this.stバー情報[ index ].strPreimageのパス ) )
970                                          {                                          {
971                                                  //txTumbnail = this.tサムネイルテクスチャを作成する( Path.GetDirectoryName( song.ScoreFile ) );                                                  //txTumbnail = this.tサムネイルテクスチャを作成する( Path.GetDirectoryName( song.ScoreFile ) );
972                              this.tパスを指定してサムネイル画像を生成する( index, this.stバー情報[ index ].strDTXフォルダのパス, this.stバー情報[ index ].eバー種別  );                              this.tパスを指定してサムネイル画像を生成する( index, this.stバー情報[ index ].strPreimageのパス, this.stバー情報[ index ].eバー種別  );
973                                                  this.dicThumbnail.Add( this.stバー情報[ index ].strDTXフォルダのパス, this.txTumbnail[ index ] );                                                  this.dicThumbnail.Add( this.stバー情報[ index ].strPreimageのパス, this.txTumbnail[ index ] );
974                                          }                                          }
975                          txTumbnail[ index ] = this.dicThumbnail[ this.stバー情報[ index ].strDTXフォルダのパス ];                          txTumbnail[ index ] = this.dicThumbnail[ this.stバー情報[ index ].strPreimageのパス ];
976    
977    
978                                                  // stバー情報[] の内容を1行ずつずらす。                                                  // stバー情報[] の内容を1行ずつずらす。
# Line 1619  namespace DTXMania Line 1621  namespace DTXMania
1621                          public STDGBVALUE<int> nスキル値;                          public STDGBVALUE<int> nスキル値;
1622                          public Color col文字色;                          public Color col文字色;
1623              public string strDTXフォルダのパス;              public string strDTXフォルダのパス;
1624                public string strPreimageのパス;
1625              public Cスコア.ST譜面情報 ar譜面情報;              public Cスコア.ST譜面情報 ar譜面情報;
1626                  }                  }
1627    
# Line 1901  namespace DTXMania Line 1904  namespace DTXMania
1904                          //this.stバー情報[ i ].ar難易度ラベル[ n ] = song.ar難易度ラベル[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ];                          //this.stバー情報[ i ].ar難易度ラベル[ n ] = song.ar難易度ラベル[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ];
1905                  }                  }
1906                                                                    
1907                  this.stバー情報[ i ].strDTXフォルダのパス = song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].ファイル情報.フォルダの絶対パス + song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].譜面情報.Preimage;                  this.stバー情報[ i ].strDTXフォルダのパス = song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].ファイル情報.フォルダの絶対パス;
1908                    this.stバー情報[ i ].strPreimageのパス = song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].ファイル情報.フォルダの絶対パス + song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].譜面情報.Preimage;
1909                  //this.tパスを指定してサムネイル画像を生成する( i, this.stバー情報[ i ].strDTXフォルダのパス, this.stバー情報[ i ].eバー種別 );                  //this.tパスを指定してサムネイル画像を生成する( i, this.stバー情報[ i ].strDTXフォルダのパス, this.stバー情報[ i ].eバー種別 );
1910                  this.tパネルの生成(i, song.strタイトル, this.stバー情報[ i ].strアーティスト名, song.col文字色);                  this.tパネルの生成(i, song.strタイトル, this.stバー情報[ i ].strアーティスト名, song.col文字色);
1911                  if( !this.dicThumbnail.ContainsKey( this.stバー情報[ i ].strDTXフォルダのパス ) )                  if( this.stバー情報[ i ].strPreimageのパス != null )
1912                                  {                  {
1913                                 //txTumbnail = this.tサムネイルテクスチャを作成する( Path.GetDirectoryName( song.ScoreFile ) );                      if( !this.dicThumbnail.ContainsKey( this.stバー情報[ i ].strPreimageのパス ) )
1914                      this.tパスを指定してサムネイル画像を生成する( i, this.stバー情報[ i ].strDTXフォルダのパス, this.stバー情報[ i ].eバー種別  );                                      {
1915                              this.dicThumbnail.Add( this.stバー情報[ i ].strDTXフォルダのパス, this.txTumbnail[ i ] );                                      //txTumbnail = this.tサムネイルテクスチャを作成する( Path.GetDirectoryName( song.ScoreFile ) );
1916                                  }                          this.tパスを指定してサムネイル画像を生成する( i, this.stバー情報[ i ].strPreimageのパス, this.stバー情報[ i ].eバー種別  );
1917                  txTumbnail[ i ] = this.dicThumbnail[ this.stバー情報[ i ].strDTXフォルダのパス ];                                  this.dicThumbnail.Add( this.stバー情報[ i ].strPreimageのパス, this.txTumbnail[ i ] );
1918                                        }
1919                        txTumbnail[ i ] = this.dicThumbnail[ this.stバー情報[ i ].strPreimageのパス ];
1920                    }
1921    
1922                                  for( int j = 0; j < 3; j++ )                                  for( int j = 0; j < 3; j++ )
1923                                          this.stバー情報[ i ].nスキル値[ j ] = (int) song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].譜面情報.最大スキル[ j ];                                          this.stバー情報[ i ].nスキル値[ j ] = (int) song.arスコア[ this.n現在のアンカ難易度レベルに最も近い難易度レベルを返す( song ) ].譜面情報.最大スキル[ j ];
# Line 2066  namespace DTXMania Line 2073  namespace DTXMania
2073                  SizeF sz曲名;                  SizeF sz曲名;
2074                  SizeF szアーティスト名;                  SizeF szアーティスト名;
2075    
2076                    bool bFoundTitleTexture = false;
2077                    bool bFoundArtistTexture = false;
2078    
2079                  b4font = new Bitmap( 1, 1 );                  b4font = new Bitmap( 1, 1 );
2080                  Graphics graphics = Graphics.FromImage( b4font );                  Graphics graphics = Graphics.FromImage( b4font );
2081                  graphics.PageUnit = GraphicsUnit.Pixel;                  graphics.PageUnit = GraphicsUnit.Pixel;
# Line 2075  namespace DTXMania Line 2085  namespace DTXMania
2085    
2086                  graphics = Graphics.FromImage( bSongPanel );                  graphics = Graphics.FromImage( bSongPanel );
2087                  graphics.DrawImage( imgSongPanel, 0, 0, 223, 279 );                  graphics.DrawImage( imgSongPanel, 0, 0, 223, 279 );
2088                  string strPassBefore = this.stバー情報[ nバー番号 ].strDTXフォルダのパス;  
2089                    string strPassBefore = "";
2090                  string strPassAfter = "";                  string strPassAfter = "";
2091                  if( this.stバー情報[ nバー番号 ].ar譜面情報.Preimage != "" )                  try
                     strPassAfter = strPassBefore.Replace( this.stバー情報[ nバー番号 ].ar譜面情報.Preimage, "" );  
                 string strPath = ( strPassAfter + "TitleTexture.png" );  
                 if( File.Exists( ( strPath ) ) )  
2092                  {                  {
2093                      imgCustomSongNameTexture = Image.FromFile( strPath );                      strPassBefore = this.stバー情報[ nバー番号 ].strDTXフォルダのパス;
2094                      graphics.DrawImage( imgCustomSongNameTexture, 4, -1, 223, 33 );                      strPassAfter = strPassBefore.Replace(this.stバー情報[nバー番号].ar譜面情報.Preimage, "");
2095                  }                  }
2096                  if( File.Exists( ( strPassAfter + "ArtistTexture.png" ) ) )                  catch
2097                  {                  {
2098                      imgCuttomArtistNameTexture = Image.FromFile( strPassAfter + "ArtistTexture.png" );                      //Replaceでエラーが出たらここで適切な処理ができるようにしたい。
2099                      graphics.DrawImage( imgCuttomArtistNameTexture, 0, 252, 223, 26 );                      strPassBefore = "";
2100                        strPassAfter = "";
2101    
2102                  }                  }
2103                        string strPath = (strPassAfter + "TitleTexture.png");
2104                        if (File.Exists((strPath)))
2105                        {
2106                            imgCustomSongNameTexture = Image.FromFile(strPath);
2107                            graphics.DrawImage(imgCustomSongNameTexture, 4, -1, 223, 33);
2108                            bFoundTitleTexture = true;
2109                        }
2110                        if (File.Exists((strPassAfter + "ArtistTexture.png")))
2111                        {
2112                            imgCuttomArtistNameTexture = Image.FromFile(strPassAfter + "ArtistTexture.png");
2113                            graphics.DrawImage(imgCuttomArtistNameTexture, 0, 252, 223, 26);
2114                            bFoundArtistTexture = true;
2115                        }
2116    
2117    
2118                                  #region [ 曲名表示に必要となるサイズを取得する。]                                  #region [ 曲名表示に必要となるサイズを取得する。]
# Line 2119  namespace DTXMania Line 2142  namespace DTXMania
2142                                          graphics.TextRenderingHint = TextRenderingHint.AntiAlias;                                          graphics.TextRenderingHint = TextRenderingHint.AntiAlias;
2143                                          float y = ( ( ( float ) bmp.Height ) ) - ( ( CDTXMania.ConfigIni.n選曲リストフォントのサイズdot ) );                                          float y = ( ( ( float ) bmp.Height ) ) - ( ( CDTXMania.ConfigIni.n選曲リストフォントのサイズdot ) );
2144                                          //graphics.DrawString( str曲名, this.ft曲リスト用フォント, new SolidBrush( this.color文字影 ), (float) 2f, (float) ( y + 2f ) );                                          //graphics.DrawString( str曲名, this.ft曲リスト用フォント, new SolidBrush( this.color文字影 ), (float) 2f, (float) ( y + 2f ) );
2145                      if( File.Exists( ( strPath ) ) == false )                      if( bFoundTitleTexture == false )
2146                                              graphics.DrawString( str曲名, new Font( CDTXMania.ConfigIni.str選曲リストフォント, 16 ), new SolidBrush( color ), 5f, y - 2 );                                              graphics.DrawString( str曲名, new Font( CDTXMania.ConfigIni.str選曲リストフォント, 16 ), new SolidBrush( color ), 5f, y - 2 );
2147                      if( File.Exists( ( strPassAfter + "ArtistTexture.png" ) ) == false )                      if( bFoundArtistTexture == false )
2148                          graphics.DrawString( strアーティスト名, new Font( CDTXMania.ConfigIni.str選曲リストフォント, 16 ), new SolidBrush( Color.White ), (float)218f - this.stバー情報[ nバー番号 ].nタイトル名テクスチャの長さdot, 255f);                          graphics.DrawString( strアーティスト名, new Font( CDTXMania.ConfigIni.str選曲リストフォント, 16 ), new SolidBrush( Color.White ), (float)218f - this.stバー情報[ nバー番号 ].nタイトル名テクスチャの長さdot, 255f);
2149                      //graphics.DrawString( strアーティスト名, this.ft曲リスト用フォント, new SolidBrush( Color.White ), 234f, 258f );                      //graphics.DrawString( strアーティスト名, this.ft曲リスト用フォント, new SolidBrush( Color.White ), 234f, 258f );
2150    

Legend:
Removed from v.410  
changed lines
  Added in v.411

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26