Add settings toggle for troop advantage display

This commit is contained in:
ralfisalhon
2026-03-17 05:43:08 +00:00
parent d61e36633e
commit a768574d96
3 changed files with 36 additions and 0 deletions
+8
View File
@@ -89,6 +89,14 @@ export class UserSettings {
return this.get("settings.territoryPatterns", true);
}
troopAdvantageLayer() {
return this.get("settings.troopAdvantageLayer", true);
}
toggleTroopAdvantageLayer() {
this.set("settings.troopAdvantageLayer", !this.troopAdvantageLayer());
}
cursorCostLabel() {
const legacy = this.get("settings.ghostPricePill", true);
return this.get("settings.cursorCostLabel", legacy);