2021-05-19 17:21:51 -05:00
|
|
|
<template>
|
2021-06-22 03:34:59 -05:00
|
|
|
<div id="app" @mousemove="updateMouse" :style="theme" :class="{ useHeader }">
|
2021-06-24 00:57:20 -05:00
|
|
|
<Nav v-if="useHeader" />
|
2021-05-20 00:11:03 -05:00
|
|
|
<Tabs />
|
|
|
|
<TPS v-if="showTPS" />
|
2021-06-15 23:46:34 -05:00
|
|
|
<GameOverScreen />
|
2021-06-16 00:36:13 -05:00
|
|
|
<NaNScreen />
|
2021-06-12 00:41:25 -05:00
|
|
|
<portal-target name="modal-root" multiple />
|
2021-05-19 17:48:02 -05:00
|
|
|
</div>
|
2021-05-19 17:21:51 -05:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-05-25 20:57:02 -05:00
|
|
|
import Nav from './components/system/Nav';
|
|
|
|
import Tabs from './components/system/Tabs';
|
|
|
|
import TPS from './components/system/TPS';
|
|
|
|
import themes from './data/themes';
|
2021-05-19 23:27:23 -05:00
|
|
|
import { mapState } from 'vuex';
|
2021-06-11 23:38:16 -05:00
|
|
|
import { player } from './store/proxies';
|
2021-06-22 03:34:59 -05:00
|
|
|
import modInfo from './data/modInfo.json';
|
2021-06-11 23:38:16 -05:00
|
|
|
import './main.css';
|
2021-05-19 23:27:23 -05:00
|
|
|
|
2021-05-19 17:21:51 -05:00
|
|
|
export default {
|
2021-05-19 17:48:02 -05:00
|
|
|
name: 'App',
|
|
|
|
components: {
|
2021-05-20 00:11:03 -05:00
|
|
|
Nav, Tabs, TPS
|
2021-05-19 23:27:23 -05:00
|
|
|
},
|
2021-06-22 03:34:59 -05:00
|
|
|
data() {
|
|
|
|
return { useHeader: modInfo.useHeader };
|
|
|
|
},
|
2021-05-19 23:27:23 -05:00
|
|
|
computed: {
|
|
|
|
...mapState([ 'showTPS' ]),
|
|
|
|
theme() {
|
2021-06-11 23:38:16 -05:00
|
|
|
return themes[player.theme].variables;
|
2021-05-19 23:27:23 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
2021-05-20 00:11:03 -05:00
|
|
|
updateMouse(/* event */) {
|
|
|
|
// TODO use event to update mouse position for particles
|
2021-05-19 23:27:23 -05:00
|
|
|
}
|
2021-05-19 17:48:02 -05:00
|
|
|
}
|
2021-05-19 23:27:23 -05:00
|
|
|
};
|
2021-05-19 17:21:51 -05:00
|
|
|
</script>
|
|
|
|
|
2021-06-11 23:38:16 -05:00
|
|
|
<style scoped>
|
2021-05-19 23:27:23 -05:00
|
|
|
#app {
|
|
|
|
background-color: var(--background);
|
|
|
|
color: var(--color);
|
2021-05-22 15:29:06 -05:00
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
2021-05-19 23:27:23 -05:00
|
|
|
}
|
2021-05-19 17:21:51 -05:00
|
|
|
</style>
|