Calamity Style logo doesn't look like shit any more
This commit is contained in:
1 parent
5221156a60
commit
1eae8eb3c1
2 files changed
+14
-3
No files matched your search
@@ -44,7 +44,7 @@ namespace CalamityMod.MainMenu
|
||||
public override Asset<Texture2D> Logo => ModContent.Request<Texture2D>("CalamityMod/MainMenu/Logo");
|
||||
public override Asset<Texture2D> SunTexture => ModContent.Request<Texture2D>("CalamityMod/Backgrounds/BlankPixel");
|
||||
public override Asset<Texture2D> MoonTexture => ModContent.Request<Texture2D>("CalamityMod/Backgrounds/BlankPixel");
|
||||
|
||||
|
||||
public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("Calamity") ?? MusicID.Title;
|
||||
|
||||
public override ModSurfaceBackgroundStyle MenuBackgroundStyle => ModContent.GetInstance<NullSurfaceBackground>();
|
||||
@@ -123,7 +123,6 @@ namespace CalamityMod.MainMenu
|
||||
|
||||
// Draw cinders.
|
||||
Texture2D cinderTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/CalamitasCinder").Value;
|
||||
Texture2D cinderTexture2 = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/CalamitasCinder").Value;
|
||||
for (int i = 0; i < Cinders.Count; i++)
|
||||
{
|
||||
Vector2 drawPosition = Cinders[i].Center;
|
||||
@@ -135,7 +134,19 @@ namespace CalamityMod.MainMenu
|
||||
drawColor = Color.White;
|
||||
Main.time = 27000;
|
||||
Main.dayTime = true;
|
||||
return true;
|
||||
|
||||
// Draw the logo using a different spritebatch blending setting so it doesn't have a horrible yellow glow
|
||||
// Don't draw the logo if we aren't on the base title screen
|
||||
if (Main.menuMode == MenuID.Title)
|
||||
{
|
||||
Vector2 drawPos = new Vector2(Main.screenWidth / 2f, 100f);
|
||||
spriteBatch.End();
|
||||
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.NonPremultiplied, SamplerState.LinearClamp, DepthStencilState.None, Main.Rasterizer, null, Main.UIScaleMatrix);
|
||||
spriteBatch.Draw(Logo.Value, drawPos, null, drawColor, logoRotation, Logo.Value.Size() * 0.5f, logoScale, SpriteEffects.None, 0f);
|
||||
spriteBatch.End();
|
||||
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, Main.Rasterizer, null, Main.UIScaleMatrix);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 149 KiB After Width: | Height: | Size: 148 KiB |
Reference in new issue
Block a user