Cleaned out more UI, along with the chains folder
No files matched your search
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
@@ -56,7 +56,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
|
||||
switch (drawPlayer.Calamity().andromedaState)
|
||||
{
|
||||
case AndromedaPlayerState.SpecialAttack:
|
||||
Texture2D dashTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AndromedaBolt").Value;
|
||||
Texture2D dashTexture = ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/AndromedaBolt").Value;
|
||||
Rectangle frame = dashTexture.Frame(1, 4, 0, robotEntityInstance.RightIconCooldown / 4 % 4);
|
||||
|
||||
DrawData drawData = new DrawData(dashTexture,
|
||||
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
@@ -14,7 +14,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/IceShield").Value;
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/IceShield").Value;
|
||||
int drawX = (int)(drawInfo.Center.X - Main.screenPosition.X);
|
||||
int drawY = (int)(drawInfo.Center.Y - Main.screenPosition.Y);
|
||||
drawInfo.DrawDataCache.Add(new DrawData(texture, new Vector2(drawX, drawY), null, Color.White, 0f, texture.Size() * 0.5f, 1f, SpriteEffects.None, 0));
|
||||
|
||||
|
Before Width: | Height: | Size: 987 B After Width: | Height: | Size: 987 B |
@@ -247,7 +247,7 @@ namespace CalamityMod
|
||||
|
||||
private void LoadClient()
|
||||
{
|
||||
AstralSky = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AstralSky", AssetRequestMode.ImmediateLoad).Value;
|
||||
AstralSky = ModContent.Request<Texture2D>("CalamityMod/Skies/AstralSky", AssetRequestMode.ImmediateLoad).Value;
|
||||
|
||||
// TODO -- Sky shaders should probably be loaded in a ModSystem
|
||||
Filters.Scene["CalamityMod:DevourerofGodsHead"] = new Filter(new DoGScreenShaderData("FilterMiniTower").UseColor(0.4f, 0.1f, 1.0f).UseOpacity(0.5f), EffectPriority.VeryHigh);
|
||||
|
||||
@@ -37,6 +37,7 @@ using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent.Events;
|
||||
using CalamityMod.Skies;
|
||||
|
||||
namespace CalamityMod.Events
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 150 B |
|
Before Width: | Height: | Size: 233 KiB After Width: | Height: | Size: 233 KiB |
|
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 101 B After Width: | Height: | Size: 101 B |
|
Before Width: | Height: | Size: 187 KiB After Width: | Height: | Size: 187 KiB |
|
Before Width: | Height: | Size: 525 B After Width: | Height: | Size: 525 B |
|
Before Width: | Height: | Size: 409 B After Width: | Height: | Size: 409 B |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@@ -131,7 +131,7 @@ namespace CalamityMod.Items.Accessories
|
||||
playerFound = true;
|
||||
Player myPlayer = Main.player[i];
|
||||
if (NoiseTex == null)
|
||||
NoiseTex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/TechyNoise");
|
||||
NoiseTex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/TechyNoise");
|
||||
|
||||
Texture2D tex = NoiseTex.Value;
|
||||
Vector2 pos = myPlayer.MountedCenter + myPlayer.gfxOffY * Vector2.UnitY - Main.screenPosition;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Dyes
|
||||
public class AuricDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/AuricDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
UseColor(new Color(170, 96, 60)).UseSecondaryColor(new Color(226, 196, 106)).SetShaderTextureArmor(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/SharpNoise", AssetRequestMode.ImmediateLoad));
|
||||
UseColor(new Color(170, 96, 60)).UseSecondaryColor(new Color(226, 196, 106)).SetShaderTextureArmor(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/SharpNoise", AssetRequestMode.ImmediateLoad));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 3;
|
||||
|
||||
@@ -68,8 +68,8 @@ namespace CalamityMod.Items.Tools
|
||||
{
|
||||
float barScale = 1f;
|
||||
|
||||
var barBG = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
|
||||
var barFG = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
|
||||
var barBG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
|
||||
var barFG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
|
||||
|
||||
Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 2) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f;
|
||||
Rectangle frameCrop = new Rectangle(0, 0, (int)(storedScrap / (float)TilesPerScrap * barFG.Width), barFG.Height);
|
||||
|
||||
@@ -224,8 +224,8 @@ namespace CalamityMod.Items.Tools
|
||||
|
||||
float barScale = 1.3f;
|
||||
|
||||
var barBG = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
|
||||
var barFG = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
|
||||
var barBG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
|
||||
var barFG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
|
||||
|
||||
Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 2) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f;
|
||||
Rectangle frameCrop = new Rectangle(0, 0, (int)(usesLeft / (float)maxUses * barFG.Width), barFG.Height);
|
||||
|
||||
@@ -217,8 +217,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
if (Charge <= 0)
|
||||
return;
|
||||
|
||||
var barBG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
|
||||
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
|
||||
|
||||
float barScale = 3f;
|
||||
|
||||
|
||||
@@ -232,8 +232,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
if (Charge <= 0)
|
||||
return;
|
||||
|
||||
var barBG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
|
||||
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
|
||||
|
||||
float barScale = 3.5f;
|
||||
|
||||
|
||||
@@ -135,8 +135,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
float barScale = 1.3f;
|
||||
|
||||
var barBG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
|
||||
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
|
||||
|
||||
Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 2) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f;
|
||||
Rectangle frameCrop = new Rectangle(0, 0, (int)(Charge / 10f * barFG.Width), barFG.Height);
|
||||
|
||||
@@ -165,8 +165,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
if (Charge <= 0)
|
||||
return;
|
||||
|
||||
var barBG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
|
||||
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
|
||||
|
||||
float barScale = 1.5f;
|
||||
|
||||
|
||||
@@ -173,8 +173,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
float barScale = 1.2f;
|
||||
|
||||
var barBG = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
|
||||
var barFG = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
|
||||
var barBG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
|
||||
var barFG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
|
||||
|
||||
Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 2 + 6f) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f;
|
||||
Rectangle frameCrop = new Rectangle(0, 0, (int)(storedScrap / (float)ShotsPerScrap * barFG.Width), barFG.Height);
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/ExtraTextures/AndromedaWithout_Head", EquipType.Head, name: "HeadlessEquipTexture");
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/CalPlayer/DrawLayers/AndromedaWithout_Head", EquipType.Head, name: "HeadlessEquipTexture");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace CalamityMod.MainMenu
|
||||
Cinders.RemoveAll(c => c.Time >= c.Lifetime);
|
||||
|
||||
// Draw cinders.
|
||||
Texture2D cinderTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/CalamitasCinder").Value;
|
||||
Texture2D cinderTexture = ModContent.Request<Texture2D>("CalamityMod/Skies/CalamitasCinder").Value;
|
||||
for (int i = 0; i < Cinders.Count; i++)
|
||||
{
|
||||
Vector2 drawPosition = Cinders[i].Center;
|
||||
|
||||
@@ -1488,7 +1488,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
RibbonTrail = new PrimitiveTrail(RibbonTrailWidthFunction, RibbonTrailColorFunction);
|
||||
|
||||
// Prepare the flame trail shader with its map texture.
|
||||
GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ScarletDevilStreak"));
|
||||
GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/ScarletDevilStreak"));
|
||||
|
||||
int numAfterimages = ChargeComboFlash > 0f ? 0 : 5;
|
||||
Texture2D texture = TextureAssets.Npc[NPC.type].Value;
|
||||
|
||||
@@ -1311,7 +1311,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
RibbonTrail = new PrimitiveTrail(RibbonTrailWidthFunction, RibbonTrailColorFunction);
|
||||
|
||||
// Prepare the flame trail shader with its map texture.
|
||||
GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ScarletDevilStreak"));
|
||||
GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/ScarletDevilStreak"));
|
||||
|
||||
int numAfterimages = ChargeFlash > 0f ? 0 : 5;
|
||||
Texture2D texture = TextureAssets.Npc[NPC.type].Value;
|
||||
|
||||
@@ -218,7 +218,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, shieldEffect, Main.GameViewMatrix.TransformationMatrix);
|
||||
|
||||
if (RoverDrive.NoiseTex == null)
|
||||
RoverDrive.NoiseTex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/TechyNoise");
|
||||
RoverDrive.NoiseTex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/TechyNoise");
|
||||
|
||||
Texture2D tex = RoverDrive.NoiseTex.Value;
|
||||
Vector2 pos = NPC.Center + NPC.gfxOffY * Vector2.UnitY - Main.screenPosition;
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -25,11 +25,11 @@ namespace CalamityMod.Particles.Metaballs
|
||||
};
|
||||
public override List<Texture2D> BackgroundTextures => new()
|
||||
{
|
||||
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ParticleBackgrounds/GruesomeEminence_Ghost_Layer1").Value,
|
||||
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ParticleBackgrounds/GruesomeEminence_Ghost_Layer2").Value,
|
||||
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ParticleBackgrounds/GruesomeEminence_Ghost_Layer3").Value,
|
||||
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ParticleBackgrounds/GruesomeEminence_Ghost_Layer4").Value,
|
||||
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ParticleBackgrounds/GruesomeEminence_Ghost_Layer5").Value,
|
||||
ModContent.Request<Texture2D>("CalamityMod/Particles/Metaballs/GruesomeEminence_Ghost_Layer1").Value,
|
||||
ModContent.Request<Texture2D>("CalamityMod/Particles/Metaballs/GruesomeEminence_Ghost_Layer2").Value,
|
||||
ModContent.Request<Texture2D>("CalamityMod/Particles/Metaballs/GruesomeEminence_Ghost_Layer3").Value,
|
||||
ModContent.Request<Texture2D>("CalamityMod/Particles/Metaballs/GruesomeEminence_Ghost_Layer4").Value,
|
||||
ModContent.Request<Texture2D>("CalamityMod/Particles/Metaballs/GruesomeEminence_Ghost_Layer5").Value,
|
||||
};
|
||||
public override FusableParticle SpawnParticle(Vector2 center, float sizeStrength)
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
@@ -20,7 +20,7 @@ namespace CalamityMod.Particles.Metaballs
|
||||
};
|
||||
public override List<Texture2D> BackgroundTextures => new()
|
||||
{
|
||||
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ParticleBackgrounds/StreamGougeLayer").Value,
|
||||
ModContent.Request<Texture2D>("CalamityMod/Particles/Metaballs/StreamGougeLayer").Value,
|
||||
};
|
||||
public override FusableParticle SpawnParticle(Vector2 center, float sizeStrength)
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Particles.Metaballs
|
||||
};
|
||||
public override List<Texture2D> BackgroundTextures => new List<Texture2D>()
|
||||
{
|
||||
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ParticleBackgrounds/StreamGougeLayer").Value,
|
||||
ModContent.Request<Texture2D>("CalamityMod/Particles/Metaballs/StreamGougeLayer").Value,
|
||||
};
|
||||
public override FusableParticle SpawnParticle(Vector2 center, float sizeStrength)
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
Main.spriteBatch.EnterShaderRegion();
|
||||
|
||||
Texture2D noiseTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VoronoiShapes").Value;
|
||||
Texture2D noiseTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/VoronoiShapes").Value;
|
||||
Vector2 drawPosition = Projectile.Center - Main.screenPosition;
|
||||
Vector2 origin = noiseTexture.Size() * 0.5f;
|
||||
GameShaders.Misc["CalamityMod:DoGPortal"].UseOpacity(Projectile.scale);
|
||||
|
||||
@@ -310,7 +310,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
if (TrailDrawer is null)
|
||||
TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:PhaseslayerRipEffect"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:PhaseslayerRipEffect"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/SwordSlashTexture"));
|
||||
GameShaders.Misc["CalamityMod:PhaseslayerRipEffect"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/SwordSlashTexture"));
|
||||
|
||||
Player player = Main.player[Projectile.owner];
|
||||
float swingAngularDirection = Math.Sign(MathHelper.WrapAngle(Projectile.rotation - Projectile.oldRot[1]));
|
||||
|
||||
|
Before Width: | Height: | Size: 151 B After Width: | Height: | Size: 151 B |
@@ -138,7 +138,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Player player = Main.player[Projectile.owner];
|
||||
Texture2D chainTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Chains/PulseDragonChain").Value;
|
||||
Texture2D chainTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/DraedonsArsenal/PulseDragonChain").Value;
|
||||
Texture2D pulseTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/DraedonsArsenal/PulseAura").Value;
|
||||
Texture2D dragonHeadTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/DraedonsArsenal/PulseDragonProjectile").Value;
|
||||
if (ReelingBack)
|
||||
|
||||
|
Before Width: | Height: | Size: 202 B After Width: | Height: | Size: 202 B |
@@ -244,7 +244,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
CalamityUtils.DrawAfterimagesCentered(Projectile, 0, Color.White, ProjectileID.Sets.TrailCacheLength[Projectile.type]);
|
||||
Texture2D eyeTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/SnakeEye").Value;
|
||||
Texture2D eyeTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/DraedonsArsenal/SnakeEye").Value;
|
||||
Vector2 offsetVector = Utils.Vector2FromElipse(EyeRotation.ToRotationVector2(), Projectile.Size * 0.5f * EyeOutwardness);
|
||||
Main.EntitySpriteDraw(eyeTexture,
|
||||
Projectile.Center + offsetVector - Main.screenPosition,
|
||||
|
||||
@@ -251,7 +251,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
Vector2 origin = texture.Size() * 0.5f;
|
||||
|
||||
Main.spriteBatch.EnterShaderRegion();
|
||||
GameShaders.Misc["CalamityMod:ArtAttack"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/FabstaffStreak"));
|
||||
GameShaders.Misc["CalamityMod:ArtAttack"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/FabstaffStreak"));
|
||||
GameShaders.Misc["CalamityMod:ArtAttack"].Apply();
|
||||
|
||||
TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 100);
|
||||
|
||||
@@ -203,7 +203,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Main.spriteBatch.EnterShaderRegion(BlendState.Additive);
|
||||
Texture2D worleyNoise = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/BlobbyNoise").Value;
|
||||
Texture2D worleyNoise = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/BlobbyNoise").Value;
|
||||
Vector2 drawPosition = Projectile.Center - Main.screenPosition;
|
||||
Vector2 scale = Projectile.Size / worleyNoise.Size() * 2f;
|
||||
float spinRotation = Main.GlobalTimeWrappedHourly * 2.4f;
|
||||
|
||||
@@ -231,7 +231,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (LemniscateDrawer is null)
|
||||
LemniscateDrawer = new PrimitiveTrail(PrimitiveWidthFunction, PrimitiveColorFunction, null, GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/EternityStreak"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/EternityStreak"));
|
||||
LemniscateDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 84);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Main.spriteBatch.EnterShaderRegion(BlendState.Additive);
|
||||
Texture2D worleyNoise = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/BlobbyNoise").Value;
|
||||
Texture2D worleyNoise = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/BlobbyNoise").Value;
|
||||
float spinRotation = Main.GlobalTimeWrappedHourly * 5.2f;
|
||||
|
||||
Main.spriteBatch.EnterShaderRegion();
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (TrailDrawer is null)
|
||||
TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, PrimitiveTrail.RigidPointRetreivalFunction, GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/FabstaffStreak"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/FabstaffStreak"));
|
||||
TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 80, Projectile.oldRot);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (TrailDrawer is null)
|
||||
TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ScarletDevilStreak"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/ScarletDevilStreak"));
|
||||
TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 32);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (TrailDrawer is null)
|
||||
TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/BasicTrail"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/Trails/BasicTrail"));
|
||||
|
||||
CalamityUtils.DrawChromaticAberration(Vector2.UnitX, 3.5f, delegate (Vector2 offset, Color colorMod)
|
||||
{
|
||||
|
||||
@@ -159,8 +159,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
if (Main.myPlayer == Owner.whoAmI)
|
||||
{
|
||||
var barBG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
|
||||
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
|
||||
|
||||
Vector2 drawPos = Owner.Center - Main.screenPosition + new Vector2(0, -36) - barBG.Size() / 2;
|
||||
Rectangle frame = new Rectangle(0, 0, (int)((Timer - ParryTime) / (MaxTime - ParryTime) * barFG.Width), barFG.Height);
|
||||
|
||||
@@ -186,8 +186,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
if (Main.myPlayer == Owner.whoAmI)
|
||||
{
|
||||
var barBG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
|
||||
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
|
||||
|
||||
Vector2 drawPos = Owner.Center - Main.screenPosition + new Vector2(0, -36) - barBG.Size() / 2;
|
||||
Rectangle frame = new Rectangle(0, 0, (int)((Timer - ParryTime) / (MaxTime - ParryTime) * barFG.Width), barFG.Height);
|
||||
|
||||
@@ -184,8 +184,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
if (Main.myPlayer == Owner.whoAmI)
|
||||
{
|
||||
var barBG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
|
||||
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
|
||||
|
||||
Vector2 drawPos = Owner.Center - Main.screenPosition + new Vector2(0, -36) - barBG.Size() / 2;
|
||||
Rectangle frame = new Rectangle(0, 0, (int)((Timer - ParryTime) / (MaxTime - ParryTime) * barFG.Width), barFG.Height);
|
||||
|
||||
|
Before Width: | Height: | Size: 212 B After Width: | Height: | Size: 212 B |
@@ -106,7 +106,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Vector2 mountedCenter = Main.player[Projectile.owner].MountedCenter;
|
||||
Texture2D texture2D2 = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Chains/BallOFuguChain").Value;
|
||||
Texture2D texture2D2 = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Melee/BallOFuguChain").Value;
|
||||
Vector2 vector17 = Projectile.Center;
|
||||
Rectangle? sourceRectangle = null;
|
||||
Vector2 origin = new Vector2((float)texture2D2.Width * 0.5f, (float)texture2D2.Height * 0.5f);
|
||||
|
||||
|
Before Width: | Height: | Size: 457 B After Width: | Height: | Size: 457 B |
@@ -141,7 +141,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Vector2 mountedCenter = Main.player[Projectile.owner].MountedCenter;
|
||||
Texture2D texture2D2 = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Chains/ClamCrusherChain").Value;
|
||||
Texture2D texture2D2 = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Melee/ClamCrusherChain").Value;
|
||||
Vector2 vector17 = Projectile.Center;
|
||||
Rectangle? sourceRectangle = null;
|
||||
Vector2 origin = new Vector2((float)texture2D2.Width * 0.5f, (float)texture2D2.Height * 0.5f);
|
||||
|
||||
|
Before Width: | Height: | Size: 437 B After Width: | Height: | Size: 437 B |
@@ -227,7 +227,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Player owner = Main.player[Projectile.owner];
|
||||
Vector2 mountedCenter = owner.MountedCenter;
|
||||
Color transparent = Color.Transparent;
|
||||
Texture2D chainTex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Chains/DragonPowChain").Value;
|
||||
Texture2D chainTex = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Melee/DragonPowChain").Value;
|
||||
Vector2 chainDrawPos = Projectile.Center;
|
||||
|
||||
Rectangle? sourceRectangle = null;
|
||||
|
||||
@@ -105,7 +105,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
if (TrailDrawer is null)
|
||||
TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/ScarletDevilStreak"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/Trails/ScarletDevilStreak"));
|
||||
TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 30);
|
||||
|
||||
Texture2D texture = Request<Texture2D>("CalamityMod/Projectiles/Melee/GalaxiaBolt").Value;
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Main.spriteBatch.EnterShaderRegion();
|
||||
|
||||
if (TrailTex == null)
|
||||
TrailTex = Request<Texture2D>("CalamityMod/ExtraTextures/BasicTrail");
|
||||
TrailTex = Request<Texture2D>("CalamityMod/ExtraTextures/Trails/BasicTrail");
|
||||
|
||||
GameShaders.Misc["CalamityMod:ExobladePierce"].SetShaderTexture(TrailTex);
|
||||
GameShaders.Misc["CalamityMod:ExobladePierce"].UseImage2("Images/Extra_189");
|
||||
|
||||
@@ -472,7 +472,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
// Draw the zany slash effect.
|
||||
Main.spriteBatch.EnterShaderRegion();
|
||||
GameShaders.Misc["CalamityMod:ExobladeSlash"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VoronoiShapes"));
|
||||
GameShaders.Misc["CalamityMod:ExobladeSlash"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/VoronoiShapes"));
|
||||
GameShaders.Misc["CalamityMod:ExobladeSlash"].UseColor(new Color(105, 240, 220));
|
||||
GameShaders.Misc["CalamityMod:ExobladeSlash"].UseSecondaryColor(new Color(57, 46, 115));
|
||||
GameShaders.Misc["CalamityMod:ExobladeSlash"].Shader.Parameters["fireColor"].SetValue(new Color(242, 112, 72).ToVector3());
|
||||
@@ -501,7 +501,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
secondaryColor = Color.Lerp(Color.White, secondaryColor, 0.4f + 0.6f * (float)Math.Pow(LungeProgression, 0.5f));
|
||||
|
||||
Vector2 trailOffset = (Projectile.rotation - Direction * MathHelper.PiOver4).ToRotationVector2() * 98f + Projectile.Size * 0.5f - Main.screenPosition;
|
||||
GameShaders.Misc["CalamityMod:ExobladePierce"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/EternityStreak"));
|
||||
GameShaders.Misc["CalamityMod:ExobladePierce"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/EternityStreak"));
|
||||
GameShaders.Misc["CalamityMod:ExobladePierce"].UseImage2("Images/Extra_189");
|
||||
GameShaders.Misc["CalamityMod:ExobladePierce"].UseColor(mainColor);
|
||||
GameShaders.Misc["CalamityMod:ExobladePierce"].UseSecondaryColor(secondaryColor);
|
||||
|
||||
@@ -209,7 +209,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
|
||||
//Draw laser beams going around the selection
|
||||
Texture2D beamTex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/SimpleGradient").Value;
|
||||
Texture2D beamTex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/SimpleGradient").Value;
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
|
||||
@@ -162,7 +162,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
|
||||
Vector2 normalizedVelocity = Projectile.velocity.SafeNormalize(Vector2.Zero);
|
||||
Texture2D beamTex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/SimpleGradient").Value;
|
||||
Texture2D beamTex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/SimpleGradient").Value;
|
||||
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
@@ -181,7 +181,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
if (TrailDrawer is null)
|
||||
TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/DoubleTrail"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/DoubleTrail"));
|
||||
TrailDrawer.Draw(new Vector2[] { Projectile.Center , Owner.MountedCenter - normalizedVelocity * 13f}, - Main.screenPosition, 30);
|
||||
|
||||
Main.spriteBatch.End();
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.oldPos[1] = oldPosition;
|
||||
|
||||
Main.spriteBatch.EnterShaderRegion();
|
||||
GameShaders.Misc["CalamityMod:PrismaticStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ScarletDevilStreak"));
|
||||
GameShaders.Misc["CalamityMod:PrismaticStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/ScarletDevilStreak"));
|
||||
|
||||
TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f + generalOffset - Main.screenPosition, 65);
|
||||
Main.spriteBatch.ExitShaderRegion();
|
||||
|
||||
|
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 347 B |
@@ -99,7 +99,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Vector2 mountedCenter = Main.player[Projectile.owner].MountedCenter;
|
||||
Texture2D chainTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Chains/RemsRevengeChain").Value;
|
||||
Texture2D chainTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Melee/RemsRevengeChain").Value;
|
||||
Vector2 projCenter = Projectile.Center;
|
||||
Rectangle? sourceRectangle = null;
|
||||
Vector2 origin = new Vector2((float)chainTexture.Width * 0.5f, (float)chainTexture.Height * 0.5f);
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
if (TrailDrawer is null)
|
||||
TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/ScarletDevilStreak"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/Trails/ScarletDevilStreak"));
|
||||
TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Utils.SafeNormalize(Projectile.velocity, Vector2.Zero) * 30.5f - Main.screenPosition, 30);
|
||||
|
||||
Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, null, Color.Lerp(lightColor, Color.White, 0.5f), Projectile.rotation, texture.Size() / 2f, Projectile.scale, SpriteEffects.None, 0);
|
||||
|
||||
@@ -241,7 +241,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
// Draw the trail behind the blade.
|
||||
if (Owner.itemAnimation > 0)
|
||||
{
|
||||
GameShaders.Misc["CalamityMod:FadingSolidTrail"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/BladeTrailUVMap"));
|
||||
GameShaders.Misc["CalamityMod:FadingSolidTrail"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/BladeTrailUVMap"));
|
||||
GameShaders.Misc["CalamityMod:FadingSolidTrail"].Shader.Parameters["shouldFlip"].SetValue((float)(Owner.direction == -1).ToInt());
|
||||
|
||||
Vector2 bottom = BladeCenterPosition - BladeOffsetDirection * BladeFrame.Height * 0.5f - Main.screenPosition;
|
||||
|
||||
@@ -161,8 +161,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
if (Main.myPlayer == Owner.whoAmI)
|
||||
{
|
||||
var barBG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
|
||||
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
|
||||
|
||||
Vector2 drawPos = Owner.Center - Main.screenPosition + new Vector2(0, -36) - barBG.Size() / 2;
|
||||
Rectangle frame = new Rectangle(0, 0, (int)((Timer - ParryTime) / (MaxTime - ParryTime) * barFG.Width), barFG.Height);
|
||||
|
||||
|
Before Width: | Height: | Size: 141 B After Width: | Height: | Size: 141 B |
@@ -97,7 +97,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Vector2 mountedCenter = Main.player[Projectile.owner].MountedCenter;
|
||||
Texture2D texture2D2 = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Chains/TumbleweedChain").Value;
|
||||
Texture2D texture2D2 = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Melee/TumbleweedChain").Value;
|
||||
Vector2 vector17 = Projectile.Center;
|
||||
Rectangle? sourceRectangle = null;
|
||||
Vector2 origin = new Vector2((float)texture2D2.Width * 0.5f, (float)texture2D2.Height * 0.5f);
|
||||
|
||||
@@ -108,7 +108,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Vector2 mountedCenter = Main.player[Projectile.owner].MountedCenter;
|
||||
Texture2D texture2D2 = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Chains/UrchinFlailChain").Value;
|
||||
Texture2D texture2D2 = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Melee/UrchinFlailChain").Value;
|
||||
Vector2 vector17 = Projectile.Center;
|
||||
Rectangle? sourceRectangle = null;
|
||||
Vector2 origin = new Vector2((float)texture2D2.Width * 0.5f, (float)texture2D2.Height * 0.5f);
|
||||
|
||||
|
Before Width: | Height: | Size: 161 B After Width: | Height: | Size: 161 B |
@@ -99,7 +99,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
if (SliceAfterimageDrawer is null)
|
||||
SliceAfterimageDrawer = new PrimitiveTrail(PrimitiveWidthFunction, PrimitiveColorFunction, specialShader: GameShaders.Misc["CalamityMod:PhaseslayerRipEffect"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:PhaseslayerRipEffect"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/SwordSlashTexture"));
|
||||
GameShaders.Misc["CalamityMod:PhaseslayerRipEffect"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/SwordSlashTexture"));
|
||||
|
||||
Texture2D spearProjectile = ModContent.Request<Texture2D>(Texture).Value;
|
||||
|
||||
|
||||
@@ -198,7 +198,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
if (StreakDrawer is null)
|
||||
StreakDrawer = new PrimitiveTrail(PrimitiveWidthFunction, PrimitiveColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/FabstaffStreak"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/FabstaffStreak"));
|
||||
|
||||
Texture2D spearProjectile = ModContent.Request<Texture2D>(Texture).Value;
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
//Setup the laser sights effect.
|
||||
Effect laserScopeEffect = Filters.Scene["PixelatedSightLine"].GetShader().Shader;
|
||||
laserScopeEffect.Parameters["sampleTexture2"].SetValue(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/CertifiedCrustyNoise").Value);
|
||||
laserScopeEffect.Parameters["sampleTexture2"].SetValue(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/CertifiedCrustyNoise").Value);
|
||||
laserScopeEffect.Parameters["noiseOffset"].SetValue(Main.GameUpdateCount * -0.003f);
|
||||
|
||||
laserScopeEffect.Parameters["mainOpacity"].SetValue((float)Math.Pow(opacity , 0.5f)); //Opacity increases as the screw gets close to the cursor
|
||||
@@ -204,7 +204,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
if (TrailDrawer is null)
|
||||
TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/BasicTrail"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/Trails/BasicTrail"));
|
||||
|
||||
CalamityUtils.DrawChromaticAberration(Vector2.UnitX, 1f, delegate (Vector2 offset, Color colorMod)
|
||||
{
|
||||
|
||||
@@ -220,7 +220,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Texture2D tex = ModContent.Request<Texture2D>(Texture).Value;
|
||||
|
||||
if (SmearTex == null)
|
||||
SmearTex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/MediumLongThrust");
|
||||
SmearTex = ModContent.Request<Texture2D>("CalamityMod/Particles/MediumLongThrust");
|
||||
Texture2D smearTex = SmearTex.Value;
|
||||
|
||||
Vector2 drawOrigin = new Vector2(tex.Width / 2f, tex.Height);
|
||||
|
||||
|
Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 371 B |
@@ -186,7 +186,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Vector2 mountedCenter = Main.player[Projectile.owner].MountedCenter;
|
||||
Texture2D texture2D2 = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Chains/YateveoBloomChain").Value;
|
||||
Texture2D texture2D2 = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Melee/YateveoBloomChain").Value;
|
||||
Vector2 vector17 = Projectile.Center;
|
||||
Rectangle? sourceRectangle = null;
|
||||
Vector2 origin = new Vector2((float)texture2D2.Width * 0.5f, (float)texture2D2.Height * 0.5f);
|
||||
|
||||
@@ -124,7 +124,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
if (TrailDrawer is null)
|
||||
TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, PrimitiveTrail.RigidPointRetreivalFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/BasicTrail"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/Trails/BasicTrail"));
|
||||
TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, TrailLenght);
|
||||
|
||||
return false;
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
secondaryColor = Color.Lerp(Color.White, secondaryColor, 0.85f);
|
||||
|
||||
Vector2 trailOffset = Projectile.Size * 0.5f - Main.screenPosition;
|
||||
GameShaders.Misc["CalamityMod:HeavenlyGaleTrail"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/EternityStreak"));
|
||||
GameShaders.Misc["CalamityMod:HeavenlyGaleTrail"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/EternityStreak"));
|
||||
GameShaders.Misc["CalamityMod:HeavenlyGaleTrail"].UseImage2("Images/Extra_189");
|
||||
GameShaders.Misc["CalamityMod:HeavenlyGaleTrail"].UseColor(mainColor);
|
||||
GameShaders.Misc["CalamityMod:HeavenlyGaleTrail"].UseSecondaryColor(secondaryColor);
|
||||
|
||||
@@ -297,7 +297,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
if (TrailDrawer is null)
|
||||
TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, PrimitiveTrail.RigidPointRetreivalFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/BasicTrail"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/Trails/BasicTrail"));
|
||||
TrailDrawer.Draw(cachedPos, Projectile.Size * 0.5f - Main.screenPosition, TrailLenght);
|
||||
|
||||
return false;
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
if (TrailDrawer is null)
|
||||
TrailDrawer = new PrimitiveTrail(PrimitiveWidthFunction, PrimitiveColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/TelluricGlareStreak"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/FabstaffStreak"));
|
||||
Vector2 overallOffset = Projectile.Size * 0.5f - Main.screenPosition;
|
||||
overallOffset += Projectile.velocity * 1.4f;
|
||||
TrailDrawer.Draw(Projectile.oldPos, overallOffset, 92); // 58
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
if (LightningTrailDrawer is null)
|
||||
LightningTrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ScarletDevilStreak"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/ScarletDevilStreak"));
|
||||
LightningTrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 60);
|
||||
Main.EntitySpriteDraw(texture, drawPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation, origin, Projectile.scale, direction, 0);
|
||||
return false;
|
||||
|
||||
@@ -194,7 +194,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
//Setup the laser sights effect.
|
||||
Effect laserScopeEffect = Filters.Scene["PixelatedSightLine"].GetShader().Shader;
|
||||
laserScopeEffect.Parameters["sampleTexture2"].SetValue(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/CertifiedCrustyNoise").Value);
|
||||
laserScopeEffect.Parameters["sampleTexture2"].SetValue(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/CertifiedCrustyNoise").Value);
|
||||
laserScopeEffect.Parameters["noiseOffset"].SetValue(Main.GameUpdateCount * -0.003f);
|
||||
|
||||
laserScopeEffect.Parameters["mainOpacity"].SetValue(ChargePercent); //Opacity increases as the gun charges
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
if (TrailDrawer is null)
|
||||
TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]);
|
||||
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/BasicTrail"));
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request<Texture2D>("CalamityMod/ExtraTextures/Trails/BasicTrail"));
|
||||
TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 30);
|
||||
|
||||
return false;
|
||||
|
||||