Skip to content

Commit

Permalink
terraforming reference
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Nov 30, 2024
1 parent 5f423db commit 06bf9e9
Show file tree
Hide file tree
Showing 22 changed files with 13 additions and 2 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 removed src/assets/icons/terraforming-reference/firaks.jpg
Binary file not shown.
Binary file not shown.
Binary file removed src/assets/icons/terraforming-reference/geodens.jpg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed src/assets/icons/terraforming-reference/itars.jpg
Binary file not shown.
Binary file not shown.
Binary file removed src/assets/icons/terraforming-reference/taklons.jpg
Binary file not shown.
Binary file not shown.
Binary file removed src/assets/icons/terraforming-reference/terrans.jpg
Binary file not shown.
Binary file not shown.
Binary file removed src/assets/icons/terraforming-reference/xenos.jpg
Binary file not shown.
Binary file not shown.
15 changes: 13 additions & 2 deletions src/components/turn/supportInfo/SupportInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:type="botAction.numberedSelection" :count="botAction.numberedSelectionCount"/>
</div>
<div v-if="terraformingReference && navigationState.botFaction" >
<AppIcon type="terraforming-reference" :name="navigationState.botFaction" extension="jpg" class="terraformingReference"/>
<AppIcon :type="`terraforming-reference${hasLostFleet ? '-lost-fleet' : ''}`" :name="navigationState.botFaction" extension="webp" class="terraformingReference"/>
</div>
</div>
</template>
Expand All @@ -24,6 +24,8 @@ import ResearchArea from './ResearchArea.vue'
import NumberedSelection from './NumberedSelection.vue'
import NavigationState from '@/util/NavigationState'
import AppIcon from '@/components/structure/AppIcon.vue'
import { useStateStore } from '@/store/state'
import Expansion from '@/services/enum/Expansion'
export default defineComponent({
name: 'SupportInfo',
Expand All @@ -35,6 +37,10 @@ export default defineComponent({
NumberedSelection,
AppIcon
},
setup() {
const state = useStateStore()
return { state }
},
props: {
botAction: {
type: Object as PropType<BotAction>,
Expand Down Expand Up @@ -68,6 +74,11 @@ export default defineComponent({
type: Boolean,
required: false
}
},
computed: {
hasLostFleet() : boolean {
return this.state.setup.expansions.includes(Expansion.LOST_FLEET)
}
}
})
</script>
Expand All @@ -80,6 +91,6 @@ export default defineComponent({
}
}
.terraformingReference {
width: 4rem;
height: 160px;
}
</style>

0 comments on commit 06bf9e9

Please sign in to comment.