@@ -86,7 +86,7 @@ namespace OpenRA.Mods.Cnc
|
|||||||
WidgetUtils.DrawPanelPartial(ss, Bounds, PanelSides.Edges);
|
WidgetUtils.DrawPanelPartial(ss, Bounds, PanelSides.Edges);
|
||||||
var barY = Bounds.Height - 78;
|
var barY = Bounds.Height - 78;
|
||||||
|
|
||||||
if (!setup)
|
if (!setup && r.Fonts != null)
|
||||||
{
|
{
|
||||||
loadingFont = r.Fonts["BigBold"];
|
loadingFont = r.Fonts["BigBold"];
|
||||||
loadingText = "Loading";
|
loadingText = "Loading";
|
||||||
@@ -100,8 +100,10 @@ namespace OpenRA.Mods.Cnc
|
|||||||
setup = true;
|
setup = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
loadingFont.DrawText(loadingText, loadingPos, Color.Gray);
|
if (loadingFont != null)
|
||||||
versionFont.DrawTextWithContrast(versionText, versionPos, Color.White, Color.Black, 2);
|
loadingFont.DrawText(loadingText, loadingPos, Color.Gray);
|
||||||
|
if (versionFont != null)
|
||||||
|
versionFont.DrawTextWithContrast(versionText, versionPos, Color.White, Color.Black, 2);
|
||||||
|
|
||||||
for (var i = 0; i <= 8; i++)
|
for (var i = 0; i <= 8; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -53,6 +53,9 @@ namespace OpenRA.Mods.D2k
|
|||||||
if (lastLoadScreen.ElapsedTime() < 0.5)
|
if (lastLoadScreen.ElapsedTime() < 0.5)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (r.Fonts == null)
|
||||||
|
return;
|
||||||
|
|
||||||
lastLoadScreen.Reset();
|
lastLoadScreen.Reset();
|
||||||
var text = Comments.Random(Game.CosmeticRandom);
|
var text = Comments.Random(Game.CosmeticRandom);
|
||||||
var textSize = r.Fonts["Bold"].Measure(text);
|
var textSize = r.Fonts["Bold"].Measure(text);
|
||||||
|
|||||||
@@ -57,6 +57,9 @@ namespace OpenRA.Mods.RA
|
|||||||
if (lastLoadScreen.ElapsedTime() < 0.5)
|
if (lastLoadScreen.ElapsedTime() < 0.5)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (r.Fonts == null)
|
||||||
|
return;
|
||||||
|
|
||||||
lastLoadScreen.Reset();
|
lastLoadScreen.Reset();
|
||||||
var text = Comments.Random(Game.CosmeticRandom);
|
var text = Comments.Random(Game.CosmeticRandom);
|
||||||
var textSize = r.Fonts["Bold"].Measure(text);
|
var textSize = r.Fonts["Bold"].Measure(text);
|
||||||
|
|||||||
Reference in New Issue
Block a user