Fix small UI issues (#2845)

## Description:

Changes a few small UI issues:
- Player info text transparency made it less legible:
<img width="367" height="445" alt="image"
src="https://github.com/user-attachments/assets/a08b2808-74a5-4783-93f3-182d97b36055"
/>

- Fix naval invasion target end fade which didn't work previously


![ui_fade](https://github.com/user-attachments/assets/a4867257-0962-4c0d-9e1c-bcac7eba8089)


- Rename rendering function since the UI layer doesn't only handle
target

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

IngloriousTom
This commit is contained in:
DevelopingTom
2026-01-09 20:39:04 -08:00
committed by GitHub
parent dc118708c0
commit a26590473c
3 changed files with 17 additions and 26 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export class Target implements UIElement {
let t: number;
if (this.ended) {
// end animation
t = Math.max(0, 1 - this.lifeTime / this.animationDuration);
t = Math.max(0, 1 - this.animationElapsedTime / this.animationDuration);
} else {
t = 1; // No start fade feels more reactive
}