apetavern / grubs

A worms-inspired artillery game for s&box with randomly generated levels.
MIT License
30 stars 7 forks source link

fix: Enlarge GrubWorldPanel to fit at least 10 char names #332

Closed damienfamed75 closed 10 months ago

damienfamed75 commented 10 months ago
Given you input a 10 character grub name
  When you enter the game
  Then you should see the 10 character grub name on your grub

This PR extends the PanelBounds on the GrubWorldPanel to fit the largest grub name you can input in the menu. If you somehow have a large enough grub name that's beyond 10 characters then an ellipsis will show as normal.

before:

image

after:

image