mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-17 05:34:37 +00:00
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  - 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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user