anegostudios / VintageStory-Issues

Vintage Story's public issue tracker for reporting bugs, crashes and the like
42 stars 16 forks source link

(VTML) Placed blocks names are completely broken #2807

Open Craluminum2413 opened 1 year ago

Craluminum2413 commented 1 year ago

Game Version

1.18.5

Platform

Windows

Modded

Modded

SP/MP

Singleplayer

Description

The same as in #875 but for placed blocks

How to reproduce

  1. Add VTML to block name
  2. Place it
  3. Block name completely broken

1, Add VTML to GroundStorable item name

  1. Place it as a pile
  2. Block name completely broken

Screenshots

CopyQ iZRqWz

Logs

No response

Craluminum2413 commented 3 months ago

Replace this in HudElementBlockAndEntityInfo.ComposeBlockInfoHud

composer.AddGameOverlay(overlayBounds).BeginChildElements(overlayBounds).AddStaticTextAutoBoxSize(title, CairoFont.WhiteSmallishText(), EnumTextOrientation.Left, textBounds)

with this

composer.AddGameOverlay(overlayBounds).BeginChildElements(overlayBounds).AddRichtext(title, CairoFont.WhiteSmallishText(), textBounds)

Before: image After: image