forked from noxious/client
Commands, alert improvements
This commit is contained in:
parent
4d12f9a4a4
commit
a32d62417a
6
package-lock.json
generated
6
package-lock.json
generated
@ -6797,9 +6797,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/undici-types": {
|
"node_modules/undici-types": {
|
||||||
"version": "6.19.6",
|
"version": "6.19.8",
|
||||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.6.tgz",
|
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz",
|
||||||
"integrity": "sha512-e/vggGopEfTKSvj4ihnOLTsqhrKRN3LeO6qSN/GxohhuRv8qH9bNQ4B8W7e/vFL+0XTnmHPB4/kegunZGA4Org==",
|
"integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
|
@ -22,9 +22,15 @@ function closeNotification(id: string) {
|
|||||||
notifications.removeNotification(id)
|
notifications.removeNotification(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Notification = {
|
||||||
|
title?: string
|
||||||
|
message?: string
|
||||||
|
}
|
||||||
|
|
||||||
function setupNotificationListener(connection: any) {
|
function setupNotificationListener(connection: any) {
|
||||||
connection.on('notification', (data: { message: string }) => {
|
connection.on('notification', (data: Notification) => {
|
||||||
notifications.addNotification({
|
notifications.addNotification({
|
||||||
|
title: data.title,
|
||||||
message: data.message
|
message: data.message
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -64,7 +64,7 @@ const gameConfig = {
|
|||||||
resolution: 5,
|
resolution: 5,
|
||||||
pixelArt: true,
|
pixelArt: true,
|
||||||
scale: {
|
scale: {
|
||||||
mode: Phaser.Scale.FIT,
|
mode: Phaser.Scale.RESIZE,
|
||||||
autoCenter: Phaser.Scale.CENTER_BOTH,
|
autoCenter: Phaser.Scale.CENTER_BOTH,
|
||||||
width: window.innerWidth,
|
width: window.innerWidth,
|
||||||
height: window.innerHeight
|
height: window.innerHeight
|
||||||
|
Loading…
x
Reference in New Issue
Block a user