forked from profectus/Profectus
Added enablePausing config
This commit is contained in:
parent
1cf72b4337
commit
3682582fc3
3 changed files with 10 additions and 8 deletions
|
@ -21,7 +21,7 @@
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<Toggle title="Autosave" v-model="autosave" />
|
<Toggle title="Autosave" v-model="autosave" />
|
||||||
<Toggle title="Pause game" v-model="isPaused" />
|
<Toggle v-if="projInfo.enablePausing" title="Pause game" v-model="isPaused" />
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:footer>
|
<template v-slot:footer>
|
||||||
<div class="nan-footer">
|
<div class="nan-footer">
|
||||||
|
|
|
@ -13,23 +13,24 @@
|
||||||
<Toggle title="Unthrottled" v-model="unthrottled" />
|
<Toggle title="Unthrottled" v-model="unthrottled" />
|
||||||
<Toggle :title="offlineProdTitle" v-model="offlineProd" />
|
<Toggle :title="offlineProdTitle" v-model="offlineProd" />
|
||||||
<Toggle :title="autosaveTitle" v-model="autosave" />
|
<Toggle :title="autosaveTitle" v-model="autosave" />
|
||||||
<Toggle :title="isPausedTitle" v-model="isPaused" />
|
<Toggle v-if="projInfo.enablePausing" :title="isPausedTitle" v-model="isPaused" />
|
||||||
</template>
|
</template>
|
||||||
</Modal>
|
</Modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="tsx">
|
<script setup lang="tsx">
|
||||||
import Modal from "components/Modal.vue";
|
import Modal from "components/Modal.vue";
|
||||||
|
import projInfo from "data/projInfo.json";
|
||||||
import rawThemes from "data/themes";
|
import rawThemes from "data/themes";
|
||||||
|
import { jsx } from "features/feature";
|
||||||
import player from "game/player";
|
import player from "game/player";
|
||||||
import settings, { settingFields } from "game/settings";
|
import settings, { settingFields } from "game/settings";
|
||||||
import { camelToTitle } from "util/common";
|
import { camelToTitle } from "util/common";
|
||||||
import { computed, ref, toRefs } from "vue";
|
|
||||||
import Toggle from "./fields/Toggle.vue";
|
|
||||||
import Select from "./fields/Select.vue";
|
|
||||||
import Tooltip from "./Tooltip.vue";
|
|
||||||
import { jsx } from "features/feature";
|
|
||||||
import { coerceComponent, render } from "util/vue";
|
import { coerceComponent, render } from "util/vue";
|
||||||
|
import { computed, ref, toRefs } from "vue";
|
||||||
|
import Select from "./fields/Select.vue";
|
||||||
|
import Toggle from "./fields/Toggle.vue";
|
||||||
|
import Tooltip from "./Tooltip.vue";
|
||||||
|
|
||||||
const isOpen = ref(false);
|
const isOpen = ref(false);
|
||||||
|
|
||||||
|
|
|
@ -17,5 +17,6 @@
|
||||||
"initialTabs": [ "main" ],
|
"initialTabs": [ "main" ],
|
||||||
|
|
||||||
"maxTickLength": 3600,
|
"maxTickLength": 3600,
|
||||||
"offlineLimit": 1
|
"offlineLimit": 1,
|
||||||
|
"enablePausing": true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue