The member mogwai made the script below but unfortunately I do not know how to use it. I've tried contacting him about instruction but have not received a response. I'm not complaining about that part, he was kind enough to make the script in the first place. I just need some instruction on using this thing.
Any instruction is welcome as I am feeling truly pathetic for not being able to use this properly.
Graphics._updateVisibility = function(videoVisible) {
this._video.style.opacity = "1"; //videoVisible ? 1 : 1;
this._canvas.style.opacity = "1"; //videoVisible ? 1 : 1;
this._canvas.style.zIndex = "2";
this._video.style.zIndex = "1";
};
Spriteset_Base.prototype.createBaseSprite = function() {
this._baseSprite = new Sprite();
this._baseSprite.setFrame(0, 0, this.width, this.height);
this._blackScreen = new ScreenSprite();
this._blackScreen.opacity = 0;
this.addChild(this._baseSprite);
this._baseSprite.addChild(this._blackScreen);
};
Graphics._createRenderer = function() {
PIXI.dontSayHello = true;
var width = this._width;
var height = this._height;
var options = {
view: this._canvas,
transparent: true
};
try {
switch (this._rendererType) {
case 'canvas':
this._renderer = new PIXI.CanvasRenderer(width, height, options);
break;
case 'webgl':
this._renderer = new PIXI.WebGLRenderer(width, height, options);
break;
default:
this._renderer = PIXI.autoDetectRenderer(width, height, options);
break;
}
} catch (e) {
this._renderer = null;
}
};
this._video.style.opacity = "1"; //videoVisible ? 1 : 1;
this._canvas.style.opacity = "1"; //videoVisible ? 1 : 1;
this._canvas.style.zIndex = "2";
this._video.style.zIndex = "1";
};
Spriteset_Base.prototype.createBaseSprite = function() {
this._baseSprite = new Sprite();
this._baseSprite.setFrame(0, 0, this.width, this.height);
this._blackScreen = new ScreenSprite();
this._blackScreen.opacity = 0;
this.addChild(this._baseSprite);
this._baseSprite.addChild(this._blackScreen);
};
Graphics._createRenderer = function() {
PIXI.dontSayHello = true;
var width = this._width;
var height = this._height;
var options = {
view: this._canvas,
transparent: true
};
try {
switch (this._rendererType) {
case 'canvas':
this._renderer = new PIXI.CanvasRenderer(width, height, options);
break;
case 'webgl':
this._renderer = new PIXI.WebGLRenderer(width, height, options);
break;
default:
this._renderer = PIXI.autoDetectRenderer(width, height, options);
break;
}
} catch (e) {
this._renderer = null;
}
};
Any instruction is welcome as I am feeling truly pathetic for not being able to use this properly.