mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-01-07 03:26:56 +08:00
put 'play on grasscutter' closer to the play button when unchecked
This commit is contained in:
parent
805a9914be
commit
5879207181
@ -7,7 +7,8 @@
|
||||
"ip_placeholder": "Server Address...",
|
||||
"port_placeholder": "Port...",
|
||||
"files_downloading": "Files Downloading: ",
|
||||
"files_extracting": "Files Extracting: "
|
||||
"files_extracting": "Files Extracting: ",
|
||||
"port_help_text": "Ensure this is the Dispatch server port, not the Game server port. This is almost always '443'."
|
||||
},
|
||||
"options": {
|
||||
"game_exec": "Set Game Executable",
|
||||
|
@ -1,7 +1,7 @@
|
||||
#playButton {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
justify-content: space-evenly;
|
||||
|
||||
position: absolute;
|
||||
transform: translate(0%, -50%);
|
||||
|
@ -23,6 +23,8 @@ interface IState {
|
||||
|
||||
ipPlaceholder: string;
|
||||
portPlaceholder: string;
|
||||
|
||||
portHelpText: string;
|
||||
}
|
||||
|
||||
export default class ServerLaunchSection extends React.Component<IProps, IState> {
|
||||
@ -36,7 +38,8 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
||||
ip: '',
|
||||
port: '',
|
||||
ipPlaceholder: '',
|
||||
portPlaceholder: ''
|
||||
portPlaceholder: '',
|
||||
portHelpText: ''
|
||||
}
|
||||
|
||||
this.toggleGrasscutter = this.toggleGrasscutter.bind(this)
|
||||
@ -55,7 +58,8 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
||||
ip: config.last_ip || '',
|
||||
port: config.last_port || '',
|
||||
ipPlaceholder: await translate('main.ip_placeholder'),
|
||||
portPlaceholder: await translate('main.port_placeholder')
|
||||
portPlaceholder: await translate('main.port_placeholder'),
|
||||
portHelpText: await translate('main.port_help_text')
|
||||
})
|
||||
}
|
||||
|
||||
@ -152,7 +156,7 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
||||
<TextInput style={{
|
||||
width: '10%',
|
||||
}} id="port" key="port" placeholder={this.state.portPlaceholder} onChange={this.setPort}/>
|
||||
<HelpButton contents="Ensure this is the Dispatch server port, not the Game server port. This is almost always '443'." />
|
||||
<HelpButton contents={this.state.portHelpText} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user