mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 23:50:52 +01:00
Fix screenshot command
This commit is contained in:
parent
cb44814936
commit
f720478d50
@ -1,4 +1,4 @@
|
|||||||
import { AvatarExpressionEnum, HabboClubLevelEnum, NitroEvent, RoomControllerLevel, RoomSessionChatEvent, RoomSettingsComposer, RoomWidgetEnum, RoomZoomEvent } from 'nitro-renderer';
|
import { AvatarExpressionEnum, HabboClubLevelEnum, NitroEvent, RoomControllerLevel, RoomSessionChatEvent, RoomSettingsComposer, RoomWidgetEnum, RoomZoomEvent, TextureUtils } from 'nitro-renderer';
|
||||||
import { GetRoomEngine, GetSessionDataManager } from '../../../api';
|
import { GetRoomEngine, GetSessionDataManager } from '../../../api';
|
||||||
import { SendMessageHook } from '../../../hooks/messages';
|
import { SendMessageHook } from '../../../hooks/messages';
|
||||||
import { RoomWidgetFloodControlEvent, RoomWidgetUpdateEvent } from '../events';
|
import { RoomWidgetFloodControlEvent, RoomWidgetUpdateEvent } from '../events';
|
||||||
@ -114,8 +114,11 @@ export class RoomWidgetChatInputHandler extends RoomWidgetHandler
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
case ':screenshot':
|
case ':screenshot':
|
||||||
GetRoomEngine().createRoomScreenshot(this.container.roomSession.roomId, 1);
|
const texture = GetRoomEngine().createTextureFromRoom(this.container.roomSession.roomId, 1);
|
||||||
|
|
||||||
|
const newWindow = window.open('');
|
||||||
|
|
||||||
|
newWindow.document.write(TextureUtils.generateImageUrl(texture));
|
||||||
return null;
|
return null;
|
||||||
case ':pickall':
|
case ':pickall':
|
||||||
// this.container.notificationService.alertWithConfirm('${room.confirm.pick_all}', '${generic.alert.title}', () =>
|
// this.container.notificationService.alertWithConfirm('${room.confirm.pick_all}', '${generic.alert.title}', () =>
|
||||||
|
Loading…
Reference in New Issue
Block a user