Made the code checker a bit happier
This commit is contained in:
1 parent
d5cb43a09f
commit
3ebd34fcc3
48 files changed
+1880
-1834
No files matched your search
@@ -576,7 +576,7 @@ namespace Vocaluxe.Menu
|
||||
|
||||
writer.WriteComment("<Color>: Text color from ColorScheme (high priority)");
|
||||
writer.WriteComment("or <R>, <G>, <B>, <A> (lower priority)");
|
||||
if (_Theme.ColorName != String.Empty)
|
||||
if (_Theme.ColorName.Length > 0)
|
||||
{
|
||||
writer.WriteElementString("Color", _Theme.ColorName);
|
||||
}
|
||||
@@ -590,7 +590,7 @@ namespace Vocaluxe.Menu
|
||||
|
||||
writer.WriteComment("<SColor>: Selected Text color from ColorScheme (high priority)");
|
||||
writer.WriteComment("or <SR>, <SG>, <SB>, <SA> (lower priority)");
|
||||
if (_Theme.SColorName != String.Empty)
|
||||
if (_Theme.SColorName.Length > 0)
|
||||
{
|
||||
writer.WriteElementString("SColor", _Theme.SColorName);
|
||||
}
|
||||
@@ -849,10 +849,10 @@ namespace Vocaluxe.Menu
|
||||
|
||||
public void LoadTextures()
|
||||
{
|
||||
if (_Theme.ColorName != String.Empty)
|
||||
if (_Theme.ColorName.Length > 0)
|
||||
Color = CBase.Theme.GetColor(_Theme.ColorName, _PartyModeID);
|
||||
|
||||
if (_Theme.SColorName != String.Empty)
|
||||
if (_Theme.SColorName.Length > 0)
|
||||
SColor = CBase.Theme.GetColor(_Theme.SColorName, _PartyModeID);
|
||||
}
|
||||
|
||||
@@ -879,7 +879,7 @@ namespace Vocaluxe.Menu
|
||||
|
||||
private void UpdateTextPosition()
|
||||
{
|
||||
if (_Text == String.Empty)
|
||||
if (_Text.Length == 0)
|
||||
return;
|
||||
|
||||
CBase.Fonts.SetFont(Fon);
|
||||
|
||||
Reference in new issue
Block a user