[Feat] : move end turn button, remove self statistics overlay
release-tag / release-image (push) Successful in 29s
release-tag / release-image (push) Successful in 29s
Closes #18
This commit is contained in:
@@ -19,7 +19,6 @@ const discard_unwrapped = ref<boolean>(false)
|
|||||||
<div id="current_player">
|
<div id="current_player">
|
||||||
<PlayerSlot v-for="p in current_players" :player="p"></PlayerSlot>
|
<PlayerSlot v-for="p in current_players" :player="p"></PlayerSlot>
|
||||||
</div>
|
</div>
|
||||||
<SelfView></SelfView>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -92,14 +92,18 @@ const prepare_champion = (target: Card) => run_effect(CardEffects.PREPARE, targe
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div id="player_banner">
|
<div id="player_banner">
|
||||||
<div class="ready-bubble not-ready" v-if="!props.player.ready && !goStore.current_game?.started">Pas encore prêt...</div>
|
<div class="ready-bubble not-ready" v-if="!props.player.ready && !goStore.current_game?.started">Pas encore
|
||||||
|
prêt...
|
||||||
|
</div>
|
||||||
<div class="ready-bubble ready" v-if="props.player.ready && !goStore.current_game?.started">Prêt!</div>
|
<div class="ready-bubble ready" v-if="props.player.ready && !goStore.current_game?.started">Prêt!</div>
|
||||||
<div id="player_info">
|
<div id="player_info">
|
||||||
<PlayerIcon :player="props.player"></PlayerIcon>
|
<PlayerIcon :player="props.player"></PlayerIcon>
|
||||||
</div>
|
</div>
|
||||||
<div id="player_stats">
|
<div id="player_stats">
|
||||||
|
<template v-if="goStore.current_game?.started">
|
||||||
<PlayerStats v-if="goStore.current_game?.started" :player="props.player"></PlayerStats>
|
<PlayerStats v-if="props.player != goStore.self" :player="props.player"></PlayerStats>
|
||||||
|
<SelfView v-if="props.player === goStore.self" :player="props.player"></SelfView>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="current_player_board">
|
<div id="current_player_board">
|
||||||
|
|||||||
+4
-21
@@ -30,24 +30,17 @@ function checkEndTurn() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div :class="'player ' + (isTurn ? 'turn' : '')">
|
|
||||||
<button v-if="goStore.self && goStore.self!.turn && goStore.self?.team != goStore.self?.team" id="end_turn"
|
|
||||||
@click="useEffect(goStore.self.turn.find_effect(CardEffects.MAKE_DISCARD)!, goStore.self)"
|
|
||||||
:disabled="!goStore.self.turn.find_effect(CardEffects.MAKE_DISCARD)">
|
|
||||||
make Discard</button>
|
|
||||||
<div id="turn_data">
|
|
||||||
<div class="warning" v-if="warning">/!\<br> Effets restants!<br> /!\</div>
|
|
||||||
<button id="end_turn" v-if="isTurn" @click="checkEndTurn">END TURN</button>
|
|
||||||
<PlayerStats v-if="goStore.self" :player='goStore.self'></PlayerStats>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<PlayerStats v-if="goStore.self" :player='goStore.self'></PlayerStats>
|
||||||
|
<button id="end_turn" v-if="isTurn" @click="checkEndTurn">END TURN</button>
|
||||||
|
<div class="warning" v-if="warning">/!\<br> Effets restants!<br> /!\</div>
|
||||||
<div class="cards_container" id="self_hand">
|
<div class="cards_container" id="self_hand">
|
||||||
<CardPreview :card_id="c?.card_id" v-for=" c in goStore.self?.hand " @click="c && playCard(c)">
|
<CardPreview :card_id="c?.card_id" v-for=" c in goStore.self?.hand " @click="c && playCard(c)">
|
||||||
<button v-if="c && isTurn && goStore.self?.turn && (goStore.self.turn.discard_markers ?? 0) > 0"
|
<button v-if="c && isTurn && goStore.self?.turn && (goStore.self.turn.discard_markers ?? 0) > 0"
|
||||||
@click="discard(c!)">DISCARD</button>
|
@click="discard(c!)">DISCARD</button>
|
||||||
</CardPreview>
|
</CardPreview>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@@ -64,10 +57,6 @@ function checkEndTurn() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.player {
|
|
||||||
border-top: 5px solid black;
|
|
||||||
}
|
|
||||||
|
|
||||||
#play_all {
|
#play_all {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@@ -124,10 +113,6 @@ function checkEndTurn() {
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
#turn_data * {
|
|
||||||
margin: 2.5px 0 2.5px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#self_hand .card {
|
#self_hand .card {
|
||||||
transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
|
transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
@@ -139,8 +124,6 @@ function checkEndTurn() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.cards_container {
|
.cards_container {
|
||||||
min-width: 250px;
|
min-width: 250px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user