Files
adventureland/js/pixi/fake/pixi.min.js
T
2023-10-15 13:06:58 +03:00

69 lines
1.5 KiB
JavaScript

// #NOGTODO is the hashtag
PIXI={
autoDetectRenderer:function(){
this.plugins={interaction:{cursorStyles:{}}};
this.resize=function(){};
this.render=function(){};
},
RenderTexture:{
create:function(){},
},
Container:function(){
this.destroy=function(){};
this.addChild=function(){};
this.removeChild=function(){};
this.removeChildren=function(){};
this.on=function(){return this;};
this.group={enableSort:true};
this.x=0;
this.y=0;
this.children=[];
this.visible=true;
this.width=26;
this.height=35;
this.anchor={
x:1,
y:1,
set:function(){},
};
this.position={
set:function(x,y){ this.x=x; this.y=y; }
}
},
Texture:function(){
},
Rectangle:function(){
},
Point:function(){
},
extras:{
},
filters:{
OutlineFilter:function(){},
},
display:{
},
SCALE_MODES:{},
RENDERER_TYPE:{},
utils:{BaseTextureCache:{}},
loader:{
on:function(){},
add:function(){},
load:function(f){this.load_function=f;},
load_function:function(){}
},
Graphics:function(){
alert("You are trying to use PIXI.Graphics in 'No Graphics' mode, in your CODE's, make sure you have `if(game.graphics)`-like conditions before all your drawings.");
}
}
Howl=function(){
}
PIXI.CanvasRenderer=PIXI.autoDetectRenderer;
PIXI.WebGLRenderer=PIXI.autoDetectRenderer;
PIXI.Sprite=PIXI.Container;
PIXI.Text=PIXI.Container;
PIXI.display.Stage=PIXI.Container;
PIXI.display.Layer=PIXI.Container;
PIXI.display.Group=PIXI.Container;
PIXI.extras.TilingSprite=PIXI.Container;