mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-23 08:00:51 +01:00
Updates
This commit is contained in:
parent
6c308e0611
commit
a1a55038b9
@ -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';
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
@ -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';
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user