Commands, alert improvements
This commit is contained in:
@ -22,9 +22,15 @@ function closeNotification(id: string) {
|
||||
notifications.removeNotification(id)
|
||||
}
|
||||
|
||||
type Notification = {
|
||||
title?: string
|
||||
message?: string
|
||||
}
|
||||
|
||||
function setupNotificationListener(connection: any) {
|
||||
connection.on('notification', (data: { message: string }) => {
|
||||
connection.on('notification', (data: Notification) => {
|
||||
notifications.addNotification({
|
||||
title: data.title,
|
||||
message: data.message
|
||||
})
|
||||
})
|
||||
|
@ -64,7 +64,7 @@ const gameConfig = {
|
||||
resolution: 5,
|
||||
pixelArt: true,
|
||||
scale: {
|
||||
mode: Phaser.Scale.FIT,
|
||||
mode: Phaser.Scale.RESIZE,
|
||||
autoCenter: Phaser.Scale.CENTER_BOTH,
|
||||
width: window.innerWidth,
|
||||
height: window.innerHeight
|
||||
|
Reference in New Issue
Block a user