mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 13:10:42 +00:00
update non commercial license
This commit is contained in:
@@ -31,7 +31,7 @@ import { SpawnAd } from "./layers/SpawnAd";
|
||||
import { SpawnTimer } from "./layers/SpawnTimer";
|
||||
import { StructureIconsLayer } from "./layers/StructureIconsLayer";
|
||||
import { StructureLayer } from "./layers/StructureLayer";
|
||||
import { TeamStats } from "./layers/TeamStats";
|
||||
import { TeamLeaderboard } from "./layers/TeamStats";
|
||||
import { TerrainLayer } from "./layers/TerrainLayer";
|
||||
import { TerritoryLayer } from "./layers/TerritoryLayer";
|
||||
import { UILayer } from "./layers/UILayer";
|
||||
@@ -88,8 +88,10 @@ export function createRenderer(
|
||||
}
|
||||
gameLeftSidebar.game = game;
|
||||
|
||||
const teamStats = document.querySelector("team-stats") as TeamStats;
|
||||
if (!emojiTable || !(teamStats instanceof TeamStats)) {
|
||||
const teamStats = document.querySelector(
|
||||
"team-leaderboard",
|
||||
) as TeamLeaderboard;
|
||||
if (!emojiTable || !(teamStats instanceof TeamLeaderboard)) {
|
||||
console.error("EmojiTable element not found in the DOM");
|
||||
}
|
||||
teamStats.eventBus = eventBus;
|
||||
|
||||
@@ -141,10 +141,10 @@ export class GameLeftSidebar extends LitElement implements Layer {
|
||||
</div>
|
||||
<div class="block lg:flex flex-wrap gap-2">
|
||||
<leader-board .visible=${this.isLeaderboardShow}></leader-board>
|
||||
<team-stats
|
||||
<team-leaderboard
|
||||
class=${`flex-1 ${this.isTeamLeaderboardShow ? "sm:mt-4 lg:mt-12" : ""}`}
|
||||
.visible=${this.isTeamLeaderboardShow && this.isTeamGame}
|
||||
></team-stats>
|
||||
></team-leaderboard>
|
||||
</div>
|
||||
<slot></slot>
|
||||
</aside>
|
||||
|
||||
@@ -15,8 +15,8 @@ interface TeamEntry {
|
||||
players: PlayerView[];
|
||||
}
|
||||
|
||||
@customElement("team-stats")
|
||||
export class TeamStats extends LitElement implements Layer {
|
||||
@customElement("team-leaderboard")
|
||||
export class TeamLeaderboard extends LitElement implements Layer {
|
||||
public game: GameView;
|
||||
public eventBus: EventBus;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user