FancyMenu

FancyMenu

103M Downloads

Tooltips don't parse "%n%" into real line breaks anymore

BredyAK opened this issue ยท 0 comments

commented

Describe the bug
Currently, the plain text which cotains line breaks could be parsed correctly, but a variable which contains "%n%" can't. I clearly remember this doesn't happen when my FancyMenu is on 3.4.6.

This made my whole modpack can't render line breaks in variables on FancyMenu's tooltips as before... :(

To Reproduce
Steps to reproduce the behavior (e.g.):

  1. Create a layout

  2. Add a button

  3. Set the button's tooltip as following:

    aaa
    {"placeholder":"getvariable","values":{"name":"test_variable"}}
    bbb
    

    The variable test_variable's value is line1%n%line2

  4. Save the layout and see it ingame, hover on the button, you will find the button looks like this:

    Image
  5. It SHOULD be like this (just like how it works on FancyMenu 3.4.6):

    Image

Game Log
https://mclo.gs/EUhEEI6

Screenshots
See above.

Basic Information (please complete the following information):

  • OS: Windows 11
  • FancyMenu Version 3.7.0
  • Fabric/Forge/NeoForge Version 47.3.0
  • Minecraft Version 1.20.1