Skip to content

Commit

Permalink
fix(moon-city): updates!
Browse files Browse the repository at this point in the history
  • Loading branch information
ThornWalli committed Dec 8, 2024
1 parent b2c442e commit a44ae85
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
3 changes: 2 additions & 1 deletion packages/disk-moon-city/components/base/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ onMounted(() => {
& .caret {
position: absolute;
top: 2px;
left: calc(2px + var(--length) * 8px);
left: calc(2px + var(--length) * (8px + 2px));
display: block;
mix-blend-mode: difference;
Expand All @@ -151,6 +151,7 @@ onMounted(() => {
height: 10px;
padding: 0;
margin: 0;
letter-spacing: 2px;
appearance: none;
cursor: pointer;
caret-color: transparent;
Expand Down
3 changes: 2 additions & 1 deletion packages/disk-moon-city/components/frame/Start.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
:max="4"
align="center"
border
:color="COLOR.RED"
hide-caret
auto-focus />
</form>
Expand All @@ -49,7 +50,7 @@ import { computed, ref } from 'vue';
import McText from '../Text';
import McInputText from '../input/Text';
import McInputNumber from '../input/Number';
import { PLAYER_COLORS } from '../../utils/color';
import { COLOR, PLAYER_COLORS } from '../../utils/color';
import useAudioControl from '../../composables/useAudioControl';
const { playSfx } = useAudioControl();
Expand Down
4 changes: 1 addition & 3 deletions packages/disk-moon-city/components/frame/StatsPrimary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@
color="gray"
:content="
fillTextStart(
core.currentPlayer.city.getProductionValue(
STORAGE_TYPE.ENERGY_TRANSFER
),
core.currentPlayer.city.getProductionValue(STORAGE_TYPE.CREDITS),
5,
'0'
)
Expand Down
6 changes: 3 additions & 3 deletions packages/disk-moon-city/components/stats/screen/Overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const lines = computed(() => {
{ spacer: true },
{
background: true,
content: `% ${normalizePercentage(city.securityService.trained, city.securityService.value)}`,
content: `% ${fillTextStart(normalizePercentage(city.securityService.trained, city.securityService.value), 3, ' ')}`,
color: 'white'
}
],
Expand All @@ -89,7 +89,7 @@ const lines = computed(() => {
{ spacer: true },
{
background: true,
content: `% ${normalizePercentage(city.soldier.trained, city.soldier.value)}`,
content: `% ${fillTextStart(normalizePercentage(city.soldier.trained, city.soldier.value), 3, ' ')}`,
color: 'white'
}
],
Expand All @@ -98,7 +98,7 @@ const lines = computed(() => {
{ spacer: true },
{
background: true,
content: `% ${normalizePercentage(city.mercenary.trained, city.mercenary.value)}`,
content: `% ${fillTextStart(normalizePercentage(city.mercenary.trained, city.mercenary.value), 3, ' ')}`,
color: 'white'
}
],
Expand Down
4 changes: 2 additions & 2 deletions packages/disk-moon-city/utils/player.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// import EnergyTransmitter from '../classes/buildings/EnergyTransmitter';
import EnergyTransmitter from '../classes/buildings/EnergyTransmitter';
import GreenHouse from '../classes/buildings/GreenHouse';
import House from '../classes/buildings/House';
import OreStorage from '../classes/buildings/OreStorage';
Expand All @@ -18,7 +18,7 @@ export const basicPlayerConfig = (player, buildings) => {
new OreStorage(),
new Refinery(),
new PowerStation(),
// new EnergyTransmitter(),
new EnergyTransmitter(),
...Array(10)
.fill()
.map(() => new House()),
Expand Down

0 comments on commit a44ae85

Please sign in to comment.