MINOR: Ship stat labels in UIManager show incorrect casing #8

Closed
opened 2026-05-11 06:16:43 +00:00 by Mark · 0 comments
Owner

Description

In _refreshShipSelect() at UIManager.js line 372, ship stat keys are converted to labels via:

label.textContent = key.charAt(0).toUpperCase() + key.slice(1);

This produces ugly labels like:

  • RcsPower (should be "RCS Power")
  • GTolerance (should be "G-Tolerance")
  • HullHp (should be "Hull HP")
  • DragCoeff (should be "Drag Coeff")

Fix

Add a label mapping object or use a smarter camelCase-to-words conversion.

## Description In `_refreshShipSelect()` at UIManager.js line 372, ship stat keys are converted to labels via: ```js label.textContent = key.charAt(0).toUpperCase() + key.slice(1); ``` This produces ugly labels like: - `RcsPower` (should be "RCS Power") - `GTolerance` (should be "G-Tolerance") - `HullHp` (should be "Hull HP") - `DragCoeff` (should be "Drag Coeff") ## Fix Add a label mapping object or use a smarter camelCase-to-words conversion.
Mark closed this issue 2026-05-11 14:02:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/gravity-racer#8
No description provided.