gyugyg
This commit is contained in:
parent
f4a3ccd460
commit
185413ab37
1 changed files with 3 additions and 9 deletions
|
@ -8,12 +8,7 @@ class ONSControls {};
|
|||
//=============================================================================
|
||||
// * Plugin options
|
||||
//=============================================================================
|
||||
ONSControls.parameters = PluginManager.parameters('VND_ONSControls');
|
||||
ONSControls.options = {
|
||||
zIndex: this.parameters.zIndex,
|
||||
gamepadId: String(this.parameters.gamepadId),
|
||||
gamepadIndex: this.parameters.gamepadIndex
|
||||
}
|
||||
ONSControls.options = PluginManager.parameters('VND_ONSControls');
|
||||
//=============================================================================
|
||||
// * Controls canvas
|
||||
//=============================================================================
|
||||
|
@ -77,8 +72,8 @@ ONSControls.createButtons = function() {
|
|||
ONSControls.createDPad = function() {
|
||||
const container = new PIXI.Sprite.fromImage("js/porting/assets/omori_dpad.png");
|
||||
const directions = [
|
||||
new PIXI.Sprite(), new PIXI.Sprite(),
|
||||
new PIXI.Sprite(), new PIXI.Sprite()
|
||||
new PIXI.Sprite(PIXI.Texture.WHITE), new PIXI.Sprite(PIXI.Texture.WHITE),
|
||||
new PIXI.Sprite(PIXI.Texture.WHITE), new PIXI.Sprite(PIXI.Texture.WHITE)
|
||||
]
|
||||
container.anchor.set(0.5);
|
||||
for (elem of directions) {
|
||||
|
@ -563,5 +558,4 @@ ONSControls.initialize = function() {
|
|||
this.createAdditionalButtons();
|
||||
this.updateButtons();
|
||||
VirtualGamepad.connect();
|
||||
Window_OmoMenuOptionsONSControls.prototype.add();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue