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

Some text fixes #731

Merged
merged 3 commits into from
May 23, 2024
Merged

Some text fixes #731

merged 3 commits into from
May 23, 2024

Conversation

HylianFreddy
Copy link
Collaborator

  • Reduce the maximum pixel width for text boxes that contain an item icon. Currently some messages without manual newlines look like this:
    text overflow

  • Fix Dark Link's name so it consistently uses the player name for all languages in the game's text boxes, while retaining the name "Link" for the spoiler log and custom menus. Currently the Dark Link Soul appears as Dark @ Soul in shops for non-English languages.

and keep "Link" in the item name for the spoiler log
for consistency with the other languages and the vanilla game

// For text boxes with an item icon, decrease max line pixel width to leave space for the icon
if (lastItemIcon != std::string::npos && (lastCaret == std::string::npos || lastItemIcon > lastCaret)) {
maxLinePixelWidth = 252;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Normally the text starts 56 pixels from the left of the screen, but with an icon it starts 104 pixels from the left instead, so 48 pixels further in. Any reason you reduced it by 35 pixels instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I tried some different values and converged on one that fixed all the overflowing texts while changing the least amount of already correct texts.
Reducing the length more would add more newlines where they're not needed, causing more conflicts with the manually inserted ones.

@HylianFreddy HylianFreddy merged commit 12cb7a0 into gamestabled:main May 23, 2024
2 checks passed
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.

2 participants