Chaosforge Forum

Jupiter Hell => Bug Reports => Topic started by: thelaptop on July 16, 2021, 23:11

Title: [0.9.11a] 1000+ Ammo Breaks UI Slightly
Post by: thelaptop on July 16, 2021, 23:11
That closing parenthesis overflowed into the next line when the ammo hits 4 digits.  I'm proposing that any ammo count that exceeds 3 digits should have their significant figures reduced, so something like using "(1k+)" or something until the number of digits drop to less than 3 again.

Title: Re: [0.9.11a] 1000+ Ammo Breaks UI Slightly
Post by: Tormuse on July 17, 2021, 04:46
Or just shift it over to the left one character when it hits four digits?
Title: Re: [0.9.11a] 1000+ Ammo Breaks UI Slightly
Post by: Sereg on July 17, 2021, 12:35
Nice catch. Stuff like that is why I was really grateful for my alpha testers back when I was working on my roguelike - they would manage to discover things I hadn't even thought about planning for.

It does look like there's some extra room to the left there, and maybe the whole thing could be shifted trivially - but I would imagine having that much ammo is an edge case, and it might be better handled that way as laptop recommends; that is, sanitize the output so that it's always 3 characters or less.

Either one is equally viable as a solution IMO, so it probably comes down to which is simpler to implement.
Title: Re: [0.9.11a] 1000+ Ammo Breaks UI Slightly
Post by: kitchen_ace on August 26, 2021, 09:38
I noticed that adding a second chamber mod to the BFT causes a similar problem, on account of the current weapon ammo being 3 digits.