Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
489da983cf
5 files changed
+21
-17
No files matched your search
@@ -1488,7 +1488,7 @@ namespace CalamityMod.Items
|
||||
#region Enchanted Rarity Text Drawing
|
||||
public override bool PreDrawTooltipLine(Item item, DrawableTooltipLine line, ref int yOffset)
|
||||
{
|
||||
if (line.Name == "ItemName" && line.Mod == "Terraria" && item.type == ModContent.ItemType<XyksBlessingBlue>())
|
||||
if (line.Name == "ItemName" && line.Mod == "Terraria" && item.type == ModContent.ItemType<XyksBlessingBlue>() && !CalamityClientConfig.Instance.TextEffects)
|
||||
{
|
||||
Color rarityColor = Color.White;
|
||||
Vector2 basePosition = new Vector2(line.X, line.Y);
|
||||
@@ -1549,7 +1549,7 @@ namespace CalamityMod.Items
|
||||
|
||||
return false;
|
||||
}
|
||||
if (line.Name == "ItemName" && line.Mod == "Terraria" && item.type == ModContent.ItemType<XyksBlessingOrange>())
|
||||
if (line.Name == "ItemName" && line.Mod == "Terraria" && item.type == ModContent.ItemType<XyksBlessingOrange>() && CalamityClientConfig.Instance.TextEffects)
|
||||
{
|
||||
Color rarityColor = Color.White;
|
||||
Vector2 basePosition = new Vector2(line.X, line.Y);
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
[LongDistanceNetSync]
|
||||
public class DevourerofGodsHead : ModNPC
|
||||
{
|
||||
public static Color SpecialMoveColor => Color.Lerp(Color.Fuchsia, Color.Cyan, MathHelper.SmoothStep(0, 1, (MathF.Sin(Main.GlobalTimeWrappedHourly * 2) + 1) * 0.5f));
|
||||
public static Color SpecialMoveColor => !CalamityClientConfig.Instance.TextEffects ? Color.Cyan : Color.Lerp(Color.Fuchsia, Color.Cyan, MathHelper.SmoothStep(0, 1, (MathF.Sin(Main.GlobalTimeWrappedHourly * 2) + 1) * 0.5f));
|
||||
|
||||
public static int phase1IconIndex;
|
||||
public static int phase2IconIndex;
|
||||
|
||||
@@ -76,10 +76,13 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Texture2D tex = ModContent.Request<Texture2D>("CalamityMod/Particles/HighResFoggyCircleHardEdge").Value;
|
||||
Texture2D tex2 = ModContent.Request<Texture2D>("CalamityMod/Particles/SoftRoundExplosion").Value;
|
||||
Color drawColor2 = Color.LightBlue;
|
||||
float rotMult = CalamityClientConfig.Instance.Photosensitivity ? 0f : 1f;
|
||||
|
||||
Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, drawColor2 with { A = 0 }, 0, tex.Size() / 2f, 0.2f * fade * areaScale, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(tex2, Projectile.Center - Main.screenPosition, null, drawColor2 with { A = 0 } * 0.3f, Projectile.rotation, tex2.Size() / 2f, 0.2f * fade * areaScale, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(tex2, Projectile.Center - Main.screenPosition, null, drawColor2 with { A = 0 } * 0.3f, -Projectile.rotation, tex2.Size() / 2f, 0.2f * fade * areaScale, SpriteEffects.None, 0);
|
||||
float opacityMult = CalamityClientConfig.Instance.Photosensitivity ? 0.33f : 1f;
|
||||
|
||||
Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, drawColor2 with { A = 0 } * opacityMult, 0, tex.Size() / 2f, 0.2f * fade * areaScale, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(tex2, Projectile.Center - Main.screenPosition, null, drawColor2 with { A = 0 } * 0.3f * opacityMult, Projectile.rotation * rotMult, tex2.Size() / 2f, 0.2f * fade * areaScale, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(tex2, Projectile.Center - Main.screenPosition, null, drawColor2 with { A = 0 } * 0.3f * opacityMult, -Projectile.rotation * rotMult, tex2.Size() / 2f, 0.2f * fade * areaScale, SpriteEffects.None, 0);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Rarities
|
||||
|
||||
public override bool PreDrawTooltipLine(Item Item, DrawableTooltipLine line, ref int yOffset)
|
||||
{
|
||||
if (line.Mod == "Terraria" && line.Name == "ItemName")
|
||||
if (line.Mod == "Terraria" && line.Name == "ItemName" && CalamityClientConfig.Instance.TextEffects)
|
||||
{
|
||||
if (Item.rare == RarityCosmicPurple)
|
||||
{
|
||||
|
||||
@@ -805,7 +805,7 @@ namespace CalamityMod.UI.DialogueDisplay
|
||||
for (int j = 0; j < colors.Length; j++)
|
||||
colors[j] = DialogueDisplaySystem.GetColorFromHex(textColors.hexcodes[j]);
|
||||
|
||||
color = CalamityUtils.MulticolorLerp((Main.GlobalTimeWrappedHourly * textColors.gradiantSpeed) + (i * textColors.IndexOffset), colors);
|
||||
color = !CalamityClientConfig.Instance.TextEffects ? colors[0] : CalamityUtils.MulticolorLerp((Main.GlobalTimeWrappedHourly * textColors.gradiantSpeed) + (i * textColors.IndexOffset), colors);
|
||||
}
|
||||
else
|
||||
color = BaseColor;
|
||||
@@ -817,7 +817,7 @@ namespace CalamityMod.UI.DialogueDisplay
|
||||
for (int j = 0; j < colors.Length; j++)
|
||||
colors[j] = DialogueDisplaySystem.GetColorFromHex(borderColors.hexcodes[j]);
|
||||
|
||||
borderColor = CalamityUtils.MulticolorLerp((Main.GlobalTimeWrappedHourly * borderColors.gradiantSpeed) + (i * borderColors.IndexOffset), colors);
|
||||
borderColor = !CalamityClientConfig.Instance.TextEffects ? colors[0] : CalamityUtils.MulticolorLerp((Main.GlobalTimeWrappedHourly * borderColors.gradiantSpeed) + (i * borderColors.IndexOffset), colors);
|
||||
}
|
||||
else
|
||||
borderColor = BaseBorderColor;
|
||||
@@ -845,17 +845,18 @@ namespace CalamityMod.UI.DialogueDisplay
|
||||
if (!ScreenLocked)
|
||||
drawPos -= Main.screenPosition;
|
||||
|
||||
foreach (var l in TextEffects.Where(v => v.Key == i))
|
||||
foreach ((TextEffect Effect, float[] args) in l.Value)
|
||||
{
|
||||
drawPos = Effect.ModifyPos(drawPos, CharacterData[i], args);
|
||||
if(CalamityClientConfig.Instance.TextEffects)
|
||||
foreach (var l in TextEffects.Where(v => v.Key == i))
|
||||
foreach ((TextEffect Effect, float[] args) in l.Value)
|
||||
{
|
||||
drawPos = Effect.ModifyPos(drawPos, CharacterData[i], args);
|
||||
|
||||
rotation = Effect.ModifyRot(rotation, CharacterData[i], args);
|
||||
rotation = Effect.ModifyRot(rotation, CharacterData[i], args);
|
||||
|
||||
color = Effect.ModifyColor(color, CharacterData[i], args);
|
||||
color = Effect.ModifyColor(color, CharacterData[i], args);
|
||||
|
||||
scale = Effect.ModifyScale(scale, CharacterData[i], args);
|
||||
}
|
||||
scale = Effect.ModifyScale(scale, CharacterData[i], args);
|
||||
}
|
||||
|
||||
SpriteCharacterData spriteData = Font.Value.SpriteCharacters[c];
|
||||
Vector2 origin = spriteData.Glyph.Size() * 0.5f;
|
||||
|
||||
Reference in new issue
Block a user