From cace5cf87464c38f0bf9b48317a509e311f9febc Mon Sep 17 00:00:00 2001 From: legonzaur Date: Sat, 27 Apr 2024 23:33:59 +0200 Subject: [PATCH 01/19] stuff wip --- components/CardSlot.vue | 11 +++++++-- components/PlayerSlot.vue | 49 ++++++++++++++++++++++++++++----------- 2 files changed, 45 insertions(+), 15 deletions(-) diff --git a/components/CardSlot.vue b/components/CardSlot.vue index 848c265..29ae28d 100644 --- a/components/CardSlot.vue +++ b/components/CardSlot.vue @@ -18,7 +18,7 @@ const wrapped = ref(false)
- + @@ -31,4 +31,11 @@ const wrapped = ref(false) - \ No newline at end of file + + + \ No newline at end of file diff --git a/components/PlayerSlot.vue b/components/PlayerSlot.vue index 33a1991..0114857 100644 --- a/components/PlayerSlot.vue +++ b/components/PlayerSlot.vue @@ -33,17 +33,32 @@ const discard_unwrapped = ref(false) @click="useEffect(goStore.self?.turn.effects_availables.find(e => (e.effect == CardEffects.DISCARD) && e.usable)!, props.player)" :disabled="!goStore.self?.turn.effects_availables.some(e => (e.effect == CardEffects.DISCARD) && e.usable)"> make Discard -
- heal_reserve = {{ props.player.turn.heal_reserve }}
- damage_reserve = {{ props.player.turn.damage_reserve }}
- gold_reserve = {{ props.player.turn.gold_reserve }}
- discard_markers = {{ props.player.turn.discard_markers }}
- effects_availables =
- +
+ {{ props.player.turn.heal_reserve }} + {{ props.player.turn.damage_reserve }} + {{ props.player.turn.gold_reserve }} + discard_markers = {{ props.player.turn.discard_markers }}
+ effects_availables =
+ -
+
+
+ +
+ heal_reserve = {{ props.player.turn.heal_reserve }}
+ damage_reserve = {{ props.player.turn.damage_reserve }}
+ gold_reserve = {{ props.player.turn.gold_reserve }}
+ discard_markers = {{ props.player.turn.discard_markers }}
+ effects_availables =
+ + +
@@ -54,7 +69,7 @@ const discard_unwrapped = ref(false)
hand =
- + @@ -66,7 +81,7 @@ const discard_unwrapped = ref(false)
board =
- @@ -111,7 +126,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 - 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 @@ \ No newline at end of file From c13f9de65ec01341196e4addf92e0ccb04d0b46e Mon Sep 17 00:00:00 2001 From: legonzaur Date: Thu, 2 May 2024 23:27:00 +0200 Subject: [PATCH 13/19] new layout for stack and discard --- components/PlayerSlot.vue | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/components/PlayerSlot.vue b/components/PlayerSlot.vue index 1ded9b9..de4b183 100644 --- a/components/PlayerSlot.vue +++ b/components/PlayerSlot.vue @@ -111,20 +111,30 @@ const discard_unwrapped = ref(false)
+
+ + + +
+
- - - + + +
- - -
\ No newline at end of file diff --git a/components/CardPreview.vue b/components/CardPreview.vue index e348a72..866cf39 100644 --- a/components/CardPreview.vue +++ b/components/CardPreview.vue @@ -110,6 +110,7 @@ watch( } #contextMenu { + z-index: 5; position: fixed; height: 100%; width: 100%; diff --git a/components/CardSlot.vue b/components/CardSlot.vue index 4d73951..ba3b025 100644 --- a/components/CardSlot.vue +++ b/components/CardSlot.vue @@ -28,4 +28,10 @@ const unwrapped = ref(false) - \ No newline at end of file + \ No newline at end of file diff --git a/components/GameBoard.vue b/components/GameBoard.vue index 06a550e..30a7db8 100644 --- a/components/GameBoard.vue +++ b/components/GameBoard.vue @@ -1,5 +1,5 @@ + + + + diff --git a/components/SelfView.vue b/components/SelfView.vue index 64f0874..a8e330b 100644 --- a/components/SelfView.vue +++ b/components/SelfView.vue @@ -1,5 +1,5 @@