mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-01-01 22:47:19 +03:00
Add back details for more customization like in old launcher
This commit is contained in:
parent
2e9fdec00c
commit
5748cfb5ad
2 changed files with 11 additions and 4 deletions
|
@ -82,7 +82,11 @@ promisify(async () => {
|
||||||
*/
|
*/
|
||||||
fields: {
|
fields: {
|
||||||
/**
|
/**
|
||||||
* Small messages after title
|
* Small message after title (only in game)
|
||||||
|
*/
|
||||||
|
details: 'Exploring the landscape of',
|
||||||
|
/**
|
||||||
|
* Small message after details
|
||||||
*/
|
*/
|
||||||
states: {
|
states: {
|
||||||
/**
|
/**
|
||||||
|
@ -91,9 +95,9 @@ promisify(async () => {
|
||||||
'in-launcher': 'Preparing to launch',
|
'in-launcher': 'Preparing to launch',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Message showed when you're in game
|
* Message shows when your in game
|
||||||
*/
|
*/
|
||||||
'in-game': 'Playing the game'
|
'in-game': 'Teyvat'
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -103,9 +103,12 @@ export default class Launcher
|
||||||
|
|
||||||
this.rpc = new DiscordRPC({
|
this.rpc = new DiscordRPC({
|
||||||
id: '901534333360304168',
|
id: '901534333360304168',
|
||||||
|
|
||||||
|
// @ts-expect-error
|
||||||
|
details: 'in-game' ? discord.fields.details : undefined,
|
||||||
|
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
details: discord.fields.states[state],
|
state: discord.fields.states[state],
|
||||||
|
|
||||||
icon: {
|
icon: {
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
|
|
Loading…
Reference in a new issue