mirror of
https://github.com/duckietm/Nitro-Cool-UI.git
synced 2025-06-21 22:36:58 +00:00
🆙 Update settings.SCALE_MODE and settings.GC_MAX_IDLE these settings have been replaced with new options.
This commit is contained in:
parent
7a9507e7b8
commit
c46c48b2c3
@ -1,5 +1,5 @@
|
||||
import { Application, IApplicationOptions } from '@pixi/app';
|
||||
import { SCALE_MODES } from '@pixi/constants';
|
||||
import { BaseTexture, SCALE_MODES, TextureGCSystem } from '@pixi/core';
|
||||
import { settings } from '@pixi/settings';
|
||||
import { IAvatarRenderManager, IEventDispatcher, ILinkEventTracker, INitroCommunicationManager, INitroCore, INitroLocalizationManager, IRoomCameraWidgetManager, IRoomEngine, IRoomManager, IRoomSessionManager, ISessionDataManager, ISoundManager, NitroConfiguration, NitroLogger } from '../api';
|
||||
import { ConfigurationEvent, EventDispatcher, NitroCore } from '../core';
|
||||
@ -21,9 +21,9 @@ import { HabboWebTools } from './utils/HabboWebTools';
|
||||
|
||||
LegacyExternalInterface.available;
|
||||
|
||||
settings.SCALE_MODE = (!(window.devicePixelRatio % 1)) ? SCALE_MODES.NEAREST : SCALE_MODES.LINEAR;
|
||||
BaseTexture.defaultOptions.scaleMode = (!(window.devicePixelRatio % 1)) ? SCALE_MODES.NEAREST : SCALE_MODES.LINEAR;
|
||||
settings.ROUND_PIXELS = true;
|
||||
settings.GC_MAX_IDLE = 120;
|
||||
TextureGCSystem.defaultMaxIdle = 120;
|
||||
|
||||
export class Nitro implements INitro
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user