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

+6
View File
@@ -44,6 +44,12 @@
<B>0.500</B>
<A>1.000</A>
</Player6>
<NoteLinesColor>
<R>0.675</R>
<G>0.890</G>
<B>0.969</B>
<A>0.200</A>
</NoteLinesColor>
<BackgroundColor>
<R>0.000</R>
<G>0.000</G>
+6
View File
@@ -44,6 +44,12 @@
<B>0.500</B>
<A>1.000</A>
</Player6>
<NoteLinesColor>
<R>0.709</R>
<G>0.968</G>
<B>0.674</B>
<A>0.200</A>
</NoteLinesColor>
<BackgroundColor>
<R>0.000</R>
<G>0.750</G>
+6
View File
@@ -44,6 +44,12 @@
<B>0.500</B>
<A>1.000</A>
</Player6>
<NoteLinesColor>
<R>0.968</R>
<G>0.674</G>
<B>0.674</B>
<A>0.200</A>
</NoteLinesColor>
<BackgroundColor>
<R>0.750</R>
<G>0.000</G>
+6
View File
@@ -44,6 +44,12 @@
<B>0.500</B>
<A>1.000</A>
</Player6>
<NoteLinesColor>
<R>0.968</R>
<G>0.956</G>
<B>0.674</B>
<A>0.200</A>
</NoteLinesColor>
<BackgroundColor>
<R>0.750</R>
<G>0.750</G>
@@ -1,5 +1,9 @@
Skin System
++++++++++
Version 5:
Added optional <NoteLineColor> to be able to colour the note lines (Fallback to gray with 0.2 Alpha if not set)
++++++++++
Version 4:
All Colors in <Colors> (Playercolors and ColorSchemes)
@@ -12,9 +16,6 @@ Added videos:
<IntroMid>
<IntroOut>
++++++++++
++++++++++
Version 2:
+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;