mirror of
https://github.com/dtomlinson91/anno-production-chain-renderer.git
synced 2025-12-22 06:15:45 +00:00
Merge branch 'changes/info-card' into main
This commit is contained in:
@@ -5,9 +5,9 @@
|
|||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
<span>
|
<span>
|
||||||
{{ text }}
|
{{ textPre }}
|
||||||
<q-img :src="worldIcon" class="info-small-icon"></q-img>
|
<q-img :src="worldIcon" class="info-small-icon"></q-img>
|
||||||
production rates.
|
{{ textPost }}
|
||||||
</span>
|
</span>
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
@@ -18,6 +18,7 @@
|
|||||||
defineProps<{
|
defineProps<{
|
||||||
icon: string;
|
icon: string;
|
||||||
worldIcon: string;
|
worldIcon: string;
|
||||||
text: string;
|
textPre: string;
|
||||||
|
textPost: string;
|
||||||
}>();
|
}>();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -68,6 +68,18 @@ watchEffect(() => {
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon-regional-container {
|
||||||
|
margin-left: 45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-regional {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
position: absolute;
|
||||||
|
left: 0px;
|
||||||
|
top: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
.icon-flex-col {
|
.icon-flex-col {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -2,25 +2,32 @@ import * as icons from './icons';
|
|||||||
import fullChainMultiplierIcon from 'assets/productionChainMultiplier.svg';
|
import fullChainMultiplierIcon from 'assets/productionChainMultiplier.svg';
|
||||||
import { InfoCardItem, InfoCardWorldItem } from './models';
|
import { InfoCardItem, InfoCardWorldItem } from './models';
|
||||||
|
|
||||||
|
export const commonWorldItemData: InfoCardWorldItem[] = [
|
||||||
|
{
|
||||||
|
id: 'gold',
|
||||||
|
icon: icons.goldOreIcon,
|
||||||
|
textPre: 'Gold mines use New World',
|
||||||
|
textPost: 'production rates.',
|
||||||
|
worldIcon: icons.newWorldIcon
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
export const worldItemDataBase: InfoCardWorldItem[] = [
|
export const worldItemDataBase: InfoCardWorldItem[] = [
|
||||||
{
|
{
|
||||||
id: 'furs',
|
id: 'furs',
|
||||||
icon: icons.fursIcon,
|
icon: icons.fursIcon,
|
||||||
text: 'Furs use Old World',
|
textPre: 'Furs use Old World',
|
||||||
|
textPost: 'production rates.',
|
||||||
worldIcon: icons.oldWorldIcon
|
worldIcon: icons.oldWorldIcon
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'clay',
|
id: 'clay',
|
||||||
icon: icons.clayIcon,
|
icon: icons.clayIcon,
|
||||||
text: 'Clay uses Old World',
|
textPre: 'Represents a Clay Mine. A clay collector includes Enbesa',
|
||||||
worldIcon: icons.oldWorldIcon
|
textPost: 'icon.',
|
||||||
|
worldIcon: icons.enbesaIcon
|
||||||
},
|
},
|
||||||
{
|
...commonWorldItemData
|
||||||
id: 'gold',
|
|
||||||
icon: icons.goldOreIcon,
|
|
||||||
text: 'Gold mines use New World',
|
|
||||||
worldIcon: icons.newWorldIcon
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export const itemDataBase: InfoCardItem[] = [
|
export const itemDataBase: InfoCardItem[] = [
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ export interface InfoCardItem {
|
|||||||
export interface InfoCardWorldItem {
|
export interface InfoCardWorldItem {
|
||||||
id: string;
|
id: string;
|
||||||
icon: string;
|
icon: string;
|
||||||
text: string;
|
textPre: string;
|
||||||
|
textPost: string;
|
||||||
worldIcon: string;
|
worldIcon: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ export const productionChainsBase: TieredProductionChain[] = [
|
|||||||
productionChain: 'mudBricks',
|
productionChain: 'mudBricks',
|
||||||
chainMultiplier: '4',
|
chainMultiplier: '4',
|
||||||
mermaidDefinition: endent`
|
mermaidDefinition: endent`
|
||||||
flowchart LR; Clay(<span class='icon-flex-row'><img src='${icons.clayIcon}' class='icon-size' /><span class='icon-flex-col q-pl-sm'><span class='efficiency-perc'>25%</span><span class='ratio-count'>1</span></span></span>)
|
flowchart LR; Clay(<span class='icon-flex-row icon-regional-container'><img src='${icons.enbesaIcon}' class='icon-regional' /><img src='${icons.clayIcon}' class='icon-size' /><span class='icon-flex-col q-pl-sm'><span class='efficiency-perc'>25%</span><span class='ratio-count'>1</span></span></span>)
|
||||||
Teff(<img src='${icons.teffIcon}' class='icon-size' /><span class='ratio-count'>1</span>)
|
Teff(<img src='${icons.teffIcon}' class='icon-size' /><span class='ratio-count'>1</span>)
|
||||||
MudBricks(<img src='${icons.mudBricksIcon}' class='icon-size' /><span class='ratio-count'>1</span>)
|
MudBricks(<img src='${icons.mudBricksIcon}' class='icon-size' /><span class='ratio-count'>1</span>)
|
||||||
Clay & Teff --> MudBricks
|
Clay & Teff --> MudBricks
|
||||||
|
|||||||
@@ -591,7 +591,7 @@ export const productionChainsExpansions: TieredProductionChain[] = [
|
|||||||
flowchart LR
|
flowchart LR
|
||||||
Copper(<span class='icon-flex-row'><img src='${icons.copperIcon}' class='icon-size' /><span class='icon-flex-col q-pl-sm'><span class='efficiency-perc'>50%</span><span class='ratio-count'>1</span></span></span>)
|
Copper(<span class='icon-flex-row'><img src='${icons.copperIcon}' class='icon-size' /><span class='icon-flex-col q-pl-sm'><span class='efficiency-perc'>50%</span><span class='ratio-count'>1</span></span></span>)
|
||||||
Zinc(<span class='icon-flex-row'><img src='${icons.zincIcon}' class='icon-size' /><span class='icon-flex-col q-pl-sm'><span class='efficiency-perc'>50%</span><span class='ratio-count'>1</span></span></span>)
|
Zinc(<span class='icon-flex-row'><img src='${icons.zincIcon}' class='icon-size' /><span class='icon-flex-col q-pl-sm'><span class='efficiency-perc'>50%</span><span class='ratio-count'>1</span></span></span>)
|
||||||
Brass(<img src='${icons.zincIcon}' class='icon-size' /><span class='ratio-count'>1</span>)
|
Brass(<img src='${icons.brassIcon}' class='icon-size' /><span class='ratio-count'>1</span>)
|
||||||
Sand(<span class='icon-flex-row'><img src='${icons.sandIcon}' class='icon-size' /><span class='icon-flex-col q-pl-sm'><span class='efficiency-perc'>50%</span><span class='ratio-count'>1</span></span></span>)
|
Sand(<span class='icon-flex-row'><img src='${icons.sandIcon}' class='icon-size' /><span class='icon-flex-col q-pl-sm'><span class='efficiency-perc'>50%</span><span class='ratio-count'>1</span></span></span>)
|
||||||
Glass(<span class='icon-flex-row'><img src='${icons.glassIcon}' class='icon-size' /><span class='icon-flex-col q-pl-sm'><span class='efficiency-perc'>50%</span><span class='ratio-count'>1</span></span></span>)
|
Glass(<span class='icon-flex-row'><img src='${icons.glassIcon}' class='icon-size' /><span class='icon-flex-col q-pl-sm'><span class='efficiency-perc'>50%</span><span class='ratio-count'>1</span></span></span>)
|
||||||
Coal(<span class='icon-flex-row'><img src='${icons.coalIcon}' class='icon-size' /><span class='icon-flex-col q-pl-sm'><span class='efficiency-perc'>25%</span><span class='ratio-count'>1</span></span></span>)
|
Coal(<span class='icon-flex-row'><img src='${icons.coalIcon}' class='icon-size' /><span class='icon-flex-col q-pl-sm'><span class='efficiency-perc'>25%</span><span class='ratio-count'>1</span></span></span>)
|
||||||
|
|||||||
Reference in New Issue
Block a user