mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
remove migoto for now
This commit is contained in:
@@ -54,7 +54,6 @@ export default class ServerLaunchSection extends React.Component<{}, IState> {
|
|||||||
this.toggleGrasscutter = this.toggleGrasscutter.bind(this)
|
this.toggleGrasscutter = this.toggleGrasscutter.bind(this)
|
||||||
this.playGame = this.playGame.bind(this)
|
this.playGame = this.playGame.bind(this)
|
||||||
this.launchAkebi = this.launchAkebi.bind(this)
|
this.launchAkebi = this.launchAkebi.bind(this)
|
||||||
this.launch3dm = this.launch3dm.bind(this)
|
|
||||||
this.setIp = this.setIp.bind(this)
|
this.setIp = this.setIp.bind(this)
|
||||||
this.setPort = this.setPort.bind(this)
|
this.setPort = this.setPort.bind(this)
|
||||||
this.toggleHttps = this.toggleHttps.bind(this)
|
this.toggleHttps = this.toggleHttps.bind(this)
|
||||||
@@ -193,18 +192,6 @@ export default class ServerLaunchSection extends React.Component<{}, IState> {
|
|||||||
await this.playGame(config.akebi_path, gameExec)
|
await this.playGame(config.akebi_path, gameExec)
|
||||||
}
|
}
|
||||||
|
|
||||||
async launch3dm() {
|
|
||||||
const config = await getConfig()
|
|
||||||
|
|
||||||
// First launch 3dm
|
|
||||||
invoke('run_program', {
|
|
||||||
path: config.migoto_path,
|
|
||||||
})
|
|
||||||
|
|
||||||
// Then play the game as normal
|
|
||||||
await this.playGame()
|
|
||||||
}
|
|
||||||
|
|
||||||
setIp(text: string) {
|
setIp(text: string) {
|
||||||
this.setState({
|
this.setState({
|
||||||
ip: text,
|
ip: text,
|
||||||
@@ -282,9 +269,6 @@ export default class ServerLaunchSection extends React.Component<{}, IState> {
|
|||||||
<BigButton onClick={this.launchAkebi} id="akebiLaunch">
|
<BigButton onClick={this.launchAkebi} id="akebiLaunch">
|
||||||
<img className="AkebiIcon" id="akebiIcon" src={Akebi} />
|
<img className="AkebiIcon" id="akebiIcon" src={Akebi} />
|
||||||
</BigButton>
|
</BigButton>
|
||||||
<BigButton onClick={this.launch3dm} id="serverLaunch">
|
|
||||||
3DM
|
|
||||||
</BigButton>
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<BigButton onClick={this.launchServer} id="serverLaunch">
|
<BigButton onClick={this.launchServer} id="serverLaunch">
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ interface IState {
|
|||||||
|
|
||||||
// Swag stuff
|
// Swag stuff
|
||||||
akebi_path: string
|
akebi_path: string
|
||||||
migoto_path: string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Options extends React.Component<IProps, IState> {
|
export default class Options extends React.Component<IProps, IState> {
|
||||||
@@ -61,14 +60,12 @@ export default class Options extends React.Component<IProps, IState> {
|
|||||||
|
|
||||||
// Swag stuff
|
// Swag stuff
|
||||||
akebi_path: '',
|
akebi_path: '',
|
||||||
migoto_path: '',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setGameExecutable = this.setGameExecutable.bind(this)
|
this.setGameExecutable = this.setGameExecutable.bind(this)
|
||||||
this.setGrasscutterJar = this.setGrasscutterJar.bind(this)
|
this.setGrasscutterJar = this.setGrasscutterJar.bind(this)
|
||||||
this.setJavaPath = this.setJavaPath.bind(this)
|
this.setJavaPath = this.setJavaPath.bind(this)
|
||||||
this.setAkebi = this.setAkebi.bind(this)
|
this.setAkebi = this.setAkebi.bind(this)
|
||||||
this.setMigoto = this.setMigoto.bind(this)
|
|
||||||
this.toggleGrasscutterWithGame = this.toggleGrasscutterWithGame.bind(this)
|
this.toggleGrasscutterWithGame = this.toggleGrasscutterWithGame.bind(this)
|
||||||
this.setCustomBackground = this.setCustomBackground.bind(this)
|
this.setCustomBackground = this.setCustomBackground.bind(this)
|
||||||
this.toggleEncryption = this.toggleEncryption.bind(this)
|
this.toggleEncryption = this.toggleEncryption.bind(this)
|
||||||
@@ -140,14 +137,6 @@ export default class Options extends React.Component<IProps, IState> {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
setMigoto(value: string) {
|
|
||||||
setConfigOption('migoto_path', value)
|
|
||||||
|
|
||||||
this.setState({
|
|
||||||
migoto_path: value,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
async setLanguage(value: string) {
|
async setLanguage(value: string) {
|
||||||
await setConfigOption('language', value)
|
await setConfigOption('language', value)
|
||||||
window.location.reload()
|
window.location.reload()
|
||||||
@@ -319,14 +308,6 @@ export default class Options extends React.Component<IProps, IState> {
|
|||||||
<div className="OptionLabel" id="menuOptionsLabelAkebi">
|
<div className="OptionLabel" id="menuOptionsLabelAkebi">
|
||||||
<Tr text="swag.akebi" />
|
<Tr text="swag.akebi" />
|
||||||
</div>
|
</div>
|
||||||
<div className="OptionSection" id="menuOptionsContainerMigoto">
|
|
||||||
<div className="OptionLabel" id="menuOptionsLabelMigoto">
|
|
||||||
<Tr text="swag.migoto" />
|
|
||||||
</div>
|
|
||||||
<div className="OptionValue" id="menuOptionsDirMigoto">
|
|
||||||
<DirInput onChange={this.setMigoto} value={this.state?.migoto_path} extensions={['exe']} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ export interface Configuration {
|
|||||||
|
|
||||||
// Swag stuff
|
// Swag stuff
|
||||||
akebi_path?: string
|
akebi_path?: string
|
||||||
migoto_path?: string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function setConfigOption<K extends keyof Configuration>(key: K, value: Configuration[K]): Promise<void> {
|
export async function setConfigOption<K extends keyof Configuration>(key: K, value: Configuration[K]): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user