Skip to content

Conversation

@SwanX1
Copy link
Member

@SwanX1 SwanX1 commented Feb 24, 2025

Made the creative item tab correctly use the lang entry for its name, moved item tooltips into lang entries, and added optional tooltip customization for modpack devs.

Screenshot_20250224_213534
You still need to press shift to see the tooltip in the above screenshot

… in gem tooltips, made gem tooltips customizable
@SwanX1 SwanX1 requested review from Dariensg and nekomaster1000 and removed request for Dariensg February 24, 2025 19:41
@SwanX1
Copy link
Member Author

SwanX1 commented Feb 24, 2025

@nekomaster1000 I hope this PR is acceptable to the development of Resurvival (as opposed to auto-generated tooltips)

@SwanX1 SwanX1 changed the title Fixed item tab and tooltip translations, customizable tooltips [1.20.1] Fixed item tab and tooltip translations, customizable tooltips Feb 24, 2025
@SwanX1 SwanX1 removed the request for review from nekomaster1000 February 24, 2025 19:50
@Jonathing Jonathing dismissed their stale review February 24, 2025 20:01

The reviewed changes were intentionally made.

Comment on lines +23 to +25
for (String line : tooltipText.split("\n")) {
tooltip.add(Component.literal(line));
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this will not preserve color codes at the beginning of the string in the lang json. You should make sure to communicate this somehow.

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.

3 participants