Skip to content
This repository was archived by the owner on Mar 9, 2020. It is now read-only.

Commit

Permalink
段位認定モードのレーンに出てくる文字色の可変 #334
Browse files Browse the repository at this point in the history
  • Loading branch information
AioiLight committed Jul 7, 2019
1 parent f784a72 commit 535f082
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions TJAPlayer3/Stages/06.SongLoading/CStage曲読み込み.cs
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,16 @@ public override int On進行描画()
pfSubTitle = new CPrivateFont(new FontFamily("MS UI Gothic"), 22);
}

var titleForeColor = TJAPlayer3.Skin.Game_DanC_Title_ForeColor;
var titleBackColor = TJAPlayer3.Skin.Game_DanC_Title_BackColor;
var subtitleForeColor = TJAPlayer3.Skin.Game_DanC_SubTitle_ForeColor;
var subtitleBackColor = TJAPlayer3.Skin.Game_DanC_SubTitle_BackColor;

for (int i = 0; i < TJAPlayer3.DTX.List_DanSongs.Count; i++)
{
if (!string.IsNullOrEmpty(TJAPlayer3.DTX.List_DanSongs[i].Title))
{
using (var bmpSongTitle = pfTitle.DrawPrivateFont(TJAPlayer3.DTX.List_DanSongs[i].Title, Color.White, Color.Black))
using (var bmpSongTitle = pfTitle.DrawPrivateFont(TJAPlayer3.DTX.List_DanSongs[i].Title, titleForeColor, titleBackColor))
{
TJAPlayer3.DTX.List_DanSongs[i].TitleTex = TJAPlayer3.tテクスチャの生成(bmpSongTitle, false);
TJAPlayer3.DTX.List_DanSongs[i].TitleTex.vc拡大縮小倍率.X = TJAPlayer3.GetSongNameXScaling(ref TJAPlayer3.DTX.List_DanSongs[i].TitleTex, 710);
Expand All @@ -390,7 +395,7 @@ public override int On進行描画()

if (!string.IsNullOrEmpty(TJAPlayer3.DTX.List_DanSongs[i].SubTitle))
{
using (var bmpSongSubTitle = pfSubTitle.DrawPrivateFont(TJAPlayer3.DTX.List_DanSongs[i].SubTitle, Color.White, Color.Black))
using (var bmpSongSubTitle = pfSubTitle.DrawPrivateFont(TJAPlayer3.DTX.List_DanSongs[i].SubTitle, subtitleForeColor, subtitleBackColor))
{
TJAPlayer3.DTX.List_DanSongs[i].SubTitleTex = TJAPlayer3.tテクスチャの生成(bmpSongSubTitle, false);
TJAPlayer3.DTX.List_DanSongs[i].SubTitleTex.vc拡大縮小倍率.X = TJAPlayer3.GetSongNameXScaling(ref TJAPlayer3.DTX.List_DanSongs[i].SubTitleTex, 710);
Expand Down

0 comments on commit 535f082

Please sign in to comment.