mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-31 11:12:35 +01:00
Random changes
This commit is contained in:
parent
662343fcc7
commit
7179c7e770
@ -39,7 +39,7 @@ export class NitroLogger implements INitroLogger
|
||||
|
||||
public static log(message: string, name: string = 'Nitro', modus: string = null): void
|
||||
{
|
||||
const logString = `[Nitro] ${ new Date().toDateString() } [${ name }] ${ message } ${ this.getTimestamp() }`;
|
||||
const logString = `[Nitro] [${ name }] ${ message } ${ this.getTimestamp() }`;
|
||||
|
||||
switch(modus)
|
||||
{
|
||||
|
@ -225,4 +225,4 @@ export class PetFigureData
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -506,7 +506,7 @@ export class FurnitureVisualization extends RoomObjectSpriteVisualization
|
||||
|
||||
protected getLayerYOffset(scale: number, direction: number, layerId: number): number
|
||||
{
|
||||
if(layerId === this._shadowLayerIndex) return Math.ceil((this._furnitureLift * (64 / 2)));
|
||||
if(layerId === this._shadowLayerIndex) return Math.ceil((this._furnitureLift * (scale / 2)));
|
||||
|
||||
const existing = this._spriteYOffsets[layerId];
|
||||
|
||||
|
@ -258,8 +258,6 @@ export class RoomPreviewer
|
||||
|
||||
if(this.isRoomEngineReady)
|
||||
{
|
||||
if((this._currentPreviewObjectCategory === RoomObjectCategory.FLOOR) && (this._currentPreviewObjectType === classId)) return RoomPreviewer.PREVIEW_OBJECT_ID;
|
||||
|
||||
this.reset(false);
|
||||
|
||||
this._currentPreviewObjectType = classId;
|
||||
@ -512,7 +510,7 @@ export class RoomPreviewer
|
||||
return this._addViewOffset;
|
||||
}
|
||||
|
||||
private updatePreviewObjectBoundingRectangle(point: Point): void
|
||||
public updatePreviewObjectBoundingRectangle(point: Point): void
|
||||
{
|
||||
const objectBounds = this._roomEngine.getRoomObjectBoundingRectangle(this._previewRoomId, RoomPreviewer.PREVIEW_OBJECT_ID, this._currentPreviewObjectCategory, RoomPreviewer.PREVIEW_CANVAS_ID);
|
||||
|
||||
|
@ -11,6 +11,10 @@ export class SpriteUtilities
|
||||
{
|
||||
if(ink == 'ADD' || ink == 33) return BLEND_MODES.ADD;
|
||||
|
||||
if(ink == 'SUBTRACT') return BLEND_MODES.SUBTRACT;
|
||||
|
||||
if(ink == 'DARKEN') return BLEND_MODES.DARKEN;
|
||||
|
||||
return BLEND_MODES.NORMAL;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user