fixed some text heights
This commit is contained in:
1 parent
7a40bffa78
commit
04237b9bd3
2 files changed
+11
-5
No files matched your search
@@ -213,7 +213,7 @@ namespace Vocaluxe.Screens
|
||||
if (paragraph[e] == null)
|
||||
continue;
|
||||
string newLine = " " + paragraph[e];
|
||||
CText text = GetNewText(75, lastY, -2, 30, -1, EAlignment.Left, EStyle.Bold, "Outline", new SColorF(1, 1, 1, 1), line);
|
||||
CText text = GetNewText(75, lastY, -2, 25, -1, EAlignment.Left, EStyle.Bold, "Outline", new SColorF(1, 1, 1, 1), line);
|
||||
if (CFonts.GetTextBounds(text).Width < (CSettings.RenderW - 220))
|
||||
{
|
||||
line += newLine;
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace Vocaluxe.Screens
|
||||
private const string _ButtonProfiles = "ButtonProfiles";
|
||||
private const string _ButtonExit = "ButtonExit";
|
||||
|
||||
private CText _ReleaseText;
|
||||
|
||||
//CParticleEffect Snowflakes;
|
||||
public override void Init()
|
||||
{
|
||||
@@ -48,6 +50,13 @@ namespace Vocaluxe.Screens
|
||||
_ThemeButtons = new string[] {_ButtonSing, _ButtonParty, _ButtonOptions, _ButtonProfiles, _ButtonExit};
|
||||
}
|
||||
|
||||
public override void LoadTheme(string xmlPath)
|
||||
{
|
||||
base.LoadTheme(xmlPath);
|
||||
|
||||
_ReleaseText = GetNewText(10, 690, -1, 15, -1, EAlignment.Left, EStyle.Normal, "Normal", new SColorF(1f, 1f, 1f, 1f), CSettings.GetFullVersionText());
|
||||
}
|
||||
|
||||
public override bool HandleInput(SKeyEvent keyEvent)
|
||||
{
|
||||
base.HandleInput(keyEvent);
|
||||
@@ -157,10 +166,7 @@ namespace Vocaluxe.Screens
|
||||
if (CSettings.VersionRevision != ERevision.Release)
|
||||
// ReSharper restore ConditionIsAlwaysTrueOrFalse
|
||||
{
|
||||
CFonts.SetFont("Normal");
|
||||
CFonts.Style = EStyle.Normal;
|
||||
//TODO: Set Color to white!
|
||||
CFonts.DrawText(CSettings.GetFullVersionText(), 10, 680, 34);
|
||||
_ReleaseText.Draw();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user