This commit is contained in:
Bill 2021-07-14 01:35:34 -04:00
parent 6c308e0611
commit a1a55038b9
4 changed files with 8 additions and 6 deletions

View File

@ -8,8 +8,8 @@ export class RoomObjectWidgetRequestEvent extends RoomObjectEvent
public static OPEN_FURNI_CONTEXT_MENU: string = 'ROWRE_OPEN_FURNI_CONTEXT_MENU';
public static CLOSE_FURNI_CONTEXT_MENU: string = 'ROWRE_CLOSE_FURNI_CONTEXT_MENU';
public static PLACEHOLDER: string = 'ROWRE_PLACEHOLDER';
public static CREDITFURNI: string = 'ROWRE__CREDITFURNI';
public static STICKIE: string = 'ROWRE__STICKIE';
public static CREDITFURNI: string = 'ROWRE_CREDITFURNI';
public static STICKIE: string = 'ROWRE_STICKIE';
public static PRESENT: string = 'ROWRE_PRESENT';
public static TROPHY: string = 'ROWRE_TROPHY';
public static TEASER: string = 'ROWRE_TEASER';

View File

@ -45,5 +45,7 @@ export class FurnitureCreditLogic extends FurnitureLogic
public useObject(): void
{
(this.object && this.eventDispatcher && this.eventDispatcher.dispatchEvent(new RoomObjectWidgetRequestEvent(RoomObjectWidgetRequestEvent.CREDITFURNI, this.object)));
super.useObject();
}
}

View File

@ -1,5 +1,5 @@
import { IAssetData } from '../../../../../core/asset/interfaces';
import { RoomWidgetEnum } from '../../../../ui/widget/enums/RoomWidgetEnum';
import { RoomWidgetEnum } from '../../../../ui';
import { RoomObjectVariable } from '../../RoomObjectVariable';
import { FurnitureMultiStateLogic } from './FurnitureMultiStateLogic';

View File

@ -52,7 +52,7 @@ export class FurnitureFriendFurniLogic extends FurnitureMultiStateLogic
{
if(!this.eventDispatcher || !this.object) return;
if(this._state == FurnitureFriendFurniLogic.STATE_LOCKED)
if(this._state === FurnitureFriendFurniLogic.STATE_LOCKED)
{
this.eventDispatcher.dispatchEvent(new RoomObjectWidgetRequestEvent(RoomObjectWidgetRequestEvent.FRIEND_FURNITURE_ENGRAVING, this.object));
}