Make notelines colour customisable

This commit is contained in:
Jiiniasu committed 2016-04-10 10:18:59 +02:00
1 parent d9bc3fb907
commit a7a359c8e7
6 files changed
+32 -4

No files matched your search

+4 -1
View File
@@ -32,6 +32,7 @@ namespace VocaluxeLib.Menu.SingNotes
private readonly int _Player;
public readonly SRectF Rect;
private readonly SColorF _Color;
private readonly SColorF _NoteLinesColor;
public float Alpha = 1;
private readonly CSongLine[] _Lines;
@@ -60,6 +61,8 @@ 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 * Alpha);
SPlayer playerData = CBase.Game.GetPlayers()[player];
_Lines = CBase.Game.GetSong().Notes.GetVoice(playerData.VoiceNr).Lines;
@@ -88,7 +91,7 @@ namespace VocaluxeLib.Menu.SingNotes
CSongLine line = _Lines[_CurrentLine];
if (CBase.Config.GetDrawNoteLines() == EOffOn.TR_CONFIG_ON)
_DrawNoteLines(new SColorF(Color.Gray, 0.5f * Alpha));
_DrawNoteLines(_NoteLinesColor);
float beats = line.LastNoteBeat - line.FirstNoteBeat + 1;