Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line break bug in the tooltip (§r) #24

Open
Felix14-v2 opened this issue Nov 11, 2021 · 0 comments
Open

Line break bug in the tooltip (§r) #24

Felix14-v2 opened this issue Nov 11, 2021 · 0 comments

Comments

@Felix14-v2
Copy link
Contributor

Felix14-v2 commented Nov 11, 2021

Description
The "reset" (§r) parameter does not apply to text during automatic line breaks. At the same time, the last specified parameter starts to apply to all subsequent text by default, and the new "§r" will reset the text formatting to it.

Demo
Example rule:
{ "rules":[ { "id":"test_rule1", "type":"DISABLED", "caption":"Hover me", "tooltip":"randomtext§a §rrandomtext§a §rrandomtext§a §rrandomtext§a §rrandomtext§a §rrandomtext§a §rrandomtext§a §rrandomtext§a §rrandomtext§a §crandomtext§r randomtext randomtext" } ] }

Normal view:
image

When upscaling the interface:
image
image

To reproduce

  • Install latest ThatOrThis
  • Move one of the rules.json files given below as an example to the config folder
  • Launch Minecraft
  • Open ThatOrThis screen
  • Wrong text formatting here (if it isn't, set a larger scale of the interface)

Example rules
Example rule.zip
Noticed this when creating my modpack: My rules.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant