Skip to content

Commit

Permalink
disable other game mode
Browse files Browse the repository at this point in the history
  • Loading branch information
s0er3n committed Dec 30, 2023
1 parent f182c04 commit 85a3d5e
Show file tree
Hide file tree
Showing 3 changed files with 673 additions and 802 deletions.
7 changes: 0 additions & 7 deletions Frontend/src/lib/components/ChangeGameMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,3 @@
export let gameMode: "gah" | "game";
</script>

<button
class="btn w-full"
disabled={!$api.isHost}
on:click={() => {
api.player.changeGameMode(gameMode);
}}>change game mode</button
>
16 changes: 0 additions & 16 deletions Frontend/src/lib/components/Login.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,6 @@
</button>
</li>
</div>
<div class="indicator w-full">
<li class="">
<span class="indicator-item badge badge-info">BETA</span>
<button
on:click={() => {
if (api.player) {
$api.player.host(privateLobby, "gah");
}
}}
class="btn btn-primary w-full h-fit p-2"
>
Create GeoBingo Against Humanity Game (not affilated with Cards
Against Humanity)</button
>
</li>
</div>
<div class="indicator w-full">
<li class="w-full">
<span class="indicator-item badge badge-info">BETA</span>
Expand Down
Loading

0 comments on commit 85a3d5e

Please sign in to comment.