diff --git a/OpenRA.Mods.Cnc/CncLoadScreen.cs b/OpenRA.Mods.Cnc/CncLoadScreen.cs index 01ed34934c..135479a6dd 100644 --- a/OpenRA.Mods.Cnc/CncLoadScreen.cs +++ b/OpenRA.Mods.Cnc/CncLoadScreen.cs @@ -26,8 +26,8 @@ namespace OpenRA.Mods.Cnc }; Stopwatch lastLoadScreen = new Stopwatch(); - Rectangle StripeRect; - Sprite Stripe, Logo; + Rectangle StripeRect, BgRect; + Sprite Stripe, Logo, Bg; float2 LogoPos; Renderer r; @@ -42,6 +42,8 @@ namespace OpenRA.Mods.Cnc var s = new Sheet("mods/cnc/uibits/loadscreen.png"); Logo = new Sprite(s, new Rectangle(0,0,256,256), TextureChannel.Alpha); + Bg = new Sprite(s, new Rectangle(0,256,512,256), TextureChannel.Alpha); + BgRect = new Rectangle(0, 0, Renderer.Resolution.Width, Renderer.Resolution.Height); Stripe = new Sprite(s, new Rectangle(256,0,256,256), TextureChannel.Alpha); StripeRect = new Rectangle(0, Renderer.Resolution.Height/2 - 128, Renderer.Resolution.Width, 256); LogoPos = new float2(Renderer.Resolution.Width/2 - 128, Renderer.Resolution.Height/2 - 128); @@ -62,9 +64,10 @@ namespace OpenRA.Mods.Cnc var textSize = Font.Measure(text); r.BeginFrame(float2.Zero); + WidgetUtils.FillRectWithSprite(BgRect, Bg); WidgetUtils.FillRectWithSprite(StripeRect, Stripe); r.RgbaSpriteRenderer.DrawSprite(Logo, LogoPos); - Font.DrawText(text, new float2(Renderer.Resolution.Width - textSize.X - 20, Renderer.Resolution.Height - textSize.Y - 20), Color.White); + Font.DrawText(text, new float2(Renderer.Resolution.Width - textSize.X - 20, Renderer.Resolution.Height - textSize.Y - 20), Color.Black); r.EndFrame( new NullInputHandler() ); } } diff --git a/artsrc/cnc/gdi-load.svg b/artsrc/cnc/gdi-load.svg new file mode 100644 index 0000000000..5e87b096e3 --- /dev/null +++ b/artsrc/cnc/gdi-load.svg @@ -0,0 +1,131 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/mods/cnc/uibits/loadscreen.png b/mods/cnc/uibits/loadscreen.png index 699b07ac28..85e73515c3 100644 Binary files a/mods/cnc/uibits/loadscreen.png and b/mods/cnc/uibits/loadscreen.png differ