Teardown-Issue-Tracker-Maintainers / Teardown-Issue-Tracker

A public repo for the community to track issues/bugs/feature requests in Teardown.
11 stars 6 forks source link

[Bug] `hud.notification` incorrectly displaying text outside of bounds on localized lines. #557

Open lazyRares opened 1 month ago

lazyRares commented 1 month ago

Describe the bug

When using hud.notification the text will not correctly extend the boundaries of the UI box to display all the text. This happens on all languages with any line, it seems the length is either hardcoded based on the line's length or otherwise.

image image

EDIT: After some testing this seems to be only on localized lines, I hypothesize that it is setting the UI's length to the localization line's length but not accounting and changing the length once the actual line is inputted in, since there's no issues using non-localized lines.

Steps to reproduce the behavior

  1. Create script using SetString("hud.notification","")
  2. Set the string to be used as any lengthy one, such as loc@TOOL_DESC_ROUNDS_NITROGLYCERIN
  3. Test
  4. See error

Expected behavior

The box should wrap it's length across the entire line, and comfortably fit all the words with margins and spacing.

Environment

Gregory-Gregory commented 1 month ago

@lazyRares hi!

Thank you for reporting this issue. It has been forwarded to the team for further investigation.