You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
fix(room): support wired click-user controls
This commit is contained in:
@@ -2285,8 +2285,6 @@ export class RoomEngine implements IRoomEngine, IRoomCreator, IRoomEngineService
|
||||
|
||||
private handleRoomDragging(canvas: IRoomRenderingCanvas, x: number, y: number, type: string, altKey: boolean, ctrlKey: boolean, shiftKey: boolean): boolean
|
||||
{
|
||||
if(this.isPlayingGame()) return false;
|
||||
|
||||
if(this._areaSelectionManager.areaSelectionState === RoomAreaSelectionManager.SELECTING)
|
||||
{
|
||||
this._activeRoomIsDragged = false;
|
||||
@@ -2521,11 +2519,18 @@ export class RoomEngine implements IRoomEngine, IRoomCreator, IRoomEngineService
|
||||
|
||||
public setSelectedAvatar(roomId: number, objectId: number): void
|
||||
{
|
||||
if(this._roomObjectEventHandler) return;
|
||||
if(!this._roomObjectEventHandler) return;
|
||||
|
||||
this._roomObjectEventHandler.setSelectedAvatar(roomId, objectId, true);
|
||||
}
|
||||
|
||||
public clearSelectedAvatar(roomId: number): void
|
||||
{
|
||||
if(!this._roomObjectEventHandler) return;
|
||||
|
||||
this._roomObjectEventHandler.clearSelectedAvatar(roomId);
|
||||
}
|
||||
|
||||
public cancelRoomObjectInsert(): void
|
||||
{
|
||||
if(!this._roomObjectEventHandler) return;
|
||||
|
||||
Reference in New Issue
Block a user