diff --git a/app.vue b/app.vue index ae87610..1d03985 100644 --- a/app.vue +++ b/app.vue @@ -1,8 +1,10 @@ - - - - HIDDEN - + + + + @@ -53,6 +54,11 @@ function contextmenu(e: MouseEvent) { outline-offset: -2px; } +.card_image.locked { + outline: 2px solid green; + outline-offset: -2px; +} + .card_image { max-height: 150px; } diff --git a/components/CardSlot.vue b/components/CardSlot.vue index d338add..892be42 100644 --- a/components/CardSlot.vue +++ b/components/CardSlot.vue @@ -14,16 +14,19 @@ const wrapped = ref(false) {{ props.stack?.length }} + - - - - - - + - + + + + + + + + \ No newline at end of file diff --git a/components/GameBoard.vue b/components/GameBoard.vue index 359e46f..ea90f7f 100644 --- a/components/GameBoard.vue +++ b/components/GameBoard.vue @@ -2,9 +2,10 @@ const props = defineProps(['game']) const self = useState('self') const gameObject = useState<{ [key: string]: any }>('gameObject') +const cards = useState<{ [key: string]: any }>('cards') const socket = useState('socket') -const isTurn = computed(() => self.value && props.game?.started && (gameObject.value[self.value]?.team == props.game.turn)) +const isTurn = computed(() => self.value && props.game?.started && (gameObject.value[self.value]?.team == props.game.current_turn)) async function buy(cardId: string) { socket.value.send(JSON.stringify({ @@ -14,22 +15,6 @@ async function buy(cardId: string) { })) } -async function buy_in_hand(cardId: string) { - socket.value.send(JSON.stringify({ - type: "temp_action", - data_type: "buy_in_hand", - data: cardId - })) -} - -async function buy_on_stack(cardId: string) { - socket.value.send(JSON.stringify({ - type: "temp_action", - data_type: "buy_on_stack", - data: cardId - })) -} - async function endTurn() { socket.value.send(JSON.stringify({ type: "action", @@ -41,8 +26,7 @@ async function endTurn() { - - + END TURN SPECTATOR MODE @@ -54,12 +38,12 @@ async function endTurn() { BUY - + @@ -71,17 +55,17 @@ async function endTurn() { BUY - + - + diff --git a/components/PlayerSlot.vue b/components/PlayerSlot.vue index c16ac17..1e6a53f 100644 --- a/components/PlayerSlot.vue +++ b/components/PlayerSlot.vue @@ -1,11 +1,15 @@