Make lyric styles translatable

This commit is contained in:
Jiiniasu committed 2016-03-26 20:16:22 +01:00
1 parent 96a196aa07
commit 1826959cb9
4 files changed
+16 -12

No files matched your search

+4
View File
@@ -80,6 +80,10 @@
<string name="TR_CONFIG_FADEPLAYERINFO_ALL">All</string>
<string name="TR_CONFIG_FADEPLAYERINFO_INFO">Only names and avatars</string>
<string name="TR_CONFIG_FADEPLAYERINFO_OFF">Nothing</string>
<string name="TR_CONFIG_LYRICSTYLE_FILL">Fill</string>
<string name="TR_CONFIG_LYRICSTYLE_JUMP">Jump</string>
<string name="TR_CONFIG_LYRICSTYLE_SLIDE">Slide</string>
<string name="TR_CONFIG_LYRICSTYLE_ZOOM">Zoom</string>
<string name="TR_CONFIG_LYRICSPOSITION_BOTTOM">Bottom</string>
<string name="TR_CONFIG_LYRICSPOSITION_TOP">Top</string>
<string name="TR_CONFIG_LYRICSPOSITION_BOTH">Top and bottom</string>
+1 -1
View File
@@ -104,7 +104,7 @@ namespace Vocaluxe.Base
[DefaultValue(EPlayerInfo.TR_CONFIG_PLAYERINFO_BOTH)] public EPlayerInfo PlayerInfo;
[DefaultValue(EFadePlayerInfo.TR_CONFIG_FADEPLAYERINFO_OFF)] public EFadePlayerInfo FadePlayerInfo;
[DefaultValue(ECoverLoading.TR_CONFIG_COVERLOADING_DYNAMIC)] public ECoverLoading CoverLoading;
[DefaultValue(ELyricStyle.Slide)] public ELyricStyle LyricStyle;
[DefaultValue(ELyricStyle.TR_CONFIG_LYRICSTYLE_SLIDE)] public ELyricStyle LyricStyle;
}
public struct SConfigSound
+4 -4
View File
@@ -321,10 +321,10 @@ namespace VocaluxeLib
public enum ELyricStyle
{
Fill,
Jump,
Slide,
Zoom
TR_CONFIG_LYRICSTYLE_FILL,
TR_CONFIG_LYRICSTYLE_JUMP,
TR_CONFIG_LYRICSTYLE_SLIDE,
TR_CONFIG_LYRICSTYLE_ZOOM
}
#endregion Config
+7 -7
View File
@@ -88,7 +88,7 @@ namespace VocaluxeLib.Menu
_Line = new CSongLine();
_Text = new CText(_PartyModeID);
LyricStyle = ELyricStyle.Fill;
LyricStyle = ELyricStyle.TR_CONFIG_LYRICSTYLE_FILL;
}
public CLyric(SThemeLyrics theme, int partyModeID)
@@ -100,7 +100,7 @@ namespace VocaluxeLib.Menu
_Text = new CText(_PartyModeID);
_Width = 1f;
LyricStyle = ELyricStyle.Fill;
LyricStyle = ELyricStyle.TR_CONFIG_LYRICSTYLE_FILL;
ThemeLoaded = true;
}
@@ -185,14 +185,14 @@ namespace VocaluxeLib.Menu
{
switch (LyricStyle)
{
case ELyricStyle.Fill:
case ELyricStyle.TR_CONFIG_LYRICSTYLE_FILL:
_DrawFill();
break;
case ELyricStyle.Slide:
case ELyricStyle.TR_CONFIG_LYRICSTYLE_SLIDE:
_DrawSlide();
break;
case ELyricStyle.Zoom:
case ELyricStyle.Jump:
case ELyricStyle.TR_CONFIG_LYRICSTYLE_ZOOM:
case ELyricStyle.TR_CONFIG_LYRICSTYLE_JUMP:
_DrawZoomOrJump();
break;
default:
@@ -368,7 +368,7 @@ namespace VocaluxeLib.Menu
return;
_SetText(highlightNote);
_Text.X = hX;
if (LyricStyle == ELyricStyle.Jump)
if (LyricStyle == ELyricStyle.TR_CONFIG_LYRICSTYLE_JUMP)
_DrawJumpingNode(highlightNote);
else
_DrawZoomedNote(highlightNote, hEndBeat);