MZ Remove Switch Ally Button (< , >)

Untitled-1.png


Help!, how to remove that from equip, skills, and status? because i only use one actor, thank you!
First a couple of notes:
  1. These buttons are part of the Touch UI, which can be enabled/disabled in-game via the options menu.

  2. These two "page buttons" in particular are bound to the pageUp/pageDown inputs (also Q/W, or gamepad LB/RB). By default they display on the skill, equip, and status scenes.
The attached plugin will hide these page buttons if there's only one actor in the party. Full code in spoiler below~
Spoiler: Full plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc Hides the Touch UI page buttons if there's only one party member.
 * @author Caethyril
 * @help Applies to Equip, Skill, and Status scenes.
 * 
 * Terms of use: free to use and/or modify for any project.
 */

for (c of [Scene_Equip, Scene_Skill, Scene_Status]) {
    c.prototype.needsPageButtons = function() {
        return $gameParty.members().length > 1;
    };
};
(You can name this plugin as you like since it has no parameters.)
Thank you so much! it's work!

Original thread: https://forums.rpgmakerweb.com/threads/remove-switch-ally-button.138084/