-
Notifications
You must be signed in to change notification settings - Fork 813
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
[Russian] text out of bounds in unique item stat window #7651
Comments
--- EN ---
UPD: with the inscription about absorbing damage from traps, I will also decide in the future. --- RU ---
Рекомендую закрыть это issue, т.к. проблема уже решена. По любым вопросам касательно русской локализации пиши мне в соц. сети - Дискорд, Телеграм, ВКонтакте. Везде я @Maderator3000 UPD: с надписью о поглощении урона от ловушек тоже в дальнейшем порешаю. |
@Maderator3000 we use english here |
I know, I just see that the guy is Russian and for his convenience I answered in Russian. In short: the problem is partially solved in the updated Russian localization, which I updated. A little later I will try to fix a couple more errors related to Russian localization that I know about. |
Pretty hard for us to know to close the issue or not if we can't understand what is being said. |
Oh, sorry. I'll take this into account in the future |
Lets keep it open till this part is also solved. Thanks for handling it and the quick response. @Riccila thank you for the nice bug report |
Got it, tomorrow after the exam (evening-night Moscow time) I'll fix the problem with the text about traps 🙃 |
A non-Russian specific issue here is that it clearly attempts to wrap the text but does so within incorrect boundaries. We should fix the boundaries passed to the text rendering function when drawing the unique item info text. |
The info window decoration is drawn here: Line 1748 in ccbf0fc
The text is drawn here: Line 4090 in ccbf0fc
The text rectangle needs to be adjusted to fit within the box. |
The fix might be to simply return Line 1762 in ccbf0fc
|
Should I fix the item's stat about absorbing half of the damage from traps at the localization level or wait for code-level edits? |
wait for code |
I'm not sure how the width of that bounding box compares to the info panel, but perhaps we should also consider allowing the text renderer to adjust character spacing. That said, it appears the last character gets cut off? Might need to look into that as well... EDIT: I guess if you look closely, the last character is getting wrapped and then clipped. The text rendering logic appears to be using the width of the first line to determine the spacing for multiline text. |
Dear developers. Two more screenshots. As I understand it, the problem is similar. It may have already been fixed. But I decided to reset the information anyway, in case it helps. |
To be clear, my screenshot was taken using a fairly recent test build. The screenshots Riccila shared just now appear to have been taken in a release build, because the text is rendering out of bounds to the left. I believe that behavior may have been fixed already since I didn't see it in the test build. My thinking is that it may be a good idea to compute text width based on the widest line rather than stopping at the first newline character. devilutionX/Source/engine/render/text_render.cpp Lines 513 to 514 in f7603b7
|
This may be a good time to implement floating info boxes for item information, perhaps as the only option. We can display only the item name in the control panel, then use a floating box with the panel/unique box information that dynamically stretches with the contents. The size limitations of the panel box and unique info box are just too restrictive and problematic, and aren't good for modding either. |
Any time would be a good time for that :) |
Dear developers, please note one more fact - I am attaching two screenshots. On one, it seems to me, the text is scaled and everything is perfectly visible on the other, it is not. In general, if a solution to the problem is found, it will be great. If everything has already been fixed, then consider that I just signaled. |
Feature Type
Bug
Describe
Good evening! Dear developers. There are two screenshots in the attachment. Is it possible to correct the position of the text in the description of the objects (language Russian). Specifically these, as well as possible descriptions of other unique things. Thank you in advance!The text was updated successfully, but these errors were encountered: