Skip to content

Commit

Permalink
more tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Nov 30, 2024
1 parent 8b4ffea commit 52dc813
Show file tree
Hide file tree
Showing 12 changed files with 64 additions and 3 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
65 changes: 63 additions & 2 deletions src/components/setup/TilesSetup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@
<AppIcon v-if="index == 6" type="tech-advanced-tile" :name="`${id}${id==7 && hasLostFleet ?'-lost-fleet':''}`" extension="webp" class="techAdvanced"/>
</template>
</div>
<div class="lostFleetAutomaTiles">
<AppIcon class="board" name="research-board-bottem-right-edge" extension="webp"/>
<template v-for="(ship,index) of lostFleetShips" :key="ship">
<AppIcon v-if="index < 3" class="tile" type="lost-fleet-ship-automa" :name="`${ship}${index+1==lostFleetShipAutomaTileActive ? '-active' : ''}`" extension="webp"/>
</template>
</div>
<div class="lostFleetEconomyOverlay">
<AppIcon class="board" name="research-board-economy-overlay-background" extension="webp"/>
<AppIcon class="tile" type="lost-fleet-economy-overlay" :name="`${lostFleetEconomyOverlay}`" extension="webp"/>
</div>
</template>

</div>
Expand Down Expand Up @@ -197,12 +207,14 @@ export default defineComponent({
const techStandardLostFleetTiles = ref(rollDiceMultiDifferentValue(TECH_STANDARD_LOST_FLEET_TILE_TOTAL, TECH_STANDARD_LOST_FLEET_TILE_COUNT))
const federationTokenLostFleetTiles = ref(rollDiceMultiDifferentValue(FEDERATION_TOKEN_LOST_FLEET_TOTAL, FEDERATION_TOKEN_LOST_FLEET_COUNT))
const lostFleetTwilightArtifactTiles = ref(rollDiceMultiDifferentValue(LOST_FLEET_TWILIGHT_ARTIFACT_TOTAL, LOST_FLEET_TWILIGHT_ARTIFACT_COUNT))
const lostFleetShipAutomaTileActive = ref(rollDice(3))
const lostFleetEconomyOverlay = ref(rollDice(2))
return { t, state, totalPlayerCount, roundBoosterCount, hasLostFleet,
scoringRoundTilesAll, scoringFinalTilesAll, roundBoosterTotal, techAdvancedTileTotal, techAdvancedTileCount,
scoringRoundTiles, scoringFinalTiles, scoringRoundTilesSelection, scoringFinalTilesSelection,
researchFederationToken, roundBoosterTiles, techStandardTiles, techAdvancedTiles, techStandardLostFleetTiles,
federationTokenLostFleetTiles, lostFleetTwilightArtifactTiles }
federationTokenLostFleetTiles, lostFleetTwilightArtifactTiles, lostFleetShipAutomaTileActive, lostFleetEconomyOverlay }
},
computed: {
gameBoardPlayerCount(): string {
Expand Down Expand Up @@ -275,6 +287,8 @@ export default defineComponent({
this.techStandardLostFleetTiles = rollDiceMultiDifferentValue(TECH_STANDARD_LOST_FLEET_TILE_TOTAL, TECH_STANDARD_LOST_FLEET_TILE_COUNT)
this.federationTokenLostFleetTiles = rollDiceMultiDifferentValue(FEDERATION_TOKEN_LOST_FLEET_TOTAL, FEDERATION_TOKEN_LOST_FLEET_COUNT)
this.lostFleetTwilightArtifactTiles = rollDiceMultiDifferentValue(LOST_FLEET_TWILIGHT_ARTIFACT_TOTAL, LOST_FLEET_TWILIGHT_ARTIFACT_COUNT)
this.lostFleetShipAutomaTileActive = rollDice(3)
this.lostFleetEconomyOverlay = rollDice(2)
}
},
mounted() {
Expand Down Expand Up @@ -376,7 +390,7 @@ li {
.lostFleetShipWrapper {
width: 100%;
overflow-x: auto;
margin-bottom: 0.5rem;
padding-bottom: 10px;
}
.lostFleetShip {
position: relative;
Expand Down Expand Up @@ -440,6 +454,8 @@ li {
}
}
.lostFleetScoringExtension {
display: inline-block;
margin-right: 10px;
position: relative;
width: 320px;
.board {
Expand All @@ -454,4 +470,49 @@ li {
filter: drop-shadow(5px 5px 4px #555);
}
}
.lostFleetAutomaTiles {
display: inline-block;
margin-right: 10px;
position: relative;
width: 320px;
height: 216px;
padding-top: 50px;
padding-left: 52px;
.board {
position: absolute;
left: 0;
top: 0;
width: 100%;
opacity: 60%;
z-index: -10;
filter: drop-shadow(5px 5px 4px #555);
}
.tile {
width: 75px;
border-radius: 5px;;
filter: drop-shadow(5px 5px 4px #555);
}
}
.lostFleetEconomyOverlay {
display: inline-block;
margin-right: 10px;
position: relative;
width: 150px;
height: 173px;
padding-top: 28px;
padding-left: 60px;
.board {
position: absolute;
left: 0;
top: 0;
width: 100%;
opacity: 60%;
z-index: -10;
}
.tile {
width: 65px;
border-radius: 5px;;
filter: drop-shadow(5px 5px 4px #555);
}
}
</style>
2 changes: 1 addition & 1 deletion src/services/enum/LostFleetShip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*/
enum LostFleetShip {
REBELLION = 'rebellion',
TFMARS = 'tfmars',
ECLIPSE = 'eclipse',
TFMARS = 'tfmars',
TWILIGHT = 'twilight'
}
export default LostFleetShip

0 comments on commit 52dc813

Please sign in to comment.