mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-31 10:22:36 +01:00
Add room thumbnail
This commit is contained in:
parent
4ac15950f5
commit
cb44814936
@ -1,7 +1,7 @@
|
||||
{
|
||||
"image.library.notifications.url": "${image.library.url}notifications/%image%.png",
|
||||
"achievements.images.url": "${image.library.url}Quests/%image%.png",
|
||||
"thumbnails.url": "${image.library.url}camera/thumbnails/%thumbnail%.png",
|
||||
"thumbnails.url": "https://nitro.nitrots.co/camera/thumbnail/%thumbnail%.png",
|
||||
"url.prefix": "http://localhost:3000",
|
||||
"chat.viewer.height.percentage": 0.40,
|
||||
"auth.system.enabled": true,
|
||||
|
@ -19,9 +19,8 @@ export const RoomThumbnailWidgetCameraView: FC<RoomThumbnailWidgetCameraViewProp
|
||||
|
||||
const rectangle = new NitroRectangle(Math.floor(frameBounds.x), Math.floor(frameBounds.y), Math.floor(frameBounds.width), Math.floor(frameBounds.height));
|
||||
|
||||
const image = GetRoomEngine().createRoomScreenshot(GetRoomSession().roomId, 1, rectangle);
|
||||
|
||||
//SendMessageHook(new RoomWidgetCameraRoomThumbnailComposer(0, []));
|
||||
const image = GetRoomEngine().createRoomScreenshot(GetRoomSession().roomId, 1, rectangle, true, true);
|
||||
|
||||
onCloseClick();
|
||||
}, [ onCloseClick ]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user