You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 15:36:18 +00:00
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { ContextMenuEnum } from '@nitrots/api';
|
||||
import { RoomObjectWidgetRequestEvent } from '@nitrots/events';
|
||||
import { FurnitureLogic } from './FurnitureLogic';
|
||||
|
||||
export class FurnitureEffectBoxLogic extends FurnitureLogic
|
||||
{
|
||||
private _timer: any;
|
||||
|
||||
public getEventTypes(): string[]
|
||||
{
|
||||
const types = [RoomObjectWidgetRequestEvent.EFFECTBOX_OPEN_DIALOG];
|
||||
|
||||
return this.mergeTypes(super.getEventTypes(), types);
|
||||
}
|
||||
|
||||
public useObject(): void
|
||||
{
|
||||
if(!this.object || !this.eventDispatcher) return;
|
||||
|
||||
this.eventDispatcher.dispatchEvent(new RoomObjectWidgetRequestEvent(RoomObjectWidgetRequestEvent.EFFECTBOX_OPEN_DIALOG, this.object));
|
||||
}
|
||||
|
||||
public get contextMenu(): string
|
||||
{
|
||||
return ContextMenuEnum.EFFECT_BOX;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user