Make note base colorisable

This commit is contained in:
Jiiniasu committed 2016-04-10 12:21:52 +02:00
1 parent f2fdf31aa7
commit e3265edbb0
5 files changed
+30 -1

No files matched your search

+6
View File
@@ -50,6 +50,12 @@
<B>0.969</B>
<A>0.500</A>
</NoteLinesColor>
<NoteBaseColor>
<R>0.675</R>
<G>0.890</G>
<B>0.969</B>
<A>1.000</A>
</NoteBaseColor>
<BackgroundColor>
<R>0.000</R>
<G>0.000</G>
+6
View File
@@ -50,6 +50,12 @@
<B>0.674</B>
<A>0.500</A>
</NoteLinesColor>
<NoteBaseColor>
<R>0.709</R>
<G>0.968</G>
<B>0.674</B>
<A>1.000</A>
</NoteBaseColor>
<BackgroundColor>
<R>0.000</R>
<G>0.750</G>
+6
View File
@@ -50,6 +50,12 @@
<B>0.674</B>
<A>0.500</A>
</NoteLinesColor>
<NoteBaseColor>
<R>0.968</R>
<G>0.674</G>
<B>0.674</B>
<A>1.000</A>
</NoteBaseColor>
<BackgroundColor>
<R>0.750</R>
<G>0.000</G>
+6
View File
@@ -50,6 +50,12 @@
<B>0.674</B>
<A>0.500</A>
</NoteLinesColor>
<NoteNotesColor>
<R>0.968</R>
<G>0.956</G>
<B>0.674</B>
<A>1.000</A>
</NoteNotesColor>
<BackgroundColor>
<R>0.750</R>
<G>0.750</G>
+6 -1
View File
@@ -33,6 +33,7 @@ namespace VocaluxeLib.Menu.SingNotes
public readonly SRectF Rect;
private readonly SColorF _Color;
private readonly SColorF _NoteLinesColor;
private readonly SColorF _NoteBaseColor;
public float Alpha = 1;
private readonly CSongLine[] _Lines;
@@ -61,9 +62,13 @@ namespace VocaluxeLib.Menu.SingNotes
Rect = rect;
_Color = CBase.Themes.GetPlayerColor(player + 1);
if (!CBase.Themes.GetColor("NoteLinesColor", _PartyModeID, out _NoteLinesColor))
_NoteLinesColor = new SColorF(Color.Gray, 0.5f);
if (!CBase.Themes.GetColor("NoteBaseColor", _PartyModeID, out _NoteBaseColor))
_NoteBaseColor = new SColorF(Color.White);
SPlayer playerData = CBase.Game.GetPlayers()[player];
_Lines = CBase.Game.GetSong().Notes.GetVoice(playerData.VoiceNr).Lines;
_NoteLineHeight = Rect.H / CBase.Settings.GetNumNoteLines();
@@ -105,7 +110,7 @@ namespace VocaluxeLib.Menu.SingNotes
SRectF rect = _GetNoteRect(note);
_DrawNoteBG(rect, color);
_DrawNoteBase(rect, new SColorF(Color.White, Alpha), 1f);
_DrawNoteBase(rect, new SColorF(_NoteBaseColor, _NoteBaseColor.A * Alpha), 1f);
}
}