This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom arguments and Disable update on start button (#71)
* added custom args * added way to add mods * hide general settings page for now * added restartonserverquit backend * disabled restart
- Loading branch information
1 parent
31ef6de
commit 0133225
Showing
5 changed files
with
85 additions
and
5 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,41 @@ | ||
import React from "react"; | ||
import {server} from "../../../wailsjs/go/models"; | ||
import { | ||
Button, | ||
Card, Checkbox, | ||
DialogActions, | ||
DialogContent, | ||
DialogTitle, | ||
Divider, FormLabel, Input, | ||
Modal, | ||
ModalDialog, | ||
TabPanel, | ||
Typography | ||
} from "@mui/joy"; | ||
import {IconAlertCircleFilled} from "@tabler/icons-react"; | ||
|
||
type Props = { | ||
setServ: React.Dispatch<React.SetStateAction<server.Server>> | ||
serv: server.Server; | ||
|
||
} | ||
|
||
export function Settings({setServ, serv}: Props) { | ||
return ( | ||
<TabPanel value={2} className={'space-y-8'}> | ||
<Card variant="soft" className={''}> | ||
<Typography level="title-md"> | ||
Mods | ||
</Typography> | ||
<Divider className={'mx-2'}/> | ||
|
||
<div className={'space-x-4 w-full flex'}> | ||
<div className={'inline-block'}> | ||
<FormLabel>Mods (e.g.: modid1,modid2,modid3)</FormLabel> | ||
<Input className={"w-[60vw]"} value={serv?.mods} onChange={(e) => setServ((p) => ({ ...p, mods: e.target.value }))}></Input> | ||
</div> | ||
</div> | ||
</Card> | ||
</TabPanel> | ||
); | ||
} |
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