mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-28 16:38:02 +00:00
Add settings toggle for troop advantage display
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user