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
9a2b740ce7
commit
d43f5d2c84
4
src/core/utils/proxy/NitroPolygon.ts
Normal file
4
src/core/utils/proxy/NitroPolygon.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import { Polygon } from '@pixi/math';
|
||||||
|
|
||||||
|
export class NitroPolygon extends Polygon
|
||||||
|
{}
|
@ -5,6 +5,7 @@ export * from './NitroBaseTexture';
|
|||||||
export * from './NitroContainer';
|
export * from './NitroContainer';
|
||||||
export * from './NitroFilter';
|
export * from './NitroFilter';
|
||||||
export * from './NitroPoint';
|
export * from './NitroPoint';
|
||||||
|
export * from './NitroPolygon';
|
||||||
export * from './NitroRectangle';
|
export * from './NitroRectangle';
|
||||||
export * from './NitroRenderTexture';
|
export * from './NitroRenderTexture';
|
||||||
export * from './NitroSprite';
|
export * from './NitroSprite';
|
||||||
|
@ -117,6 +117,8 @@ export class NitroLocalizationManager extends NitroManager implements INitroLoca
|
|||||||
|
|
||||||
public getValue(key: string, doParams: boolean = true): string
|
public getValue(key: string, doParams: boolean = true): string
|
||||||
{
|
{
|
||||||
|
if(!key || !key.length) return null;
|
||||||
|
|
||||||
if(key.startsWith('${')) key = key.substr(2, (key.length - 3));
|
if(key.startsWith('${')) key = key.substr(2, (key.length - 3));
|
||||||
|
|
||||||
let value = (this._definitions.get(key) || null);
|
let value = (this._definitions.get(key) || null);
|
||||||
|
@ -1550,6 +1550,8 @@ export class RoomObjectEventHandler extends Disposable implements IRoomCanvasMou
|
|||||||
|
|
||||||
private handleMoveTargetFurni(k: number, _arg_2: RoomObjectMouseEvent): boolean
|
private handleMoveTargetFurni(k: number, _arg_2: RoomObjectMouseEvent): boolean
|
||||||
{
|
{
|
||||||
|
if((_arg_2.objectType === RoomObjectUserType.USER) || (_arg_2.objectType === RoomObjectUserType.PET) || (_arg_2.objectType === RoomObjectUserType.BOT) || (_arg_2.objectType === RoomObjectUserType.RENTABLE_BOT) || (_arg_2.objectType === RoomObjectUserType.MONSTER_PLANT)) return;
|
||||||
|
|
||||||
const _local_3 = this._roomEngine.getRoomObject(k, _arg_2.objectId, RoomObjectCategory.FLOOR);
|
const _local_3 = this._roomEngine.getRoomObject(k, _arg_2.objectId, RoomObjectCategory.FLOOR);
|
||||||
const _local_4 = this.getActiveSurfaceLocation(_local_3, _arg_2);
|
const _local_4 = this.getActiveSurfaceLocation(_local_3, _arg_2);
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ export class AnimationSizeData extends SizeData
|
|||||||
|
|
||||||
if(!animation) return false;
|
if(!animation) return false;
|
||||||
|
|
||||||
let animationId = parseInt(key);
|
let animationId = parseInt(key.split('_')[0]);
|
||||||
let isTransition = false;
|
let isTransition = false;
|
||||||
|
|
||||||
const transitionTo = animation.transitionTo;
|
const transitionTo = animation.transitionTo;
|
||||||
|
@ -9,8 +9,10 @@ export class FurnitureYoutubeVisualization extends FurnitureDynamicThumbnailVisu
|
|||||||
{
|
{
|
||||||
if(!this.object) return null;
|
if(!this.object) return null;
|
||||||
|
|
||||||
const url = this.object.model.getValue<string>(RoomObjectVariable.SESSION_URL_PREFIX);
|
const furnitureData = this.object.model.getValue<{ [index: string]: string }>(RoomObjectVariable.FURNITURE_DATA);
|
||||||
|
|
||||||
return (url + FurnitureYoutubeVisualization.THUMBNAIL);
|
if(furnitureData) return (furnitureData[FurnitureYoutubeVisualization.THUMBNAIL_URL] || null);
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -121,6 +121,8 @@ export class Vector3d implements IVector3D
|
|||||||
|
|
||||||
public divide(amount: number): void
|
public divide(amount: number): void
|
||||||
{
|
{
|
||||||
|
if(!amount) return;
|
||||||
|
|
||||||
this._x /= amount;
|
this._x /= amount;
|
||||||
this._y /= amount;
|
this._y /= amount;
|
||||||
this._z /= amount;
|
this._z /= amount;
|
||||||
|
Loading…
Reference in New Issue
Block a user