diff --git a/UI/DraedonSummoning/CodebreakerCommunicationUI.cs b/UI/DraedonSummoning/CodebreakerCommunicationUI.cs index 87a122eca6..7a2b037188 100644 --- a/UI/DraedonSummoning/CodebreakerCommunicationUI.cs +++ b/UI/DraedonSummoning/CodebreakerCommunicationUI.cs @@ -133,9 +133,9 @@ namespace CalamityMod.UI.DraedonSummoning // Draw the background panel. This pops up. float panelWidthScale = Utils.Remap(CommunicationPanelScale, 0f, 0.5f, 0.085f, 1f); float panelHeightScale = Utils.Remap(CommunicationPanelScale, 0.5f, 1f, 0.085f, 1f); - Vector2 panelScale = GeneralScale * new Vector2(panelWidthScale, panelHeightScale) * 2.4f; + Vector2 panelScale = GeneralScale * new Vector2(panelWidthScale, panelHeightScale) * 1.4f; Texture2D panelTexture = ModContent.Request("CalamityMod/UI/DraedonSummoning/DraedonContactPanel").Value; - float basePanelHeight = GeneralScale * panelTexture.Height * 2.4f; + float basePanelHeight = GeneralScale * panelTexture.Height * 1.4f; Vector2 panelCenter = new Vector2(Main.screenWidth * 0.5f, BackgroundCenter.Y + panelTexture.Height * panelScale.Y * 0.5f - basePanelHeight * 0.5f); Rectangle panelArea = Utils.CenteredRectangle(panelCenter, panelTexture.Size() * panelScale); @@ -176,14 +176,14 @@ namespace CalamityMod.UI.DraedonSummoning Texture2D iconTexture = ModContent.Request("CalamityMod/UI/DraedonSummoning/DraedonIconBorder").Value; Texture2D iconTextureInner = ModContent.Request("CalamityMod/UI/DraedonSummoning/DraedonIconBorderInner").Value; float draedonIconDrawInterpolant = Utils.GetLerpValue(0.51f, 0.36f, DraedonScreenStaticInterpolant, true); - Vector2 draedonIconDrawTopRight = panelCenter + new Vector2(-128f, -84f) * panelScale; + Vector2 draedonIconDrawTopRight = panelCenter + new Vector2(-218f, -130f) * panelScale; draedonIconDrawTopRight += new Vector2(24f, 4f) * panelScale; Vector2 draedonIconScale = panelScale * 0.5f; Vector2 draedonIconCenter = draedonIconDrawTopRight + iconTexture.Size() * new Vector2(0.5f, 0.5f) * draedonIconScale; - Rectangle draedonIconArea = Utils.CenteredRectangle(draedonIconCenter, iconTexture.Size() * draedonIconScale * 0.95f); - draedonIconArea.Y += 4; - draedonIconArea.Height -= 8; + Rectangle draedonIconArea = Utils.CenteredRectangle(draedonIconCenter, iconTexture.Size() * draedonIconScale * 0.9f); + draedonIconArea.Y += 12; + draedonIconArea.Height -= 12; Main.spriteBatch.Draw(iconTexture, draedonIconDrawTopRight, null, Color.White * draedonIconDrawInterpolant, 0f, Vector2.Zero, draedonIconScale, 0, 0f); // Draw Draedon's face inside the panel. @@ -231,7 +231,7 @@ namespace CalamityMod.UI.DraedonSummoning // Display text options in the box. bool hoveringOverAnyOption = false; float opacity = DraedonTextOptionsOpacity * (1f - DraedonScreenStaticInterpolant); - Vector2 textTopLeft = selectionArea.TopLeft() + new Vector2(16f, 12f) * panelScale; + Vector2 textTopLeft = selectionArea.TopLeft() + new Vector2(20f, 12f) * panelScale; Texture2D markerTexture = ModContent.Request("CalamityMod/UI/DraedonSummoning/DraedonInquirySelector").Value; foreach (var dialog in DialogOptions.Where(d => d.Condition())) @@ -250,9 +250,9 @@ namespace CalamityMod.UI.DraedonSummoning continue; // Draw the text marker. - Vector2 markerScale = panelScale * 0.15f; - Vector2 markerDrawPosition = textTopLeft - Vector2.UnitX * markerTexture.Width * markerScale.X * 0.7f; - markerDrawPosition.Y += markerScale.Y * 16f; + Vector2 markerScale = panelScale * 0.24f; + Vector2 markerDrawPosition = textTopLeft - Vector2.UnitX * markerTexture.Width * markerScale.X * 0.52f; + markerDrawPosition.Y += markerScale.Y * 22f; Color textColor = Color.Cyan; Color markerColor = Color.White; @@ -273,7 +273,7 @@ namespace CalamityMod.UI.DraedonSummoning float scale = (float)Math.Sin(Main.GlobalTimeWrappedHourly) * 0.05f + 0.26f; float rot = Main.GlobalTimeWrappedHourly * 0.5f; - Main.spriteBatch.Draw(bloomTex, markerDrawPosition, null, Color.SkyBlue * dialog.BloomOpacity * opacity, rot, new Vector2(123f, 124f), scale, 0, 0f); + Main.spriteBatch.Draw(bloomTex, markerDrawPosition, null, Color.SteelBlue * dialog.BloomOpacity * opacity, rot, new Vector2(123f, 124f), scale, 0, 0f); Main.spriteBatch.End(); Main.spriteBatch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, Matrix.Identity); @@ -374,7 +374,7 @@ namespace CalamityMod.UI.DraedonSummoning int entriesToPrune = 0; bool showNewEntries = CanDisplayLatestDialogEntries; var dialogEntries = DialogHistory.Where(d => !string.IsNullOrEmpty(d)); - Vector2 textTopLeft = dialogArea.TopLeft() + new Vector2(16f, 14f) * panelScale; + Vector2 textTopLeft = dialogArea.TopLeft() + new Vector2(20f, 14f) * panelScale; Texture2D markerTexture = ModContent.Request("CalamityMod/UI/DraedonSummoning/DraedonInquirySelector").Value; foreach (string entry in dialogEntries) { @@ -388,8 +388,8 @@ namespace CalamityMod.UI.DraedonSummoning bool textIsFromDraedon = textIndex % 2 == 0; Color dialogColor = Draedon.TextColor; Vector2 localTextTopLeft = textTopLeft; - Vector2 markerScale = panelScale * 0.15f; - Vector2 markerDrawPosition = textTopLeft - Vector2.UnitX * markerTexture.Width * markerScale.X; + Vector2 markerScale = panelScale * 0.24f; + Vector2 markerDrawPosition = textTopLeft - Vector2.UnitX * markerTexture.Width * markerScale.X * 0.6f; markerDrawPosition.Y += markerScale.Y * 24f; SpriteEffects markerDirection = SpriteEffects.None; if (!textIsFromDraedon) @@ -416,10 +416,10 @@ namespace CalamityMod.UI.DraedonSummoning ChatManager.DrawColorCodedStringWithShadow(Main.spriteBatch, DialogFont, line, localTextTopLeft, dialogColor * dialogHistoryDrawInterpolant, 0f, Vector2.Zero, Vector2.One * GeneralScale * 0.76f); } - textTopLeft.Y += panelScale.Y * 6f; + textTopLeft.Y += panelScale.Y * 11f; lineIndex++; } - textTopLeft.Y += panelScale.Y * 12f; + textTopLeft.Y += panelScale.Y * 20f; if (textTopLeft.Y >= dialogArea.Bottom) entriesToPrune++; @@ -431,6 +431,9 @@ namespace CalamityMod.UI.DraedonSummoning { for (int i = 0; i < 2; i++) { + if (DialogHistory.Count <= 0) + break; + string text = DialogHistory[0]; if (text == DialogOptions[0].Inquiry) Main.LocalPlayer.Calamity().HasTalkedAtCodebreaker = true; diff --git a/UI/DraedonSummoning/DraedonContactPanel.png b/UI/DraedonSummoning/DraedonContactPanel.png index fe308c0c54..8a5e54519b 100644 Binary files a/UI/DraedonSummoning/DraedonContactPanel.png and b/UI/DraedonSummoning/DraedonContactPanel.png differ diff --git a/UI/DraedonSummoning/DraedonDialogOutline.png b/UI/DraedonSummoning/DraedonDialogOutline.png index 5fd26081d9..550c8b19cc 100644 Binary files a/UI/DraedonSummoning/DraedonDialogOutline.png and b/UI/DraedonSummoning/DraedonDialogOutline.png differ diff --git a/UI/DraedonSummoning/DraedonDialogRegistry.cs b/UI/DraedonSummoning/DraedonDialogRegistry.cs index 472a3b2edd..68607153e5 100644 --- a/UI/DraedonSummoning/DraedonDialogRegistry.cs +++ b/UI/DraedonSummoning/DraedonDialogRegistry.cs @@ -3,20 +3,25 @@ public static class DraedonDialogRegistry { public static readonly DraedonDialogEntry WhoAreYou = new("Who are you?", "That is forever an ambitious question. I will allow you this much:\n\n" + - "I am, as I have said, not of this planet. I was born from machines, and I was... created. It may actually be false to say I was born.\n\n" + - "All I have known from the day I became aware of myself, is that I had to create, myself."); + "I am, as I have said, not of this planet. I was born from machines, and I was... created. It may actually be false to say I was born.\n\n" + + "All I have known from the day I became aware of myself, is that I had to create, myself."); - public static readonly DraedonDialogEntry CalamitasBeforeHerDefeat = new("Calamitas", "The witch? Ha! A walking weapon. Such powerful magic in a living being was destined to be. Just look at yourself now.", () => !DownedBossSystem.downedCalamitas); + public static readonly DraedonDialogEntry CalamitasBeforeHerDefeat = new("Calamitas", "The witch? Ha! A walking weapon. Such powerful magic in a living being was destined to be. Just look at yourself now.", () => !DownedBossSystem.downedSCal); - public static readonly DraedonDialogEntry CalamitasAfterHerDefeat = new("Calamitas", "Hm! She has mellowed, I've noticed. For you creatures so burdened by emotion and guilt, I wonder now, how she manages to live with herself.", () => DownedBossSystem.downedCalamitas); + public static readonly DraedonDialogEntry CalamitasAfterHerDefeat = new("Calamitas", "Hm! She has mellowed, I've noticed. For you creatures so burdened by emotion and guilt, I wonder now, how she manages to live with herself.", () => DownedBossSystem.downedSCal); public static readonly DraedonDialogEntry Plague = new("The Plague", "Fascinating, the speed at which nanotechnology and a virus can adapt. I consider it personally one of my greatest works.\n\n" + - "Nanotechnology that not only rivaled a cosmic mutation, but adapted with it to form something new.\n\n" + - "Nothing is more pleasing than a result that exceeds expectations.", () => DownedBossSystem.downedPlaguebringer); + "Nanotechnology that not only rivaled a cosmic mutation, but adapted with it to form something new.\n\n" + + "Nothing is more pleasing than a result that exceeds expectations.", () => DownedBossSystem.downedPlaguebringer); public static readonly DraedonDialogEntry SulphurousSea = new("The Sulphuric Sea", "I understand your concern for those fragile creatures. However, nothing is irreparable, and nothing is truly whole.\n\n" + - "The sea simply exists now in a different state than it once was, one that result out of the convenience of my work.\n\n" + - "Should I ever need to return to that sea? A pointless worry. I shall simply recreate it from the data I have gathered, from the bedrock up. It would be a shame as a creator should I not be able to do that."); + "The sea simply exists now in a different state than it once was, one that result out of the convenience of my work.\n\n" + + "Should I ever need to return to that sea? A pointless worry. I shall simply recreate it from the data I have gathered, from the bedrock up. It would be a shame as a creator should I not be able to do that."); + + public static readonly DraedonDialogEntry TheTyrant = new("The Tyrant", "My patron...\n" + + "He is not someone I have spoken to in a very long time.\n\n" + + "Oh? Is that such a surprise? I no longer needed him, and he withdrew himself from all. I suspect he retreated to that graveyard of dragons he spoke of...\n\n" + + "Should you locate him, I'll await the news of either his or your death. Perhaps I will collect the cadavar.", () => DownedBossSystem.downedSCal); public static DraedonDialogEntry[] DialogOptions => new DraedonDialogEntry[] { @@ -26,7 +31,8 @@ CalamitasBeforeHerDefeat, CalamitasAfterHerDefeat, Plague, - SulphurousSea + SulphurousSea, + TheTyrant }; } } diff --git a/UI/DraedonSummoning/DraedonIconBorder.png b/UI/DraedonSummoning/DraedonIconBorder.png index d88e83d543..27f6801dcd 100644 Binary files a/UI/DraedonSummoning/DraedonIconBorder.png and b/UI/DraedonSummoning/DraedonIconBorder.png differ diff --git a/UI/DraedonSummoning/DraedonIconBorderInner.png b/UI/DraedonSummoning/DraedonIconBorderInner.png index 8ba8aeabaa..2aeab1848e 100644 Binary files a/UI/DraedonSummoning/DraedonIconBorderInner.png and b/UI/DraedonSummoning/DraedonIconBorderInner.png differ diff --git a/UI/DraedonSummoning/DraedonInquiryButton.png b/UI/DraedonSummoning/DraedonInquiryButton.png deleted file mode 100644 index 1f56e7b704..0000000000 Binary files a/UI/DraedonSummoning/DraedonInquiryButton.png and /dev/null differ diff --git a/UI/DraedonSummoning/DraedonSelectionOutline.png b/UI/DraedonSummoning/DraedonSelectionOutline.png index a05c08b4d5..bef2bd16c9 100644 Binary files a/UI/DraedonSummoning/DraedonSelectionOutline.png and b/UI/DraedonSummoning/DraedonSelectionOutline.png differ