This commit is contained in:
Bill 2022-07-18 20:50:29 -04:00
parent 1b935f9345
commit d4f1028265
4 changed files with 377 additions and 374 deletions

View File

@ -1,5 +1,6 @@
import { Disposable } from '../../core/common/disposable/Disposable'; import { Disposable } from '../../core/common/disposable/Disposable';
import { NitroLogger } from '../../core/common/logger/NitroLogger'; import { NitroLogger } from '../../core/common/logger/NitroLogger';
import { RoomId } from '../../room';
import { RoomObjectEvent } from '../../room/events/RoomObjectEvent'; import { RoomObjectEvent } from '../../room/events/RoomObjectEvent';
import { RoomObjectMouseEvent } from '../../room/events/RoomObjectMouseEvent'; import { RoomObjectMouseEvent } from '../../room/events/RoomObjectMouseEvent';
import { RoomSpriteMouseEvent } from '../../room/events/RoomSpriteMouseEvent'; import { RoomSpriteMouseEvent } from '../../room/events/RoomSpriteMouseEvent';
@ -764,6 +765,8 @@ export class RoomObjectEventHandler extends Disposable implements IRoomCanvasMou
if (!eventDispatcher) return; if (!eventDispatcher) return;
if (RoomId.isRoomPreviewerId(roomId)) return;
switch (event.type) switch (event.type)
{ {
case RoomObjectWidgetRequestEvent.OPEN_WIDGET: case RoomObjectWidgetRequestEvent.OPEN_WIDGET:

View File

@ -50,7 +50,7 @@ export interface IRoomSession extends IDisposable
roomId: number; roomId: number;
state: string; state: string;
tradeMode: number; tradeMode: number;
_Str_7411: boolean; isPrivateRoom: boolean;
doorMode: number; doorMode: number;
allowPets: boolean; allowPets: boolean;
controllerLevel: number; controllerLevel: number;

View File

@ -359,7 +359,7 @@ export class RoomSession extends Disposable implements IRoomSession
return this._state; return this._state;
} }
public get _Str_7411(): boolean public get isPrivateRoom(): boolean
{ {
return true; return true;
} }