Path-of-Terraria / PathOfTerraria

GNU General Public License v3.0
1 stars 3 forks source link

System - NPC Dialog Bubbles #419

Closed CollinHerber closed 1 month ago

CollinHerber commented 1 month ago

Summary

A new system we want to introduce in Path of Terraria is floating chat bubbles around NPCs during certain events and just randomly throughout the game.

Some examples that I'd like to see are random bubbles appearing when the npcs are in their locations, such as "Hmm, this looks interesting" said by Alaric in the library randomly every so often.

The first implementation I'd like to see is at the start of the Goblin Army event all the npcs have different flavor text displayed like "Oh no we must defend the town" or "Arm yourselves!" and the chat bubble follows the npc aas they are moving. Placed in the upper left or upper right of the npc

Reasonings

It will add some nice thematic and also standout-ish content.

GabeHasWon commented 1 month ago

image

Something like this work? Obviously nicer text and all, but the idea is there.

GabeHasWon commented 1 month ago

PlaceHolder No background is nicer and mimics the default overhead chat. I think this is good, I'll just write stuff for everyone.

Only thing to note is image this happens for some reason. Localization is normal: 0: Cold night breeze while you work? Who needs anything more? and both vanilla's Utils.WordwrapString and our UISimpleWrappableText.WrapText (which I made public, might move to a helper class) do this somehow. The modified string looks normal. Who knows!