Plugin options into plugins.js
This commit is contained in:
parent
e5e86cb762
commit
f4a3ccd460
2 changed files with 12 additions and 5 deletions
|
@ -4235,6 +4235,11 @@ var $plugins = [
|
||||||
"status": true,
|
"status": true,
|
||||||
"description": "On Screen Controls",
|
"description": "On Screen Controls",
|
||||||
"parameters":
|
"parameters":
|
||||||
{}
|
{
|
||||||
|
"zIndex": 1488,
|
||||||
|
"gamepadId": "Xbox Wireless Controller (STANDARD GAMEPAD Vendor: 045e Product: 02e0)",
|
||||||
|
"gamepadIndex": 0
|
||||||
|
|
||||||
|
}
|
||||||
},
|
},
|
||||||
];
|
];
|
|
@ -6,12 +6,13 @@
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
class ONSControls {};
|
class ONSControls {};
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
// * Options
|
// * Plugin options
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
ONSControls.parameters = PluginManager.parameters('VND_ONSControls');
|
||||||
ONSControls.options = {
|
ONSControls.options = {
|
||||||
zIndex: 1488,
|
zIndex: this.parameters.zIndex,
|
||||||
gamepadId: "Xbox Wireless Controller (STANDARD GAMEPAD Vendor: 045e Product: 02e0)",
|
gamepadId: String(this.parameters.gamepadId),
|
||||||
gamepadIndex: 0
|
gamepadIndex: this.parameters.gamepadIndex
|
||||||
}
|
}
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
// * Controls canvas
|
// * Controls canvas
|
||||||
|
@ -562,4 +563,5 @@ 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