mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-20 19:20:27 +00:00
hit space bar for alternate view
This commit is contained in:
@@ -84,5 +84,9 @@ export interface Theme {
|
||||
backgroundColor(): Colord;
|
||||
falloutColor(): Colord
|
||||
font(): string;
|
||||
// unit color for alternate view
|
||||
selfColor(): Colord
|
||||
allyColor(): Colord
|
||||
enemyColor(): Colord
|
||||
}
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@ export const devConfig = new class extends DefaultConfig {
|
||||
lobbyLifetime(): number {
|
||||
return 10 * 1000
|
||||
}
|
||||
// tradeShipSpawnRate(): number {
|
||||
// return 10
|
||||
// }
|
||||
tradeShipSpawnRate(): number {
|
||||
return 10
|
||||
}
|
||||
boatMaxDistance(): number {
|
||||
return 5000
|
||||
}
|
||||
|
||||
@@ -122,6 +122,11 @@ export const pastelTheme = new class implements Theme {
|
||||
colord({ r: 170, g: 150, b: 170 }) // Dusty Rose
|
||||
];
|
||||
|
||||
private _selfColor = colord({ r: 0, g: 255, b: 0 })
|
||||
private _allyColor = colord({ r: 255, g: 255, b: 0 })
|
||||
private _enemyColor = colord({ r: 255, g: 0, b: 0 })
|
||||
|
||||
|
||||
playerInfoColor(id: PlayerID): Colord {
|
||||
return colord({ r: 50, g: 50, b: 50 })
|
||||
}
|
||||
@@ -199,4 +204,14 @@ export const pastelTheme = new class implements Theme {
|
||||
font(): string {
|
||||
return "Overpass, sans-serif";
|
||||
}
|
||||
|
||||
selfColor(): Colord {
|
||||
return this._selfColor
|
||||
}
|
||||
allyColor(): Colord {
|
||||
return this._allyColor
|
||||
}
|
||||
enemyColor(): Colord {
|
||||
return this._enemyColor
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user