diff --git a/packages/api/src/nitro/room/utils/IRoomAreaSelectionManager.ts b/packages/api/src/nitro/room/utils/IRoomAreaSelectionManager.ts index 88caf85b..90f09238 100644 --- a/packages/api/src/nitro/room/utils/IRoomAreaSelectionManager.ts +++ b/packages/api/src/nitro/room/utils/IRoomAreaSelectionManager.ts @@ -3,6 +3,7 @@ import { INitroEvent } from '../../../common'; export interface IRoomAreaSelectionManager { startSelecting(): void; + clearHighlight(): void; handleTileMouseEvent(event: INitroEvent): void; finishSelecting(): boolean; activate(callback: (rootX: number, rootY: number, width: number, height: number) => void, highlightType: string): boolean; diff --git a/packages/room/src/utils/RoomAreaSelectionManager.ts b/packages/room/src/utils/RoomAreaSelectionManager.ts index 8ac67841..e052f97b 100644 --- a/packages/room/src/utils/RoomAreaSelectionManager.ts +++ b/packages/room/src/utils/RoomAreaSelectionManager.ts @@ -47,15 +47,30 @@ export class RoomAreaSelectionManager implements IRoomAreaSelectionManager const brightenFilter = new ColorMatrixFilter(); - brightenFilter.matrix = [1.5, 0, 0, 0, 0, 0, 1.5, 0, 0, 20, 0, 0, 1.5, 0, 20, 0, 0, 0, 1, 0]; + brightenFilter.matrix = [ + 1.5, 0, 0, 0, + 0, 1.5, 0, 0, + 0, 0, 1.5, 0, + 0, 0, 0, 1, + 0, 0.0784, 0.0784, 0]; const blueFilter = new ColorMatrixFilter(); - brightenFilter.matrix = [1.05, 0, 0, 0, 0, 0, 1.3, 0, 0, 8, 0, 0, 1.8, 0, 20, 0, 0, 0, 1, 0]; + blueFilter.matrix = [ + 1.05, 0, 0, 0, + 0, 1.3, 0, 0, + 0, 0, 1.8, 0, + 0, 0, 0, 1, + 0, 0.0314, 0.0784, 0]; const darkenFilter = new ColorMatrixFilter(); - brightenFilter.matrix = [0.55, 0, 0, 0, -10, 0, 0.55, 0, 0, -10, 0, 0, 0.55, 0, -10, 0, 0, 0, 1, 0]; + darkenFilter.matrix = [ + 0.55, 0, 0, 0, + 0, 0.55, 0, 0, + 0, 0, 0.55, 0, + 0, 0, 0, 1, + -0.0392, -0.0392, -0.0392, 0]; RoomAreaSelectionManager.HIGHLIGHT_FILTERS[RoomAreaSelectionManager.HIGHLIGHT_DARKEN] = darkenFilter; RoomAreaSelectionManager.HIGHLIGHT_FILTERS[RoomAreaSelectionManager.HIGHLIGHT_BRIGHTEN] = brightenFilter;