mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 00:11:56 +00:00
underscore density when over max defense
This commit is contained in:
@@ -307,6 +307,13 @@ export class NameLayer implements Layer {
|
||||
shieldNumber.style.fontSize = `${render.fontSize * 0.6}px`;
|
||||
shieldNumber.style.marginTop = `${-render.fontSize * 0.1}px`;
|
||||
shieldNumber.textContent = density;
|
||||
if (parseFloat(density) > 90) {
|
||||
shieldNumber.style.textDecoration = "underline";
|
||||
shieldNumber.style.fontWeight = "bold";
|
||||
} else {
|
||||
shieldNumber.style.textDecoration = "none";
|
||||
shieldNumber.style.fontWeight = "normal";
|
||||
}
|
||||
}
|
||||
|
||||
// Handle icons
|
||||
|
||||
Reference in New Issue
Block a user