maxim-zhao / psrp

Phantasy Star Retranslation Project
http://www.smspower.org/Translations/PhantasyStar-SMS-EN
65 stars 10 forks source link

(Feature Request) Variable width for shop inventory windows #79

Closed gensakudan closed 2 years ago

gensakudan commented 2 years ago

For translations that have longer item names (e.g. German), it tends to look a little unsightly when the items a shop has in stock all have relatively short names, as it leads to a lot of empty space between the item names and the prices, which also hampers readability a bit.

If possible, I think the width of the shop inventory window should be relative to the length of the longest item name it contains.

maxim-zhao commented 2 years ago

Some progress... ps1jert-91 ps1jert-92 ps1jert-93 ps1jert-96 ps1jert-95 ps1jert-94

maxim-zhao commented 2 years ago

I leave space for prices up to 5 digits, with one space after the text, for the few items that need it (IceDecker, Diamond Armor). I don't feel like cramming it even closer by checking for the length of the price digits...