pearl pausing and renames
No files matched your search
@@ -3,7 +3,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.SunkenSea.WhisperingPearls
|
||||
{
|
||||
public class WhisperingPearlRed : ModItem, ILocalizedModType
|
||||
public class WhisperingPearlFlamingRed : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
|
||||
|
Before Width: | Height: | Size: 221 B After Width: | Height: | Size: 221 B |
@@ -3,7 +3,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.SunkenSea.WhisperingPearls
|
||||
{
|
||||
public class WhisperingPearlLightGreen : ModItem, ILocalizedModType
|
||||
public class WhisperingPearlLightningGreen : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
|
||||
|
Before Width: | Height: | Size: 221 B After Width: | Height: | Size: 221 B |
@@ -3,7 +3,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.SunkenSea.WhisperingPearls
|
||||
{
|
||||
public class WhisperingPearlDarkBlue : ModItem, ILocalizedModType
|
||||
public class WhisperingPearlOceanBlue : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
|
||||
|
Before Width: | Height: | Size: 221 B After Width: | Height: | Size: 221 B |
@@ -3,7 +3,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.SunkenSea.WhisperingPearls
|
||||
{
|
||||
public class WhisperingPearlLightBlue : ModItem, ILocalizedModType
|
||||
public class WhisperingPearlRoyalBlue : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
|
||||
|
Before Width: | Height: | Size: 221 B After Width: | Height: | Size: 221 B |
@@ -3207,24 +3207,24 @@ VoidWorkBench: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WhisperingPearlDarkBlue: {
|
||||
DisplayName: Dark Blue Whispering Pearl
|
||||
WhisperingPearlFlamingRed: {
|
||||
DisplayName: Flaming Red Whispering Pearl
|
||||
Tooltip: Contains knowledge
|
||||
}
|
||||
|
||||
WhisperingPearlLightBlue: {
|
||||
DisplayName: Light Blue Whispering Pearl
|
||||
Tooltip: "{$Items.Placeables.WhisperingPearlDarkBlue.Tooltip}"
|
||||
WhisperingPearlLightningGreen: {
|
||||
DisplayName: Lightning Green Whispering Pearl
|
||||
Tooltip: "{$Items.Placeables.WhisperingPearlFlamingRed.Tooltip}"
|
||||
}
|
||||
|
||||
WhisperingPearlLightGreen: {
|
||||
DisplayName: Light Green Whispering Pearl
|
||||
Tooltip: "{$Items.Placeables.WhisperingPearlDarkBlue.Tooltip}"
|
||||
WhisperingPearlOceanBlue: {
|
||||
DisplayName: Ocean Blue Whispering Pearl
|
||||
Tooltip: "{$Items.Placeables.WhisperingPearlFlamingRed.Tooltip}"
|
||||
}
|
||||
|
||||
WhisperingPearlRed: {
|
||||
DisplayName: Red Whispering Pearl
|
||||
Tooltip: "{$Items.Placeables.WhisperingPearlDarkBlue.Tooltip}"
|
||||
WhisperingPearlRoyalBlue: {
|
||||
DisplayName: Royal Blue Whispering Pearl
|
||||
Tooltip: "{$Items.Placeables.WhisperingPearlFlamingRed.Tooltip}"
|
||||
}
|
||||
|
||||
WulfrumBathtub: {
|
||||
|
||||
@@ -74,10 +74,10 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
int frameNum = Main.tile[i, j].TileFrameX / 18;
|
||||
int pearl = frameNum switch
|
||||
{
|
||||
1 => ModContent.ItemType<WhisperingPearlLightBlue>(),
|
||||
2 => ModContent.ItemType<WhisperingPearlDarkBlue>(),
|
||||
3 => ModContent.ItemType<WhisperingPearlLightGreen>(),
|
||||
_ => ModContent.ItemType<WhisperingPearlRed>(),
|
||||
1 => ModContent.ItemType<WhisperingPearlRoyalBlue>(),
|
||||
2 => ModContent.ItemType<WhisperingPearlOceanBlue>(),
|
||||
3 => ModContent.ItemType<WhisperingPearlLightningGreen>(),
|
||||
_ => ModContent.ItemType<WhisperingPearlFlamingRed>(),
|
||||
};
|
||||
Main.LocalPlayer.cursorItemIconID = pearl;
|
||||
Main.LocalPlayer.noThrow = 2;
|
||||
|
||||
@@ -95,6 +95,12 @@ namespace CalamityMod.UI
|
||||
separated[currentPage] = separated[currentPage].Remove((int)textTimer, charstoRemove);
|
||||
}
|
||||
|
||||
// Pause briefly on elipses
|
||||
float increment = 0.33f;
|
||||
if (separated[currentPage].EndsWith("..."))
|
||||
{
|
||||
increment /= 20f;
|
||||
}
|
||||
// How much further the BOTTOM of the text should be drawn above the pearl
|
||||
float yOffset = 40;
|
||||
Utils.DrawBorderString(sb, separated[currentPage], position - Main.screenPosition - Vector2.UnitY * (size.Y + yOffset), lineColor, anchorx: 0.5f, anchory: 0, maxCharactersDisplayed: 100000);
|
||||
@@ -103,7 +109,7 @@ namespace CalamityMod.UI
|
||||
// 0.33 means that it takes 3ish frames for 1 letter to appear
|
||||
if (textTimer < maxTextTime)
|
||||
{
|
||||
textTimer += 0.33f;
|
||||
textTimer += increment;
|
||||
}
|
||||
}
|
||||
// If dialogue can't be active, finish it
|
||||
|
||||