diff --git a/app.vue b/app.vue index 7baa09e..a38bd91 100644 --- a/app.vue +++ b/app.vue @@ -18,3 +18,9 @@ let username = ref('legonzaur') + + \ No newline at end of file diff --git a/components/CardPreview.vue b/components/CardPreview.vue index 92a4566..4a894a0 100644 --- a/components/CardPreview.vue +++ b/components/CardPreview.vue @@ -3,7 +3,7 @@ import type { Card } from '~/netcode/Card'; export interface Props { - data?: Card | null + data: Card | null | undefined locked?: boolean } @@ -15,7 +15,7 @@ const buttonsElement = ref(null) const rightClicked = ref(false) function cardClick() { - if (props.data == null) return + if (!props.data) return emit("click") } diff --git a/components/CardSlot.vue b/components/CardSlot.vue index 29ae28d..fbb986b 100644 --- a/components/CardSlot.vue +++ b/components/CardSlot.vue @@ -9,20 +9,19 @@ const props = withDefaults(defineProps(), { stack: () => [], }) -const wrapped = ref(false) +const unwrapped = ref(false) @@ -134,6 +173,7 @@ const discard_unwrapped = ref(false) display: flex; flex-direction: row; align-items: flex-start; + justify-content: center; } .turn_icon img { diff --git a/components/SelfView.vue b/components/SelfView.vue index f304269..724ae91 100644 --- a/components/SelfView.vue +++ b/components/SelfView.vue @@ -61,16 +61,15 @@ const discard_unwrapped = ref(false)
+ - -
discard_markers = {{ props.player.turn.discard_markers }}
@@ -118,7 +117,7 @@ const discard_unwrapped = ref(false) {{ props.player.discard_pile.length }} - + @@ -128,7 +127,7 @@ const discard_unwrapped = ref(false) @click="useEffect(goStore.self!.turn.effects_availables.find(e => (e.effect == CardEffects.SACRIFICE) && e.usable)!, props.player.discard_pile.at(-1))">SACRIFICE -