Added a lot of textures & changes

This commit is contained in:
IbanPlay authored and Cameron Ewell committed 2022-03-09 00:02:13 -05:00
1 parent cbcbdfaa23
commit 92c560ccce
39 files changed
+38 -7

No files matched your search

+3 -3
View File
@@ -4197,7 +4197,7 @@ namespace CalamityMod.CalPlayer
}
// Neither mirror can be used if either is on cooldown
if (!Cooldowns.Exists(cooldown => cooldown.GetType() == typeof(GlobalDodgeCooldown)) && !eclipseMirrorCooldown && !abyssalMirrorCooldown)
if (!Cooldowns.Exists(cooldown => cooldown.GetType() == typeof(GlobalDodgeCooldown)))
{
if (eclipseMirror)
{
@@ -4294,7 +4294,7 @@ namespace CalamityMod.CalPlayer
{
if (player.whoAmI == Main.myPlayer && abyssalMirror && !abyssalMirrorCooldown && !eclipseMirror)
{
Cooldowns.Add(new GlobalDodgeCooldown(MirrorDodgeCooldown, player));
Cooldowns.Add(new GlobalDodgeCooldown(MirrorDodgeCooldown, player, "abyssmirror"));
// TODO -- why is this here?
player.noKnockback = true;
@@ -4324,7 +4324,7 @@ namespace CalamityMod.CalPlayer
{
if (player.whoAmI == Main.myPlayer && eclipseMirror && !eclipseMirrorCooldown)
{
Cooldowns.Add(new GlobalDodgeCooldown(MirrorDodgeCooldown, player));
Cooldowns.Add(new GlobalDodgeCooldown(MirrorDodgeCooldown, player, "eclipsemirror"));
// TODO -- why is this here?
player.noKnockback = true;
+2 -1
View File
@@ -153,7 +153,8 @@ namespace CalamityMod.CalPlayer
internal void SyncCooldown(bool server, string cooldownID = "")
{
//If no specific sync id is provided, sync all of the player's cooldowns. Ideally this doesn't happen though. Ideally.
//If no specific sync id is provided, sync all of the player's cooldowns. Ideally this doesn't happen though. Ideally. Do we even need it frankly? Like i guess we could call it on death but idk if it needs to be synced every frames since its
//Already being synced when it gets created and then when it expires
if (cooldownID == "")
{
foreach (string key in CooldownIndicator.IDtoType.Keys)
Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

+33 -3
View File
@@ -28,12 +28,42 @@ namespace CalamityMod.UI.CooldownIndicators
public override string SyncID => "GlobalDodge";
public override bool DisplayMe => true;
public override string Name => "Dodge Cooldown";
public override string Texture => "CalamityMod/UI/CooldownIndicators/GlobalDodge";
public override Color CooldownColorStart => Color.CornflowerBlue;
public override string Texture => "CalamityMod/UI/CooldownIndicators/" + skinTexture;
public override Color OutlineColor => outlineColor;
public override Color CooldownColorStart => cooldownColorStart;
public override Color CooldownColorEnd => cooldownColorEnd;
//It's the same cooldown with different skins each time, basically.
public string skinTexture;
public Color outlineColor;
public Color cooldownColorStart;
public Color cooldownColorEnd;
public GlobalDodgeCooldown(int duration, Player player) : base(duration, player)
public GlobalDodgeCooldown(int duration, Player player, string skin = "default") : base(duration, player)
{
switch (skin)
{
case "abyssmirror":
skinTexture = "AbyssEvade";
outlineColor = new Color(125, 157, 149);
cooldownColorStart = new Color(167, 147, 151);
cooldownColorEnd = new Color(217, 209, 195);
break;
case "eclipsemirror":
skinTexture = "EclipseEvade";
outlineColor = new Color(152, 206, 248);
cooldownColorStart = new Color(255, 192, 71);
cooldownColorEnd = new Color(255, 255, 151);
break;
default:
skinTexture = "GlobalDodge";
outlineColor = Color.White;
cooldownColorStart = Color.CornflowerBlue;
cooldownColorEnd = Color.White;
break;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 485 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B