fheroes2 icon indicating copy to clipboard operation
fheroes2 copied to clipboard

Minor chest dialog changes

Open Cheerfulbull opened this issue 1 year ago • 4 comments

Close #9024 by centring the XP icon and text and changing the XP message to "XP Needed". One problem: the XP message, when centred, becomes very cramped (comes very close to the edge). What would be the best way to fix this? Thank you.

Cheerfulbull avatar Aug 04 '24 22:08 Cheerfulbull

Hi @Cheerfulbull I suggest we limit the scope of this PR to #9025 and create a separate PR for #9024. The idea with the phrase "XP needed:" is questionable in general, because:

  • The string is getting longer without explicit necessity;
  • It is in English that there is a convenient two-letter abbreviation "XP", meaning "experience". In other languages, there may not be such a convenient short abbreviation, that is, we get a localization issue out of the blue.

oleg-derevenetz avatar Aug 04 '24 22:08 oleg-derevenetz

Hi @Cheerfulbull I suggest we limit the scope of this PR to #9025 and create a separate PR for #9024. The idea with the phrase "XP needed:" is questionable in general, because:

  • The string is getting longer without explicit necessity;
  • It is in English that there is a convenient two-letter abbreviation "XP", meaning "experience". In other languages, there may not be such a convenient short abbreviation, that is, we get a localization issue out of the blue.

Alright, thank you, I updated the code and removed the text change, the updated PR description would then be:

Close #9025 by centring the XP icon and text.

Cheerfulbull avatar Aug 04 '24 23:08 Cheerfulbull

If I understand correctly what the issue is, I suppose @LeHerosInconnu will say they're still not centered. With this PR:

chest

@LeHerosInconnu what do you think?

oleg-derevenetz avatar Aug 05 '24 11:08 oleg-derevenetz

Hello @Cheerfulbull and @oleg-derevenetz,

If I understand correctly what the issue is, I suppose @LeHerosInconnu will say they're still not centered. With this PR:

chest

@LeHerosInconnu what do you think?

Effectively, you can see even with the naked eye that graphics and texts are not centered horizontally in relation to the respective buttons. :)

Centering chest elements 01

LeHerosInconnu avatar Aug 08 '24 12:08 LeHerosInconnu

Hi @LeHerosInconnu , does this change fixes the original problem?

ihhub avatar Oct 02 '25 06:10 ihhub

Hello @ihhub,

Hi @LeHerosInconnu , does this change fixes the original problem?

Okay, I'll test it when the conflicts will be resolved.

LeHerosInconnu avatar Oct 03 '25 06:10 LeHerosInconnu

@LeHerosInconnu , actually can you please check the latest snapshot? I believe we might have fixed it.

ihhub avatar Oct 03 '25 07:10 ihhub

Closing this pull request as the original problem was fixed in https://github.com/ihhub/fheroes2/pull/9103

ihhub avatar Oct 03 '25 07:10 ihhub