diff options
author | lawncable.gitlab@simonlaux.de <lawncable.gitlab@simonlaux.de> | 2019-03-16 07:34:53 +0100 |
---|---|---|
committer | lawncable.gitlab@simonlaux.de <lawncable.gitlab@simonlaux.de> | 2019-03-16 07:34:53 +0100 |
commit | 25b567314d42a1906836cf7dc9fe0e38c3996996 (patch) | |
tree | 6b5df3ec2220795aac19b7d60d8ccc8ad95545f2 /src/main/status.ts | |
parent | 477f017eb25308c3bdcea148245457c296b7fb2f (diff) | |
download | electron-25b567314d42a1906836cf7dc9fe0e38c3996996.tar.gz electron-25b567314d42a1906836cf7dc9fe0e38c3996996.tar.bz2 electron-25b567314d42a1906836cf7dc9fe0e38c3996996.tar.xz electron-25b567314d42a1906836cf7dc9fe0e38c3996996.zip |
add experimental rich presence
Diffstat (limited to 'src/main/status.ts')
-rw-r--r-- | src/main/status.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/status.ts b/src/main/status.ts index fb99b35..2e59d0f 100644 --- a/src/main/status.ts +++ b/src/main/status.ts @@ -7,6 +7,9 @@ type STATUS = { ActivityIsError:boolean, playing:boolean, gameRunning:boolean, + gameStatus:{ + server: string + } } const status:STATUS = { @@ -15,6 +18,9 @@ const status:STATUS = { playing:false, //Is manaplus starting or started ActivityIsError:false, gameRunning:false, + gameStatus: { + server: "Launcher" + } } export namespace Status { @@ -50,6 +56,10 @@ export namespace Status { status.playing=playing; updateStatus(); } + export function setGameStatus(gameStatus:{ server: string }){ + status.gameStatus=gameStatus; + updateStatus(); + } export function getStatus():STATUS{ return status; } |