Add room thumbnail

This commit is contained in:
Bill 2021-07-30 20:10:34 -04:00
parent 4ac15950f5
commit cb44814936
2 changed files with 3 additions and 4 deletions

View File

@ -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,

View File

@ -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 ]);