From fa78bd1cd9bc6bb16a87ed284d2542da0fa60cab Mon Sep 17 00:00:00 2001 From: Flamefire Date: Thu, 21 Feb 2013 17:13:53 +0100 Subject: [PATCH] Added option for timing --- Vocaluxe/Base/CConfig.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Vocaluxe/Base/CConfig.cs b/Vocaluxe/Base/CConfig.cs index fc2cea6f..65e3e15c 100644 --- a/Vocaluxe/Base/CConfig.cs +++ b/Vocaluxe/Base/CConfig.cs @@ -206,12 +206,16 @@ namespace Vocaluxe.Base xPathHelper.TryGetEnumValue("//root/Game/Tabs", ref Tabs); xPathHelper.GetValue("//root/Game/Language", ref Language, Language); xPathHelper.TryGetEnumValue("//root/Game/LyricsOnTop", ref LyricsOnTop); + xPathHelper.TryGetFloatValue("//root/Game/MinLineBreakTime", ref MinLineBreakTime); if ((ScoreAnimationTime > 0 && ScoreAnimationTime < 1) || ScoreAnimationTime < 0) { ScoreAnimationTime = 1; } + if (MinLineBreakTime < 0) + MinLineBreakTime = 0.1f; + if (NumPlayer < 1 || NumPlayer > CSettings.MaxNumPlayer) NumPlayer = 2; @@ -467,6 +471,9 @@ namespace Vocaluxe.Base writer.WriteComment("Lyrics also on Top of screen: " + CHelper.ListStrings(Enum.GetNames(typeof(EOffOn)))); writer.WriteElementString("LyricsOnTop", Enum.GetName(typeof(EOffOn), LyricsOnTop)); + writer.WriteComment("MinLineBreakTime: Value >= 0 in s. Minimum time the text is shown before it is to be sung"); + writer.WriteElementString("MinLineBreakTime", MinLineBreakTime.ToString()); + writer.WriteComment("Default profile for players 1..." + CSettings.MaxNumPlayer.ToString() + ":"); writer.WriteStartElement("Players"); for (int i = 1; i <= CSettings.MaxNumPlayer; i++)