Add berry dash chatroom & change geometry rays chatroom url
This commit is contained in:
1 file changed
+55
-26
+55
-26
@@ -62,31 +62,58 @@ export default function Installs () {
|
|||||||
<p className='text-3xl truncate min-w-0 flex-1'>{game.name} Installs</p>
|
<p className='text-3xl truncate min-w-0 flex-1'>{game.name} Installs</p>
|
||||||
<div className='flex gap-2'>
|
<div className='flex gap-2'>
|
||||||
{game.id == 1 && (
|
{game.id == 1 && (
|
||||||
<button
|
<>
|
||||||
className='button btntheme1'
|
<button
|
||||||
onClick={async () => {
|
className='button btntheme1'
|
||||||
const window = await WebviewWindow.getByLabel(
|
onClick={async () => {
|
||||||
'berrydashleaderboards'
|
const window = await WebviewWindow.getByLabel(
|
||||||
)
|
'berrydashchatroom'
|
||||||
if (window) {
|
)
|
||||||
await window.setFocus()
|
if (window) {
|
||||||
return
|
await window.setFocus()
|
||||||
}
|
return
|
||||||
new WebviewWindow('berrydashleaderboards', {
|
}
|
||||||
title: 'Berry Dash Leaderboards',
|
new WebviewWindow('berrydashchatroom', {
|
||||||
url:
|
title: 'Berry Dash Chatroom',
|
||||||
'https://games.lncvrt.xyz/game/berry-dash/leaderboards?launcher=1&theme=' +
|
url:
|
||||||
theme,
|
'https://games.lncvrt.xyz/game/berry-dash/chatroom?launcher=1&theme=' +
|
||||||
width: 800,
|
theme,
|
||||||
height: 600,
|
width: 800,
|
||||||
resizable: false,
|
height: 600,
|
||||||
maximizable: false
|
resizable: false,
|
||||||
})
|
maximizable: false
|
||||||
}}
|
})
|
||||||
title='View the leaderboards for this game.'
|
}}
|
||||||
>
|
title='View the chatroom for this game.'
|
||||||
Leaderboards
|
>
|
||||||
</button>
|
Chatroom
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
className='button btntheme1'
|
||||||
|
onClick={async () => {
|
||||||
|
const window = await WebviewWindow.getByLabel(
|
||||||
|
'berrydashleaderboards'
|
||||||
|
)
|
||||||
|
if (window) {
|
||||||
|
await window.setFocus()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
new WebviewWindow('berrydashleaderboards', {
|
||||||
|
title: 'Berry Dash Leaderboards',
|
||||||
|
url:
|
||||||
|
'https://games.lncvrt.xyz/game/berry-dash/leaderboards?launcher=1&theme=' +
|
||||||
|
theme,
|
||||||
|
width: 800,
|
||||||
|
height: 600,
|
||||||
|
resizable: false,
|
||||||
|
maximizable: false
|
||||||
|
})
|
||||||
|
}}
|
||||||
|
title='View the leaderboards for this game.'
|
||||||
|
>
|
||||||
|
Leaderboards
|
||||||
|
</button>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
{game.id == 9 && category == -1 && (
|
{game.id == 9 && category == -1 && (
|
||||||
<button
|
<button
|
||||||
@@ -122,7 +149,9 @@ export default function Installs () {
|
|||||||
}
|
}
|
||||||
new WebviewWindow('georayschatroom', {
|
new WebviewWindow('georayschatroom', {
|
||||||
title: 'Geometry Rays Chatroom',
|
title: 'Geometry Rays Chatroom',
|
||||||
url: 'https://georays.puppet57.xyz/php-code/data/chat.txt',
|
url:
|
||||||
|
'https://games.lncvrt.xyz/game/geometry-rays/chatroom?launcher=1&theme=' +
|
||||||
|
theme,
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
|
|||||||
Reference in new issue
Block a user