diff --git a/components/CardPreview.vue b/components/CardPreview.vue index 4a894a0..7195e0e 100644 --- a/components/CardPreview.vue +++ b/components/CardPreview.vue @@ -5,9 +5,13 @@ import type { Card } from '~/netcode/Card'; export interface Props { data: Card | null | undefined locked?: boolean + wrapped?: boolean } -const props = defineProps() +const props = withDefaults(defineProps(), { + wrapped: () => false, +}) + const emit = defineEmits(["click"]) @@ -24,17 +28,23 @@ function contextmenu(e: MouseEvent) { buttonsElement.value?.setAttribute("style", `top:${e.clientY + 10}px;left:${e.clientX + 10}px`) rightClicked.value = true } + +const rotation = ref(0) + +onBeforeUpdate(() => { + rotation.value = Math.random() > .5 ? 2 : -2 +}) \ No newline at end of file diff --git a/components/GameBoard.vue b/components/GameBoard.vue index 031c0f2..1b91544 100644 --- a/components/GameBoard.vue +++ b/components/GameBoard.vue @@ -14,8 +14,29 @@ const isTurn = computed(() => goStore.self && goStore.game?.started && (goStore.
market_amount = {{ goStore.game?.market_stack?.length }}
- market =
+ + + +
+
-
- gems = - - -
@@ -70,7 +69,11 @@ const isTurn = computed(() => goStore.self && goStore.game?.started && (goStore. \ No newline at end of file diff --git a/components/PlayerList.vue b/components/PlayerList.vue index d995439..630c519 100644 --- a/components/PlayerList.vue +++ b/components/PlayerList.vue @@ -7,5 +7,5 @@ import goStore from '@/netcode';
- + \ No newline at end of file diff --git a/components/PlayerSlot.vue b/components/PlayerSlot.vue index 08e983d..1ded9b9 100644 --- a/components/PlayerSlot.vue +++ b/components/PlayerSlot.vue @@ -63,8 +63,7 @@ const discard_unwrapped = ref(false)
effects_availables =
- @@ -112,46 +111,15 @@ const discard_unwrapped = ref(false)
- stack = + -
- discard = - {{ props.player.discard_pile.length }} - - - + - - - - + diff --git a/components/SelfView.vue b/components/SelfView.vue index 724ae91..dc3cc56 100644 --- a/components/SelfView.vue +++ b/components/SelfView.vue @@ -1,36 +1,23 @@