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

Fixed text wrap obtaining the incorrect glyph width #5620

Conversation

AsparagusEduardo
Copy link
Collaborator

@AsparagusEduardo AsparagusEduardo commented Oct 30, 2024

Description

Due to an implementation error, every glyph was considered of width 3.
Also, changed the widths of CHAR_PROMPT_CLEAR to 8 to account for the down arrow sprite and removed a DebugPrintf left in the code.

Images

Before vs after
image image

Differences in widths of glyphs
image

Issue(s) that this PR fixes

Fixes #5616

People who collaborated with me in this PR

@AlexOn1ine for their help verifying that the fix works with one of his custom strings.

Discord contact info

AsparagusEduardo

@AsparagusEduardo AsparagusEduardo added this to the 1.10 milestone Oct 30, 2024
@AsparagusEduardo AsparagusEduardo added the bugfix Bugfixes label Oct 30, 2024
@AlexOn1ine AlexOn1ine merged commit ac1dd85 into rh-hideout:upcoming Nov 1, 2024
1 check passed
@AsparagusEduardo AsparagusEduardo added the category: battle-mechanic Pertains to battle mechanics label Dec 1, 2024
@AsparagusEduardo AsparagusEduardo deleted the _RHH/pr/upcoming/fixBattleStringWrap branch December 9, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Bugfixes category: battle-mechanic Pertains to battle mechanics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants