Skip to content

Fix TextScaledButtonWidget rendering on >=1.21.11#322

Open
soradotwav wants to merge 1 commit intoisXander:multiversion/devfrom
soradotwav:fix/TextScaledButtonWidget-scaling-fix
Open

Fix TextScaledButtonWidget rendering on >=1.21.11#322
soradotwav wants to merge 1 commit intoisXander:multiversion/devfrom
soradotwav:fix/TextScaledButtonWidget-scaling-fix

Conversation

@soradotwav
Copy link

I replaced the placeholder renderDefaultLabel override with a proper renderContents implementation. It now actually calculates the correct translation to keep the text centered while scaled, so we don't have to settle for tiny buttons anymore.

Also cleaned up some unused imports and updated the matrix math to work with the new GuiGraphics setup.

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

Successfully merging this pull request may close these issues.

1 participant