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
|
// * Plugin options
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
ONSControls.parameters = PluginManager.parameters('VND_ONSControls');
|
ONSControls.options = PluginManager.parameters('VND_ONSControls');
|
||||||
ONSControls.options = {
|
|
||||||
zIndex: this.parameters.zIndex,
|
|
||||||
gamepadId: String(this.parameters.gamepadId),
|
|
||||||
gamepadIndex: this.parameters.gamepadIndex
|
|
||||||
}
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
// * Controls canvas
|
// * Controls canvas
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
@ -77,8 +72,8 @@ ONSControls.createButtons = function() {
|
||||||
ONSControls.createDPad = function() {
|
ONSControls.createDPad = function() {
|
||||||
const container = new PIXI.Sprite.fromImage("js/porting/assets/omori_dpad.png");
|
const container = new PIXI.Sprite.fromImage("js/porting/assets/omori_dpad.png");
|
||||||
const directions = [
|
const directions = [
|
||||||
new PIXI.Sprite(), new PIXI.Sprite(),
|
new PIXI.Sprite(PIXI.Texture.WHITE), new PIXI.Sprite(PIXI.Texture.WHITE),
|
||||||
new PIXI.Sprite(), new PIXI.Sprite()
|
new PIXI.Sprite(PIXI.Texture.WHITE), new PIXI.Sprite(PIXI.Texture.WHITE)
|
||||||
]
|
]
|
||||||
container.anchor.set(0.5);
|
container.anchor.set(0.5);
|
||||||
for (elem of directions) {
|
for (elem of directions) {
|
||||||
|
@ -563,5 +558,4 @@ ONSControls.initialize = function() {
|
||||||
this.createAdditionalButtons();
|
this.createAdditionalButtons();
|
||||||
this.updateButtons();
|
this.updateButtons();
|
||||||
VirtualGamepad.connect();
|
VirtualGamepad.connect();
|
||||||
Window_OmoMenuOptionsONSControls.prototype.add();
|
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue