PIXI Controls: Enable by default
This commit is contained in:
parent
bdd4aa7762
commit
a7ed8b3239
3 changed files with 34 additions and 64 deletions
|
@ -112,6 +112,8 @@ Scene_OmoriTitleScreen.prototype.create = function () {
|
|||
// Super Call
|
||||
Scene_BaseEX.prototype.create.call(this);
|
||||
|
||||
// ONSControls
|
||||
ONSControls.initialize();
|
||||
|
||||
this.createFilters();
|
||||
// Create Background
|
||||
|
@ -132,6 +134,7 @@ Scene_OmoriTitleScreen.prototype.create = function () {
|
|||
this.createGeneralOptionsWindow();
|
||||
this.createAudioOptionsWindow();
|
||||
this.createControllerOptionsWindow();
|
||||
this.createONSControlsOptionsWindow(); // ONSControls Settings
|
||||
this.createSystemOptionsWindow();
|
||||
this.createExitPromptWindow();
|
||||
this.createOptionCategoriesWindow();
|
||||
|
|
|
@ -770,39 +770,6 @@ Window_OmoMenuOptionsONSControls.prototype.add = function () {
|
|||
Scene_OmoriTitleScreen.prototype.optionWindows = function () {
|
||||
return [this._generalOptionsWindow, this._audioOptionsWindow, this._controlOptionsWindow, this._onscontrolsOptionsWindow, this._systemOptionsWindow]
|
||||
}
|
||||
Scene_OmoriTitleScreen.prototype.create = function () {
|
||||
// Super Call
|
||||
Scene_BaseEX.prototype.create.call(this);
|
||||
this.createFilters();
|
||||
// Create Background
|
||||
this.createBackground();
|
||||
// Create Omori Sprite
|
||||
this.createOmoriSprite();
|
||||
// Create Title Sprites
|
||||
this.createTitleSprites();
|
||||
// Create Title Commands
|
||||
this.createTitleCommands();
|
||||
// Create Command Hints
|
||||
this.createCommandHints();
|
||||
// Create Version Text
|
||||
this.createVersionText();
|
||||
// Create Options Windows
|
||||
this.createOptionWindowsContainer();
|
||||
this.createHelpWindow();
|
||||
this.createGeneralOptionsWindow();
|
||||
this.createAudioOptionsWindow();
|
||||
this.createControllerOptionsWindow();
|
||||
this.createONSControlsOptionsWindow();
|
||||
this.createSystemOptionsWindow();
|
||||
this.createExitPromptWindow();
|
||||
this.createOptionCategoriesWindow();
|
||||
|
||||
// Update world bitmaps
|
||||
this.updateWorldBitmaps();
|
||||
this.playBgm();
|
||||
this.playBgs();
|
||||
// this._backgroundSprite.filters = [this._glitchFilter]
|
||||
};
|
||||
Scene_OmoMenuOptions.prototype.create = function () {
|
||||
// Super Call
|
||||
Scene_OmoMenuBase.prototype.create.call(this);
|
||||
|
|
|
@ -301,37 +301,37 @@ function setupKey(id, key, keyCode) {
|
|||
|
||||
window.addEventListener('load', () => {
|
||||
create_fps_button(); // Remove in release
|
||||
create_new_controls(); // Remove in release
|
||||
if (navigator.getGamepads().length == 0) {
|
||||
create_control_buttons();
|
||||
create_dpad_buttons();
|
||||
create_show_button();
|
||||
create_switch_button();
|
||||
setupButtons();
|
||||
setupDpad();
|
||||
}
|
||||
// create_new_controls(); // Remove in release
|
||||
// if (navigator.getGamepads().length == 0) {
|
||||
// create_control_buttons();
|
||||
// create_dpad_buttons();
|
||||
// create_show_button();
|
||||
// create_switch_button();
|
||||
// setupButtons();
|
||||
// setupDpad();
|
||||
// }
|
||||
});
|
||||
|
||||
window.addEventListener('gamepadconnected', () => {
|
||||
var DivBMain = document.getElementById("gamepad-div");
|
||||
var DivB_LB = document.getElementById("buttonW");
|
||||
var DivB_RB = document.getElementById("buttonQ");
|
||||
var DivDMain = document.getElementById("dpad-div");
|
||||
var DivJoy = document.getElementById("joyDiv");
|
||||
var ShowB = document.getElementById("switch");
|
||||
// window.addEventListener('gamepadconnected', () => {
|
||||
// var DivBMain = document.getElementById("gamepad-div");
|
||||
// var DivB_LB = document.getElementById("buttonW");
|
||||
// var DivB_RB = document.getElementById("buttonQ");
|
||||
// var DivDMain = document.getElementById("dpad-div");
|
||||
// var DivJoy = document.getElementById("joyDiv");
|
||||
// var ShowB = document.getElementById("switch");
|
||||
|
||||
if (DivBMain !== null) {
|
||||
DivBMain.remove();
|
||||
DivB_LB.remove();
|
||||
DivB_RB.remove();
|
||||
ShowB.remove();
|
||||
switch (currentControlElement) {
|
||||
case "dpad":
|
||||
DivDMain.remove();
|
||||
break;
|
||||
case "joystick":
|
||||
DivJoy.remove();
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
// if (DivBMain !== null) {
|
||||
// DivBMain.remove();
|
||||
// DivB_LB.remove();
|
||||
// DivB_RB.remove();
|
||||
// ShowB.remove();
|
||||
// switch (currentControlElement) {
|
||||
// case "dpad":
|
||||
// DivDMain.remove();
|
||||
// break;
|
||||
// case "joystick":
|
||||
// DivJoy.remove();
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// });
|
Loading…
Add table
Add a link
Reference in a new issue