-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added configuration page, option shader installation, credits list
- version bump to 0.4.0 - added full credits list to project readme - credits list is now linked to on post install page - added client/server configuration page for common options and settings (eg. server motd) - added optional shader install and configuration -- using enhanced default, doesn't break, and fits game aesthetic - cleaned up install complete page code - fixed text overflow on mod downloads
- Loading branch information
Showing
17 changed files
with
430 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<template> | ||
<div class="white center full-width"> | ||
<div class="body"> | ||
<p> | ||
If you're capable of running shaders, you may choose to install them | ||
here. The installer will download, configure and enable the map's | ||
recommended shader pack when you install mods. You can configure shader | ||
settings further in the Video Settings in-game. | ||
<br /> | ||
<br /> | ||
The bundled shader pack, | ||
<a href="https://sildurs-shaders.github.io/" style="color: #3f9ae4" | ||
>Sildur's Enhanced Default</a | ||
>, is officially recommended and will be configured to work correctly | ||
with the map. You may choose to use another shader pack, but you may run | ||
into issues with blindness effects and skyboxes later in the map. | ||
<br /> | ||
<br /> | ||
If you choose to install shaders but are unable to run them, you may | ||
re-run the installer and unselect the shaders option, or manually | ||
disable them in-game through Video Settings. | ||
</p> | ||
</div> | ||
<div class="toggle-box"> | ||
<q-toggle | ||
v-model="shaders" | ||
color="accent" | ||
label="Install Shaders?" | ||
left-label | ||
size="lg" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { storeToRefs } from 'pinia'; | ||
import { useInstallerStore } from 'src/stores/InstallerStore'; | ||
const { shaders } = storeToRefs(useInstallerStore()); | ||
</script> | ||
<style scoped lang="sass"> | ||
.shader-box | ||
display: flex | ||
flex-direction: column | ||
align-items: center | ||
justify-content: center | ||
gap: 20px | ||
.body p | ||
padding: 10px | ||
.toggle-box | ||
padding: 1rem | ||
background-color: #7e57c2 | ||
border-radius: 0.3rem | ||
font-size: 17px | ||
text-align: center | ||
font-weight: bold | ||
line-height: 32px | ||
width: 60% | ||
height: 80px | ||
max-height: 80px | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
<template> | ||
<p> | ||
You may configure some common server configs here. These will be written to | ||
the | ||
<span class="custom">server.properties</span> file found in the server's | ||
folder. Feel free to edit these settings later if you wish. | ||
</p> | ||
|
||
<!-- configuration components --> | ||
<div class="options-div white center"> | ||
<!-- difficulty configuration options --> | ||
<div class="difficulty-div"> | ||
<q-btn-toggle | ||
v-model="serverOpts.difficulty" | ||
toggle-color="secondary" | ||
spread | ||
:options="[ | ||
{ label: 'Easy', value: 'easy' }, | ||
{ label: 'Normal', value: 'normal' }, | ||
{ label: 'Hard', value: 'hard' }, | ||
]" | ||
/> | ||
</div> | ||
|
||
<!-- pvp configuration toggle --> | ||
<div class="pvp-div"> | ||
<q-toggle | ||
v-model="serverOpts.pvp" | ||
color="accent" | ||
label="Enable PvP?" | ||
left-label | ||
size="lg" | ||
/> | ||
</div> | ||
|
||
<!-- hardcore configuration toggle --> | ||
<div class="hardcore-div"> | ||
<q-toggle | ||
v-model="serverOpts.hardcore" | ||
color="accent" | ||
label="Hardcore?" | ||
left-label | ||
size="lg" | ||
/> | ||
</div> | ||
|
||
<!-- motd configuration input text field --> | ||
<div class="motd-div"> | ||
<q-input | ||
standout | ||
v-model="serverOpts.motd" | ||
label="Server MotD" | ||
label-color="white" | ||
color="primary" | ||
input-style="color: #ffde00" | ||
bg-color="secondary" | ||
clearable | ||
/> | ||
</div> | ||
|
||
<!-- max player configuration slider --> | ||
<div class="max-players-div"> | ||
<div style="padding-bottom: 2px"> | ||
<q-item-section> | ||
<q-item-label> | ||
Max Players: <span class="custom">{{ serverOpts.maxPlayers }}</span> | ||
</q-item-label> | ||
</q-item-section> | ||
</div> | ||
<q-slider | ||
v-model="serverOpts.maxPlayers" | ||
:min="1" | ||
:max="20" | ||
:step="1" | ||
snap | ||
color="accent" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { storeToRefs } from 'pinia'; | ||
import { useInstallerStore } from 'src/stores/InstallerStore'; | ||
const { serverOpts } = storeToRefs(useInstallerStore()); | ||
</script> | ||
<style scoped lang="sass"> | ||
.options-div | ||
display: flex | ||
flex-direction: column | ||
align-items: center | ||
justify-content: center | ||
gap: 20px | ||
p | ||
padding: 10px | ||
.motd-div | ||
width: 50% | ||
.difficulty-div | ||
width: 50% | ||
.pvp-div | ||
width: 50% | ||
background-color: #7e57c2 | ||
.hardcore-div | ||
width: 50% | ||
background-color: #7e57c2 | ||
.max-players-div | ||
padding: 0.5rem | ||
background-color: #7e57c2 | ||
border-radius: 0.3rem | ||
text-align: center | ||
line-height: 32px | ||
width: 50% | ||
height: 60px | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.