Chaosforge Forum

  • November 02, 2024, 18:20
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: [0.9.11a] 1000+ Ammo Breaks UI Slightly  (Read 7533 times)

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2530
    • View Profile
[0.9.11a] 1000+ Ammo Breaks UI Slightly
« 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.

Logged
I computed, therefore I was.

Tormuse

  • Elder
  • General
  • *
  • *
  • Offline Offline
  • Posts: 1696
  • More Angelic than not
    • View Profile
Re: [0.9.11a] 1000+ Ammo Breaks UI Slightly
« Reply #1 on: July 17, 2021, 04:46 »

Or just shift it over to the left one character when it hits four digits?
Logged
Apostle Chaos Lt. General (0.9.9.7)
[26/26/26/26/18/9]
Check out my Youtube channel for videos of me playing DRL!  :)
https://www.youtube.com/channel/UCXOijubEijdnrOja0kxXTKQ/videos

Sereg

  • Chaos Acolyte
  • Greater Elder
  • Brigadier General
  • *
  • *
  • Offline Offline
  • Posts: 660
  • Angel of Overconfidence
    • View Profile
Re: [0.9.11a] 1000+ Ammo Breaks UI Slightly
« Reply #2 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.
Logged
[26|22|23|15|15|2]
Cyberdemon Chaos Colonel

Medals - DRL 27/43 | XA 16/31

kitchen_ace

  • Private FC
  • *
  • Offline Offline
  • Posts: 12
  • Lost Soul
    • View Profile
Re: [0.9.11a] 1000+ Ammo Breaks UI Slightly
« Reply #3 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.
Logged
Pages: [1]