Update downloads menu

This commit is contained in:
Thoronium
2023-02-25 20:17:37 -07:00
committed by GitHub
parent 9b1d3594ed
commit d6b1c7a613
3 changed files with 14 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
"main": { "main": {
"title": "Cultivation: Thorny Edition", "title": "Cultivation: Thorny Edition",
"launch_button": "Launch", "launch_button": "Launch",
"gc_enable": "Connect via Grasscutter", "gc_enable": "Connect to Grasscutter",
"https_enable": "Use HTTPS", "https_enable": "Use HTTPS",
"ip_placeholder": "Server Address...", "ip_placeholder": "Server Address...",
"port_placeholder": "Port...", "port_placeholder": "Port...",
@@ -31,7 +31,7 @@
"horny_mode": "Horny Mode" "horny_mode": "Horny Mode"
}, },
"downloads": { "downloads": {
"grasscutter_fullbuild": "Download Grasscutter Full Build", "grasscutter_fullbuild": "Download Grasscutter Full Build [All-in-One]",
"grasscutter_stable_data": "Download Grasscutter Stable Data", "grasscutter_stable_data": "Download Grasscutter Stable Data",
"grasscutter_latest_data": "Download Grasscutter Latest Data", "grasscutter_latest_data": "Download Grasscutter Latest Data",
"grasscutter_stable_data_update": "Update Grasscutter Stable Data", "grasscutter_stable_data_update": "Update Grasscutter Stable Data",
@@ -41,7 +41,9 @@
"grasscutter_stable_update": "Update Grasscutter Stable", "grasscutter_stable_update": "Update Grasscutter Stable",
"grasscutter_latest_update": "Update Grasscutter Latest", "grasscutter_latest_update": "Update Grasscutter Latest",
"resources": "Download Grasscutter Resources", "resources": "Download Grasscutter Resources",
"game": "Download Game" "game": "Download Game",
"aioHeader": "All-in-one download: No individual downloads needed.",
"individualHeader": "Individual downloads"
}, },
"download_status": { "download_status": {
"downloading": "Downloading", "downloading": "Downloading",
@@ -70,9 +72,9 @@
"gc_dev_data": "Download the latest development Grasscutter data files, which does not come with a jar file. This is useful for updating.", "gc_dev_data": "Download the latest development Grasscutter data files, which does not come with a jar file. This is useful for updating.",
"encryption": "This should usually be disabled.", "encryption": "This should usually be disabled.",
"resources": "These are also required to run a Grasscutter server. This button will be grey if you have an existing resources folder with contents inside", "resources": "These are also required to run a Grasscutter server. This button will be grey if you have an existing resources folder with contents inside",
"emergency_metadata": "In case something went wrong, restore your metadata to the latest official versions metadata.", "emergency_metadata": "In case something went wrong, restore your metadata to the latest official versions metadata. Only for 2.8/3.0",
"use_proxy": "Use the Cultivation internal proxy. You should have this enabled unless you use something like Fiddler", "use_proxy": "Use the Cultivation internal proxy. You should have this enabled unless you use something like Fiddler",
"patch_metadata": "Patch and unpatch your game metadata automatically. Unless playing with old/non-official versions, or you have manually patched your metadata, this should be enabled." "patch_metadata": "Patch and unpatch your game metadata automatically. Unless playing with old/non-official versions (2.8/3.0), this should be disabled."
}, },
"swag": { "swag": {
"akebi_name": "Akebi", "akebi_name": "Akebi",

View File

@@ -18,6 +18,7 @@ import { listen } from '@tauri-apps/api/event'
import { dataDir } from '@tauri-apps/api/path' import { dataDir } from '@tauri-apps/api/path'
import { appWindow } from '@tauri-apps/api/window' import { appWindow } from '@tauri-apps/api/window'
import { unpatchGame } from '../utils/metadata' import { unpatchGame } from '../utils/metadata'
import { showNews } from './components/news/NewsSection'
import DownloadHandler from '../utils/download' import DownloadHandler from '../utils/download'
// Graphics // Graphics
@@ -122,7 +123,7 @@ export class Main extends React.Component<IProps, IState> {
}, 1000) }, 1000)
// Summon the news when loaded since it will not show until click normally // Summon the news when loaded since it will not show until click normally
NewsSection.showNews() showNews()
} }
async openExtrasMenu(playGame: () => void) { async openExtrasMenu(playGame: () => void) {

View File

@@ -212,6 +212,7 @@ export default class Downloads extends React.Component<IProps, IState> {
render() { render() {
return ( return (
<Menu closeFn={this.props.closeFn} className="Downloads" heading="Downloads"> <Menu closeFn={this.props.closeFn} className="Downloads" heading="Downloads">
<Tr text = "help.aioHeader" />
<div className="DownloadMenuSection" id="downloadMenuContainerGCFullBuild"> <div className="DownloadMenuSection" id="downloadMenuContainerGCFullBuild">
<div className="DownloadLabel" id="downloadMenuLabelGCFullBuild"> <div className="DownloadLabel" id="downloadMenuLabelGCFullBuild">
<Tr <Tr
@@ -229,6 +230,9 @@ export default class Downloads extends React.Component<IProps, IState> {
</BigButton> </BigButton>
</div> </div>
</div> </div>
<Divider />
{/* <div className="DownloadMenuSection" id="downloadMenuContainerGCStable"> {/* <div className="DownloadMenuSection" id="downloadMenuContainerGCStable">
<div className="DownloadLabel" id="downloadMenuLabelGCStable"> <div className="DownloadLabel" id="downloadMenuLabelGCStable">
<Tr <Tr
@@ -246,6 +250,7 @@ export default class Downloads extends React.Component<IProps, IState> {
</BigButton> </BigButton>
</div> </div>
</div> */} </div> */}
<Tr text = "help.individualHeader" />
<div className="DownloadMenuSection" id="downloadMenuContainerGCDev"> <div className="DownloadMenuSection" id="downloadMenuContainerGCDev">
<div className="DownloadLabel" id="downloadMenuLabelGCDev"> <div className="DownloadLabel" id="downloadMenuLabelGCDev">
<Tr <Tr
@@ -264,8 +269,6 @@ export default class Downloads extends React.Component<IProps, IState> {
</div> </div>
</div> </div>
<Divider />
{/* <div className="DownloadMenuSection" id="downloadMenuContainerGCStableData"> {/* <div className="DownloadMenuSection" id="downloadMenuContainerGCStableData">
<div className="DownloadLabel" id="downloadMenuLabelGCStableData"> <div className="DownloadLabel" id="downloadMenuLabelGCStableData">
<Tr <Tr
@@ -309,8 +312,6 @@ export default class Downloads extends React.Component<IProps, IState> {
</div> </div>
</div> </div>
<Divider />
<div className="DownloadMenuSection" id="downloadMenuContainerResources"> <div className="DownloadMenuSection" id="downloadMenuContainerResources">
<div className="DownloadLabel" id="downloadMenuLabelResources"> <div className="DownloadLabel" id="downloadMenuLabelResources">
<Tr text="downloads.resources" /> <Tr text="downloads.resources" />