RMMV Circular Battle Commands?

Ok, so this is a request for a UI edit to make the battle commands into a circular shape instead of a square/rectangle. The most similar rendition is probably Moghunter's:
1607781458164.png

Another example is SRD's Icon Cycle plugin (except its for the main menu commands, not battle):
1607781569795.png

And this is what the battle command window looks like by default:
1607781647432.png1607781938813.png

Notice how only 4 commands are shown before needing to scroll...
1607781704496.png1607781985650.png

This can actually be adjusted in the LeTBS_Commands.js plugin options. However, it results in a very tall and unattractive window that takes up way too much screen space (for my 960x540 resolution):
1607782284333.png

As you can see, a command "circle" would be the perfect fit for my project. Here is the code which I think handles the command window:
JavaScript:
Window_TBSCommand.prototype.makeCommandList = function () {
    if (this._battler) {
        var str = this.getCommandsString();
        var array = str.split(",").map(function (str) {
            return str.trim();
        }).filter(function(str){
            return str;
        });
        this.makeIcons(array);
        array = array.map(function (str) {
            return str.replace(/\s+\d+/ig, "");
        });
        array.forEach(function (com) {
            if (com.match(/skill\[(\d+)\]/i))
                this.addCommand_skill(Number(RegExp.$1));
            else if (com.match(/item\[(\d+)\]/i))
                this.addCommand_item(Number(RegExp.$1));
            else if (com.match(/event\[(\d+)\]/i))
                this.addCommand_event(Number(RegExp.$1));
            else if (com)
                eval("this.addCommand_" + com + "();");
        }.bind(this));
    }
};

Window_TBSCommand.prototype.getCommandsString = function () {
    var str = this._entity.getCommandsString();
    return str || Lecode.S_TBS.Commands.default.replace(/\[extra\]\s*\,/ig, "");
};

Window_TBSCommand.prototype.makeIcons = function (array) {
    var skillTypes = this._battler.addedSkillTypes();
    skillTypes.sort(function (a, b) {
        return a - b;
    });
    this._icons = [];
    for (var i = 0; i < array.length; i++) {
        var str = array[i];
        if (str.match("skills")) {
            for (var j = 0; j < skillTypes.length; j++) {
                var icon = eval(Lecode.S_TBS.Commands.skillTypeIcons)[skillTypes[j] - 1];
                this._icons.push(icon);
            }
        } else if (str.match(/\s+(\d+)/i)) {
            this._icons.push(Number(RegExp.$1));
        } else if (str.match(/skill\[(\d+)\]/i)) {
            this._icons.push($dataSkills[Number(RegExp.$1)].iconIndex);
        } else if (str.match(/item\[(\d+)\]/i)) {
            this._icons.push($dataItems[Number(RegExp.$1)].iconIndex);
        } else
            this._icons.push(0);
    }
};
If I'm wrong, here's the plugin in its entirety (it wouldn't let me attach for some reason, so I had to copy-paste):
Spoiler: LeTBS_Commands.js
JavaScript:
/*
#=============================================================================
# LeTBS: Commands
# LeTBS_Commands.js
# By Lecode
# Version 1.3
#-----------------------------------------------------------------------------
# TERMS OF USE
#-----------------------------------------------------------------------------
# https://github.com/LecodeMV/leTBS/blob/master/LICENSE.txt
#-----------------------------------------------------------------------------
# Version History
#-----------------------------------------------------------------------------
# - 1.0 : Initial release
# - 1.1 : Do not attempt to preview non-existant skills
# - 1.2 : Do not attempt to preview non-existant items
# - 1.3 : Add a shortcut to common events
#=============================================================================
*/
var Imported = Imported || {};
Imported.LeTBS_Commands = true;

var Lecode = Lecode || {};
Lecode.S_TBS.Commands = {};
/*:
* @plugindesc LeTBS Commands Window
* @author Lecode
* @version 1.3
*
* @param Commands
* @desc Default commands string
* @default move 82, attack 76, [extra], skills, items 182, scan 75, pass 74
*
* @param Move Command Text
* @desc [No description]
* @default Move
*
* @param Scan Command Text
* @desc [No description]
* @default Scan
*
* @param Pass Command Text
* @desc [No description]
* @default End Turn
*
* @param Skill Type Icons
* @desc [No description]
* @default [64, 79, 80]
*
* @param Width
* @desc [No description]
* @default 240
*
* @param Visible Lines
* @desc Visible lines of the window
* @default 4
*
* @param Preview Move Scope
* @desc Show the move scope when the command window is open ?
* @default true
*
* @param Preview Action Scopes
* @desc Show skills and items scopes when the command window is open ?
* @default true
*
* @help
* ============================================================================
* Introduction
* ============================================================================
*
* This is a core plugin. It helps to customize the battle commands window.
* The following extra features are available:
*
* ============================================================================
* Scopes Preview
* ============================================================================
*
* You can set up parameters to preview actions' scopes directly while the
* command window is active.
*
* ============================================================================
* Custom Commands
* ============================================================================
*
* The default commands setup is defined by the first plugin parameter.
* It is the following:
* 'move 82, attack 76, [extra], skills, items 182, scan 75, pass 74'
*
* It is, in fact a little script, which defines which action, with which icon
* will be displayed on the commands window.
* This is the default script and it applies to all your actors, but you can
* define custom scripts for them as well.
*
* To do so, you would have to use a tag (inside the desired actor's notebox):
* <letbs_commands>
* ...(the script goes here)...
* </letbs_commands>
*
* ============================================================================
* How To Set Up Commands Script
* ============================================================================
*
* The script is a list of element, each element being in the following format:
* [command_id] [icon_index]
* So, each element refers to a command (that should be available in the code) and
* an icon index which is displayed next to it.
* [icon_index] is optional.
*
* The [extra] element is a special element who doesn't match this rule.
* '[extra]' is in fact a placeholder for extra commands that are dynamically
* added in play time. For example through an equipment granting a new command.
* So, if for example you move '[extra]' to the beginning of the script,
* the extra commands granted by states or equipments will be displayed at the
* top of the command window.
*
* This is the list of the available commands:
* *move        Move action
* *attack      The default attack command
* *skills      Use skills
* *items       Use items
* *scan        Let you examine battlers and the battle field
* *pass        End the turn
*
* ============================================================================
* Shortcut Commands
* ============================================================================
*
* You can create commands that act like shortcuts to skills, items and common
* events. In that case, [command_id] can be replaced with:
*
* skill[ID]        a shortcut to the specified skill
* item[ID]         a shortcut to the specified item
* event[ID]        a shortcut to a common event.
*
* If [icon_index] is missing, the specified object's icon index will be used.
* (In the case of a skill or an item)
*
* Example of a commands script using the shortcut feature:
* move 82, skill[18], item[1] 5, pass 84, event[10]
*
* ============================================================================
* Extra Commands
* ============================================================================
*
* Equipment and states can add extra commands to your actors' battle commands.
* Simply use this tag:
* <letbs_commands>
* ...(the script goes here)...
* </letbs_commands>
*
* The script will add up to the '[Extra]' element in the base script.
* For instance, let's take a dummy battler with the following commands:
* 'move, [extra], pass'
* and a state with the following tag:
* <letbs_commands>
* skill[18], skill[20]
* </letbs_commands>
*
* The battler will have in fine the following commands: move, skill[18], skill[20], pass
*
*/
//#=============================================================================


/*-------------------------------------------------------------------------
* Get Parameters
-------------------------------------------------------------------------*/
var parameters = PluginManager.parameters('LeTBS_Commands');

Lecode.S_TBS.Commands.default = String(parameters["Commands"] || "move 82, attack 76, [extra], skills, items 182, scan 75, pass 74");    //    (Commands): Default commands string
Lecode.S_TBS.Commands.moveCommandText = String(parameters["Move Command Text"] || "Move");
Lecode.S_TBS.Commands.scanCommandText = String(parameters["Scan Command Text"] || "Scan");
Lecode.S_TBS.Commands.passCommandText = String(parameters["Pass Command Text"] || "End Turn");
Lecode.S_TBS.Commands.skillTypeIcons = String(parameters["Skill Type Icons"] || "[64, 79, 80]");
Lecode.S_TBS.Commands.width = Number(parameters["Width"] || 240);
Lecode.S_TBS.Commands.visibleLines = Number(parameters["Visible Lines"] || 4);    //    (): Visible lines of the window
Lecode.S_TBS.Commands.previewMoveScope = String(parameters["Preview Move Scope"] || 'true') === 'true';    //    (): Show the move scope when the command window is open ?
Lecode.S_TBS.Commands.previewActionScopes = String(parameters["Preview Action Scopes"] || 'true') === 'true';    //    (): Show skills and items scopes when the command window is open ?


/*-------------------------------------------------------------------------
* TBSEntity
-------------------------------------------------------------------------*/
TBSEntity.prototype.getCommandsString = function () {
    var value = this.rpgObject().TagsLetbsCommands.toString();
    var extra = "";
    this.battler().states().forEach(function (state) {
        if (state) {
            extra += " " + state.TagsLetbsCommands.toString();
        }
    });
    if (this.battler().isActor()) {
        this.battler().equips().forEach(function (equip) {
            if (equip) {
                extra += " " + equip.TagsLetbsCommands.toString();
            }
        });
    }
    return LeUtilities.perfectStringList(value.replace("[extra]", extra));
};


/*-------------------------------------------------------------------------
* Window_TBSCommand
-------------------------------------------------------------------------*/
Window_TBSCommand.prototype = Object.create(Window_Command.prototype);
Window_TBSCommand.prototype.constructor = Window_TBSCommand;

Window_TBSCommand.prototype.initialize = function () {
    Window_Command.prototype.initialize.call(this, 0, 0);
    this.openness = 0;
    this.deactivate();
    this._battler = null;
    this._entity = null;
    this._icons = [];
};

Window_TBSCommand.prototype.windowWidth = function () {
    return Lecode.S_TBS.Commands.width;
};

Window_TBSCommand.prototype.numVisibleRows = function () {
    return Lecode.S_TBS.Commands.visibleLines;
};

Window_TBSCommand.prototype.callOkHandler = function () {
    var symbol = this.currentSymbol();
    BattleManagerTBS.getLayer("scopes").clear();
    BattleManagerTBS.clearMoveSelection();
    BattleManagerTBS.clearActionSelection();
    BattleManagerTBS._moveScope = {};
    BattleManagerTBS._actionScope = {};
    if (symbol === "ok" || symbol === "cancel") {
        Window_Command.prototype.callOkHandler.call(this);
        return;
    }
    LeUtilities.getScene().onCommandInput(symbol);
};

Window_TBSCommand.prototype.makeCommandList = function () {
    if (this._battler) {
        var str = this.getCommandsString();
        var array = str.split(",").map(function (str) {
            return str.trim();
        }).filter(function(str){
            return str;
        });
        this.makeIcons(array);
        array = array.map(function (str) {
            return str.replace(/\s+\d+/ig, "");
        });
        array.forEach(function (com) {
            if (com.match(/skill\[(\d+)\]/i))
                this.addCommand_skill(Number(RegExp.$1));
            else if (com.match(/item\[(\d+)\]/i))
                this.addCommand_item(Number(RegExp.$1));
            else if (com.match(/event\[(\d+)\]/i))
                this.addCommand_event(Number(RegExp.$1));
            else if (com)
                eval("this.addCommand_" + com + "();");
        }.bind(this));
    }
};

Window_TBSCommand.prototype.getCommandsString = function () {
    var str = this._entity.getCommandsString();
    return str || Lecode.S_TBS.Commands.default.replace(/\[extra\]\s*\,/ig, "");
};

Window_TBSCommand.prototype.makeIcons = function (array) {
    var skillTypes = this._battler.addedSkillTypes();
    skillTypes.sort(function (a, b) {
        return a - b;
    });
    this._icons = [];
    for (var i = 0; i < array.length; i++) {
        var str = array[i];
        if (str.match("skills")) {
            for (var j = 0; j < skillTypes.length; j++) {
                var icon = eval(Lecode.S_TBS.Commands.skillTypeIcons)[skillTypes[j] - 1];
                this._icons.push(icon);
            }
        } else if (str.match(/\s+(\d+)/i)) {
            this._icons.push(Number(RegExp.$1));
        } else if (str.match(/skill\[(\d+)\]/i)) {
            this._icons.push($dataSkills[Number(RegExp.$1)].iconIndex);
        } else if (str.match(/item\[(\d+)\]/i)) {
            this._icons.push($dataItems[Number(RegExp.$1)].iconIndex);
        } else
            this._icons.push(0);
    }
};

Window_TBSCommand.prototype.addCommand_attack = function () {
    this.addCommand(TextManager.attack, 'attack', this._entity.canAttackCommand());
};

Window_TBSCommand.prototype.addCommand_skills = function () {
    this.addSkillCommands();
};

Window_TBSCommand.prototype.addCommand_guard = function () {
    this.addCommand(TextManager.guard, 'guard', this._entity.canGuard());
};

Window_TBSCommand.prototype.addCommand_items = function () {
    this.addCommand(TextManager.item, 'item', this._entity.canItemCommand());
};

Window_TBSCommand.prototype.addCommand_move = function () {
    this.addCommand(Lecode.S_TBS.Commands.moveCommandText, "move", this._entity.canMoveCommand());
};

Window_TBSCommand.prototype.addCommand_pass = function () {
    this.addCommand(Lecode.S_TBS.Commands.passCommandText, "pass");
};

Window_TBSCommand.prototype.addCommand_scan = function () {
};

Window_TBSCommand.prototype.addCommand_skill = function (id) {
    var skill = $dataSkills[id];
    this.addCommand(skill.name, "skill[" + id + "]", this._entity.canSkillCommand(), skill.stypeId);
};

Window_TBSCommand.prototype.addCommand_item = function (id) {
    var item = $dataItems[id];
    var canUse = this._entity.battler().canUse(item);
    this.addCommand(skill.name, "item[" + id + "]", canUse);
};

Window_TBSCommand.prototype.addCommand_event = function (id) {
    this.addCommand(skill.name, "event[" + id + "]", true);
};

Window_TBSCommand.prototype.addSkillCommands = function () {
    var skillTypes = this._battler.addedSkillTypes();
    skillTypes.sort(function (a, b) {
        return a - b;
    });
    skillTypes.forEach(function (stypeId) {
        var name = $dataSystem.skillTypes[stypeId];
        this.addCommand(name, 'skill', this._entity.canSkillCommand(), stypeId);
    }, this);
};

Window_TBSCommand.prototype.setup = function (actor, entity) {
    this._battler = actor;
    this._entity = entity;
    this.clearCommandList();
    this.makeCommandList();
    this.refresh();
    this.selectLast();
    this.activate();
    this.show();
    this.open();
};

Window_TBSCommand.prototype.update = function () {
    Window_Command.prototype.update.call(this);
    if (this._entity) {
        this._entity.attachWindow(this);
    }
};

Window_TBSCommand.prototype.processOk = function () {
    if (this._battler) {
        this._battler.setLastCommandSymbol(this.currentSymbol());
    }
    Window_Command.prototype.processOk.call(this);
};

Window_TBSCommand.prototype.selectLast = function () {
    this.select(0);
    if (this._battler) {
        var last = this._battler.lastCommandSymbol();
        if (last !== "pass")
            this.selectSymbol(last);
    }
};

Window_TBSCommand.prototype.drawItem = function (index) {
    var rect = this.itemRectForText(index);
    var align = this.itemTextAlign();
    this.resetTextColor();
    this.changePaintOpacity(this.isCommandEnabled(index));
    this.drawIcon(this.commandIcon(index), rect.x, rect.y + 2);
    rect.x += Window_Base._iconWidth + 2;
    this.drawText(this.commandName(index), rect.x, rect.y, rect.width, align);
};

Window_TBSCommand.prototype.commandIcon = function (index) {
    return this._icons[index];
};

Window_TBSCommand.prototype.callUpdateHelp = function () {
    if (this.active) {
        this.updateHelp();
    }
};

Window_TBSCommand.prototype.updateHelp = function () {
    if (!this._list[0]) return;
    var symbol = this.commandSymbol(this.index());
    if (BattleManagerTBS._spriteset) {
        BattleManagerTBS.getLayer("scopes").clear();
        BattleManagerTBS.clearMoveSelection();
        BattleManagerTBS.clearActionSelection();
        BattleManagerTBS._moveScope = {};
        BattleManagerTBS._actionScope = {};
    }
    if (symbol.match(/skill\[(\d+)\]/i) && Lecode.S_TBS.Commands.previewActionScopes)
        BattleManagerTBS.previewObjectScope(this._entity, $dataSkills[Number(RegExp.$1)], "skill");
    else if (symbol.match(/item\[(\d+)\]/i) && Lecode.S_TBS.Commands.previewActionScopes)
        BattleManagerTBS.previewObjectScope(this._entity, $dataItems[Number(RegExp.$1)], "item");
    else if (symbol === "attack" && Lecode.S_TBS.Commands.previewActionScopes)
        BattleManagerTBS.previewObjectScope(this._entity, null, "attack");
    else if (symbol === "move" && Lecode.S_TBS.Commands.previewMoveScope)
        BattleManagerTBS.drawMoveScope(this._entity);
};


/*-------------------------------------------------------------------------
* Window_TBSSkillList
-------------------------------------------------------------------------*/
Window_TBSSkillList.prototype.updateHelp = function () {
    Window_BattleSkill.prototype.updateHelp.call(this);
    if (Lecode.S_TBS.Commands.previewActionScopes && this.item())
        BattleManagerTBS.previewObjectScope(this._entity, this.item(), "skill");
};

Window_TBSSkillList.prototype.selectLast = function () {
    var skill = BattleManagerTBS.activeAction().item();
    var index = this._data.indexOf(skill);
    this.select(index >= 0 ? index : 0);
    this.updateHelp();
};


/*-------------------------------------------------------------------------
* Window_TBSItemList
-------------------------------------------------------------------------*/
Window_TBSItemList.prototype.updateHelp = function () {
    Window_BattleItem.prototype.updateHelp.call(this);
    if (Lecode.S_TBS.Commands.previewActionScopes && this.item())
        BattleManagerTBS.previewObjectScope(this._entity, this.item(), "item");
};

Window_TBSItemList.prototype.selectLast = function () {
    var skill = BattleManagerTBS.activeAction().item();
    var index = this._data.indexOf(skill);
    this.select(index >= 0 ? index : 0);
    this.updateHelp();
};


/*-------------------------------------------------------------------------
* BattleManagerTBS
-------------------------------------------------------------------------*/
Lecode.S_TBS.Commands.oldBattleManagerTBS_onCommandInput = BattleManagerTBS.onCommandInput;
BattleManagerTBS.onCommandInput = function (command) {
    if (command.match(/skill\[(\d+)\]/i)) {
        this.processCommandCallSkill(Number(RegExp.$1));
        return;
    }
    Lecode.S_TBS.Commands.oldBattleManagerTBS_onCommandInput.call(this, command);
};

BattleManagerTBS.processCommandCallSkill = function (id) {
    var skill = $dataSkills[id];
    if (skill) {
        this._subPhase = "skill";
        this.activeAction().setItemObject(skill);
        this.drawSkillScope(this.activeEntity(), skill);
    }
};

BattleManagerTBS.processCommandCallItem = function (id) {
    var item = $dataItems[id];
    if (item) {
        this._subPhase = "item";
        this.activeAction().setItemObject(item);
        this.drawItemScope(this.activeEntity(), item);
    }
};

BattleManagerTBS.processCommandCallEvent = function (id) {
    var list = $dataCommonEvents[id].list;
    if (list)
        $gameTroop._interpreter.setupInQueue(list);
};

BattleManagerTBS.previewObjectScope = function (entity, item, type) {
    this.activeAction().setItemObject(item);
    if (type === "skill")
        this.drawSkillScope(entity, item);
    else if (type === "attack")
        this.drawAttackScope(entity);
    else
        this.drawItemScope(entity, item);
};


/*-------------------------------------------------------------------------
* Scene_Boot
-------------------------------------------------------------------------*/
Lecode.S_TBS.Commands.oldSceneBoot_getLeTBSMainTags = Scene_Boot.prototype.getLeTBSMainTags;
Scene_Boot.prototype.getLeTBSMainTags = function () {
    return Lecode.S_TBS.Commands.oldSceneBoot_getLeTBSMainTags.call(this)
        .concat({ name: "letbs_commands", type: "array" }); //TagsLetbsCommands
};
And for convenience, I'll also post Moghunter's & SRD's plugins as a reference:
Spoiler: SRD Plugin
JavaScript:
/*:
* @plugindesc Alternative Menu Screen Icon Cycle. Uses Icons and allows the Player to cycle through them.
* @author SumRndmDde
*
* @param Item Icon
* @desc The icon index of the icon used for the "Item" choice.
* Right-click and press "IconSet Viewer".
* @default 176
*
* @param Skill Icon
* @desc The icon index of the icon used for the "Skill" choice.
* Right-click and press "IconSet Viewer".
* @default 64
*
* @param Equip Icon
* @desc The icon index of the icon used for the "Equip" choice.
* Right-click and press "IconSet Viewer".
* @default 96
*
* @param Status Icon
* @desc The icon index of the icon used for the "Status" choice.
* Right-click and press "IconSet Viewer".
* @default 87
*
* @param Formation Icon
* @desc The icon index of the icon used for the "Formation" choice.
* Right-click and press "IconSet Viewer".
* @default 82
*
* @param Options Icon
* @desc The icon index of the icon used for the "Options" choice.
* Right-click and press "IconSet Viewer".
* @default 83
*
* @param Save Icon
* @desc The icon index of the icon used for the "Save" choice.
* Right-click and press "IconSet Viewer".
* @default 225
*
* @param Game End Icon
* @desc The icon index of the icon used for the "Game End" choice.
* Right-click and press "IconSet Viewer".
* @default 245
*
* @param == Icon Cycle ==
* @default
*
* @param Cycle Speed
* @desc Speed in which the circle cycles.
* Can be Number or JavaScript evaluation.
* @default 0.05
*
* @param Cycle Anchor
* @desc Angle where the main Icon goes.
* Can be Number or JavaScript evaluation.
* @default Math.PI * (3/2)
*
* @param Cycle Radius
* @desc The radius of the circle the Icons cycle on.
* Can be Number or JavaScript evaluation.
* @default 120
*
* @param Cycle X
* @desc The X position of the circle the Icons cycle on.
* Can be Number or JavaScript evaluation.
* @default 160
*
* @param Cycle Y
* @desc The Y position of the circle the Icons cycle on.
* Can be Number or JavaScript evaluation.
* @default 140
*
* @param == Icon Window ==
* @default
*
* @param Icon Window X
* @desc The X position of the command (icons) window.
* Can be Number or JavaScript evaluation.
* @default (Graphics.width / 2) - (this._commandWindow.width / 2)
*
* @param Icon Window Y
* @desc The Y position of the command (icons) window.
* Can be Number or JavaScript evaluation.
* @default (Graphics.height / 2) - (this._commandWindow.height / 2)
*
* @param Icon Window Width
* @desc The width of the command (icons) window.
* Can be Number or JavaScript evaluation.
* @default 370
*
* @param Icon Window Height
* @desc The height of the command (icons) window.
* Can be Number or JavaScript evaluation.
* @default 370
*
* @param == Actor Window ==
* @default
*
* @param Text Align
* @desc The alignment of the text in the window.
* Can be: 'left', 'right', or 'center'.
* @default center
*
* @param Actor Window X
* @desc The X position of the actor window.
* Can be Number or JavaScript evaluation.
* @default (Graphics.width / 2) - (this._statusWindow.width / 2)
*
* @param Actor Window Y
* @desc The Y position of the actor window.
* Can be Number or JavaScript evaluation.
* @default (Graphics.height / 2) - (this._statusWindow.height / 2)
*
* @param == Gold Window ==
* @default
*
* @param Gold Window X
* @desc The X position of the gold window.
* Can be Number or JavaScript evaluation.
* @default 0
*
* @param Gold Window Y
* @desc The Y position of the gold window.
* Can be Number or JavaScript evaluation.
* @default Graphics.boxHeight - this._goldWindow.height
*
* @param == Custom Commands ==
* @default
*
* @param Command Symbol 1
* @desc The symbol of the command that will have Command Icon 1.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 1
* @desc The icon of the command that will have Command Icon 1.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 2
* @desc The symbol of the command that will have Command Icon 2.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 2
* @desc The icon of the command that will have Command Icon 2.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 3
* @desc The symbol of the command that will have Command Icon 3.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 3
* @desc The icon of the command that will have Command Icon 3.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 4
* @desc The symbol of the command that will have Command Icon 4.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 4
* @desc The icon of the command that will have Command Icon 4.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 5
* @desc The symbol of the command that will have Command Icon 5.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 5
* @desc The icon of the command that will have Command Icon 5.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 6
* @desc The symbol of the command that will have Command Icon 6.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 6
* @desc The icon of the command that will have Command Icon 6.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 7
* @desc The symbol of the command that will have Command Icon 7.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 7
* @desc The icon of the command that will have Command Icon 7.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 8
* @desc The symbol of the command that will have Command Icon 8.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 8
* @desc The icon of the command that will have Command Icon 8.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 9
* @desc The symbol of the command that will have Command Icon 9.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 9
* @desc The icon of the command that will have Command Icon 9.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 10
* @desc The symbol of the command that will have Command Icon 10.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 10
* @desc The icon of the command that will have Command Icon 10.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 11
* @desc The symbol of the command that will have Command Icon 11.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 11
* @desc The icon of the command that will have Command Icon 11.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 12
* @desc The symbol of the command that will have Command Icon 12.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 12
* @desc The icon of the command that will have Command Icon 12.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 13
* @desc The symbol of the command that will have Command Icon 13.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 13
* @desc The icon of the command that will have Command Icon 13.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 14
* @desc The symbol of the command that will have Command Icon 14.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 14
* @desc The icon of the command that will have Command Icon 14.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 15
* @desc The symbol of the command that will have Command Icon 15.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 15
* @desc The icon of the command that will have Command Icon 15.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 16
* @desc The symbol of the command that will have Command Icon 16.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 16
* @desc The icon of the command that will have Command Icon 16.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 17
* @desc The symbol of the command that will have Command Icon 17.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 17
* @desc The icon of the command that will have Command Icon 17.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 18
* @desc The symbol of the command that will have Command Icon 18.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 18
* @desc The icon of the command that will have Command Icon 18.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 19
* @desc The symbol of the command that will have Command Icon 19.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 19
* @desc The icon of the command that will have Command Icon 19.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Symbol 20
* @desc The symbol of the command that will have Command Icon 20.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @param Command Icon 20
* @desc The icon of the command that will have Command Icon 20.
* The order it's listed in the Parameters is irrelevant.
* @default
*
* @help
*
*
* Alternative Menu Screen: Icon Cycle
* Version 1.00
* SumRndmDde
*
*
* Changelog (v1.01): Fixed Actor Window Cancel
*
*
* Gives your game an alternative menu screen.
*
* This menu is based off of a wheel that cycles through Icons.
*
* You can manipulate the Icons used by using the Parameters at the top
* of the list.
*
*
* ==========================================================================
*  Setting up Icons for Custom Commands
* ==========================================================================
*
* At the very bottom of the Parameter list, there are places available
* for inputting Icons for custom commands.
*
* You need to first provide the "symbol" of the command.
* (A symbol is usually a word. For example, the symbol for the Debug
* Command added by Yanfly's Main Menu Manager is "debug" (without quotes))
*
* Then, after you have done so, you can place the Icon Index in the
* proceeding Parameter.
*
* If you're using Yanfly's Main Menu Manager, you can find a command's
* symbol in the Parameter section it's help in.
*
*
* On the other hand, if you have a Plugin that adds a command without
* telling you the symbol for it, leave a comment on the YouTube video
* or Forum post linking me to the Plugin; I'll help ya. ~
*
*
* ==========================================================================
*  End of Help File
* ==========================================================================
*
* Welcome to the bottom of the Help file.
*
*
* Thanks for reading!
* If you have questions, or if you enjoyed this Plugin, please check
* out my YouTube channel!
*
* https://www.youtube.com/c/SumRndmDde
*
*
* Until next time,
*   ~ SumRndmDde
*/

var Imported = Imported || {};

(function() {

    var icons = {};
    icons['item'] = Number(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Item Icon']);
    icons['skill'] = Number(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Skill Icon']);
    icons['equip'] = Number(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Equip Icon']);
    icons['status'] = Number(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Status Icon']);
    icons['formation'] = Number(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Formation Icon']);
    icons['options'] = Number(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Options Icon']);
    icons['save'] = Number(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Save Icon']);
    icons['gameEnd'] = Number(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Game End Icon']);

    for(var i = 1; i <= 20; i++) {
        var sym = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Command Symbol ' + i]);
        if(sym.trim().length > 0) {
            icons[sym] = Number(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Command Icon ' + i]);
        }
    }
    var _cycS = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Cycle Speed']);
    var _cycA = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Cycle Anchor']);
    var _cycR = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Cycle Radius']);
    var _cycX = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Cycle X']);
    var _cycY = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Cycle Y']);

    var _x = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Icon Window X']);
    var _y = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Icon Window Y']);
    var _w = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Icon Window Width']);
    var _h = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Icon Window Height']);

    var _actorX = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Actor Window X']);
    var _actorY = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Actor Window Y']);
    var _align = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Text Align']);
    var _goldX = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Gold Window X']);
    var _goldY = String(PluginManager.parameters('SRD_AltMenuScreen_IconCycle')['Gold Window Y']);

    var _Scene_Menu_create = Scene_Menu.prototype.create;
    Scene_Menu.prototype.create = function() {
        _Scene_Menu_create.call(this);
        this._commandWindow.x = eval(_x);
        this._commandWindow.y = eval(_y);
        this._statusWindow.x = eval(_actorX);
        this._statusWindow.y = eval(_actorY);
        this._goldWindow.x = eval(_goldX);
        this._goldWindow.y = eval(_goldY);
    };
    var _Scene_Menu_commandPersonal = Scene_Menu.prototype.commandPersonal;
    Scene_Menu.prototype.commandPersonal = function() {
        this._statusWindow.open();
        _Scene_Menu_commandPersonal.call(this);
    };
    var _Scene_Menu_onPersonalCancel = Scene_Menu.prototype.onPersonalCancel;
    Scene_Menu.prototype.onPersonalCancel = function() {
        _Scene_Menu_onPersonalCancel.call(this);
        this._statusWindow.close();
    };
    var _Scene_Menu_commandFormation = Scene_Menu.prototype.commandFormation;
    Scene_Menu.prototype.commandFormation = function() {
        this._statusWindow.open();
        _Scene_Menu_commandFormation.call(this);
    };
    var _Scene_Menu_onFormationCancel = Scene_Menu.prototype.onFormationCancel;
    Scene_Menu.prototype.onFormationCancel = function() {
        if (this._statusWindow.pendingIndex() < 0) {
            this._statusWindow.close();
        }
        _Scene_Menu_onFormationCancel.call(this);
    };
    var _Scene_ItemBase_createActorWindow = Scene_ItemBase.prototype.createActorWindow;
    Scene_ItemBase.prototype.createActorWindow = function() {
        _Scene_ItemBase_createActorWindow.call(this);
        this._actorWindow.open();
    };
    var _Window_MenuCommand_initialize = Window_MenuCommand.prototype.initialize;
    Window_MenuCommand.prototype.initialize = function(x, y) {
        _Window_MenuCommand_initialize.call(this, x, y);
        this._tempIndex = -1;
        this._animationCycle = 0;
        this._animationSpeed = 0;
    };
    Window_MenuCommand.prototype.windowWidth = function() {
        return eval(_w);
    };
    Window_MenuCommand.prototype.windowHeight = function() {
        return eval(_h);
    };
    Window_MenuCommand.prototype.maxCols = function() {
        return this.maxItems();
    };
    Window_MenuCommand.prototype.numVisibleRows = function() {
        return 1;
    };
    Window_MenuCommand.prototype.textPadding = function() {
        return 6;
    };
    Window_MenuCommand.prototype.drawItem = function(index) {
        var coords = this.getCoordinatesForIndex(index);
        var align = this.itemTextAlign();
        var symbol = this.commandSymbol(index);
        var enabled = this.isCommandEnabled(index);
        this.resetTextColor();
        var bitmap = ImageManager.loadSystem('IconSet');
        var pw = Window_Base._iconWidth;
        var ph = Window_Base._iconHeight;
        var sx = icons[symbol] % 16 * pw;
        var sy = Math.floor(icons[symbol] / 16) * ph;
        if(!enabled) this.contents.paintOpacity = 100;
        this.contents.blt(bitmap, sx, sy, pw, ph, coords.x, coords.y);
        if(!enabled) this.contents.paintOpacity = 255;
        if(this.currentData()) {
            var width = this.textWidth(this.currentData().name) + 20;
            var height = this.lineHeight();
            this.drawText(this.currentData().name, (this.width / 2) - (width / 2),
                (this.height / 2) - (height / 2), this.width);
        }
    };
    Window_MenuCommand.prototype._refreshCursor = function() {
    };
    Window_MenuCommand.prototype.getCoordinatesForIndex = function(index) {
        index = index - this.index();
        var result = {x: 0, y: 0};
        var portions = ((Math.PI * 2) / this.maxItems());
        var angle = eval(_cycA) + (portions * index) - this._animationCycle;
        result.x = Math.round(Math.cos(angle)*eval(_cycR)) + eval(_cycX);
        result.y = Math.round(Math.sin(angle)*eval(_cycR)) + eval(_cycY);
        return result;
    };
    Window_MenuCommand.prototype.cursorLeft = function(wrap) {
        if(this._animationCycle <= 0) {
            var index = this.index();
            var maxItems = this.maxItems();
            var maxCols = this.maxCols();
            wrap = true;
            if (maxCols >= 2 && (index > 0 || (wrap))) {
                this.select((index - 1 + maxItems) % maxItems);
            }
            this._animationCycle += ((Math.PI * 2) / this.maxItems());
            this._animationSpeed = eval(_cycS);
        }
    };
    Window_MenuCommand.prototype.cursorRight = function(wrap) {
        if(this._animationCycle >= 0) {
            var index = this.index();
            var maxItems = this.maxItems();
            var maxCols = this.maxCols();
            wrap = true;
            if (maxCols >= 2 && (index < maxItems - 1 || (wrap))) {
                this.select((index + 1) % maxItems);
            }
            this._animationCycle += -((Math.PI * 2) / this.maxItems());
            this._animationSpeed = eval(_cycS);
        }
    };
    var _Window_MenuCommand_update = Window_MenuCommand.prototype.update;
    Window_MenuCommand.prototype.update = function() {
        _Window_MenuCommand_update.call(this);
        if(this._animationCycle === undefined) this._animationCycle = 0;
        if(this._tempIndex != this.index()) {
            this.contents.clear();
            this._tempIndex = this.index();
            this.drawAllItems();
        }
        if(Math.abs(this._animationCycle) > 0) {
            if(this._animationCycle > 0) this._animationCycle -= this._animationSpeed;
            if(this._animationCycle < 0) this._animationCycle += this._animationSpeed;
            if(Math.abs(this._animationCycle) < this._animationSpeed) this._animationCycle = 0;
            this.contents.clear();
            this.drawAllItems();
        }
    }
    var _Window_MenuStatus_initialize = Window_MenuStatus.prototype.initialize;
    Window_MenuStatus.prototype.initialize = function(x, y) {
        _Window_MenuStatus_initialize.call(this, x, y);
        this.openness = 0;
    };
    Window_MenuStatus.prototype.windowWidth = function() {
        return 240;
    };
    Window_MenuStatus.prototype.windowHeight = function() {
        return this.fittingHeight(this.numVisibleRows());
    };
    Window_MenuStatus.prototype.numVisibleRows = function() {
        return Math.ceil(this.maxItems() / this.maxCols());
    };
    Window_MenuStatus.prototype.itemHeight = function() {
        return this.lineHeight();
    };
    Window_MenuStatus.prototype.drawItem = function(index) {
        this.drawItemBackground(index);
        var rect = this.itemRectForText(index);
        var align = _align;
        this.resetTextColor();
        this.drawText($gameParty.members()[index].name(), rect.x, rect.y, rect.width, align);
    };
    if(Imported.YEP_MainMenuManager) {
        Scene_Menu.prototype.resizeGoldWindow = function() {};
    }
})();
Spoiler: MOG Plugin
JavaScript:
//=============================================================================
// MOG_BattleCommands.js                      (Template - 2)
//=============================================================================

/*:
* @plugindesc (v1.3 *) Comandos de batalhas animados por imagens.
* @author Moghunter
*
* @param -> MAIN <<<<<<<<<<<<<<<<<<<<<<<
* @desc
*
* @param Mode
* @parent -> MAIN <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição do tipo de comando.
* 0 - Normal     1 - Ring Command
* @default 1
* @type select
* @option (0) Normal
* @value 0
* @option (1) Ring Command
* @value 1
*
* @param Row Max
* @parent -> MAIN <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição da quantidade comandos visíveis.
* @default 4
*
* @param Side Input
* @parent -> MAIN <<<<<<<<<<<<<<<<<<<<<<<
* @desc Ativar Input para o lado direito e esquerdo.
* @default true
* @type boolean
*
* @param
*
* @param -> RING COMMAND <<<<<<<<<<<<<<<<<<<<<<<
* @desc
*
* @param Ring Range
* @parent -> RING COMMAND <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição da circunferência do circulo.
* @default 70
*
* @param Ring Motion
* @parent -> RING COMMAND <<<<<<<<<<<<<<<<<<<<<<<
* @desc Ativar animação de movimento.
* @default true
* @type boolean
*
* @param Pi Range
* @parent -> RING COMMAND <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição do valor do PI.
* @default 2.0
*
* @param
*
* @param -> POSITION <<<<<<<<<<<<<<<<<<<<<<<
* @desc
*
* @param Com X-axis
* @parent -> POSITION <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição X-Axis da imagem.
* @default 0
*
* @param Com Y-axis
* @parent -> POSITION <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição Y-Axis da imagem.
* @default 0
*
* @param Layout X-axis
* @parent -> POSITION <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição X-Axis da imagem.
* @default 22
*
* @param Layout Y-axis
* @parent -> POSITION <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição Y-Axis da imagem.
* @default 15
*
* @param
*
* @param -> ARROW <<<<<<<<<<<<<<<<<<<<<<<
* @desc
*
* @param Arrow
* @parent -> ARROW <<<<<<<<<<<<<<<<<<<<<<<
* @desc Ativar a imagem das flechas.
* @default false
* @type boolean
*
* @param Arrow X-axis
* @parent -> ARROW <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição X-Axis da imagem.
* @default 0
*
* @param Arrow Y-axis
* @parent -> ARROW <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição Y-Axis da imagem.
* @default 0
*
* @param
*
* @param -> COMMAND NAME <<<<<<<<<<<<<<<<<<<<<<<
* @desc
*
* @param Com Name
* @parent -> COMMAND NAME <<<<<<<<<<<<<<<<<<<<<<<
* @desc Ativar o nome do comando.
* @default true
* @type boolean
*
* @param Com Name X-axis
* @parent -> COMMAND NAME <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição X-Axis do nome.
* @default 55
*
* @param Com Name Y-axis
* @parent -> COMMAND NAME <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição Y-Axis do nome.
* @default 75
*
* @param Com Font Size
* @parent -> COMMAND NAME <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição do tamanho da fonte.
* @default 22
*
* @param
*
* @param -> CURSOR <<<<<<<<<<<<<<<<<<<<<<<
* @desc
*
* @param Cursor
* @parent -> CURSOR <<<<<<<<<<<<<<<<<<<<<<<
* @desc Ativar cursor.
* @default true
* @type boolean
*
* @param Cursor X-axis
* @parent -> CURSOR <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição X-Axis do cursor.
* @default 0
*
* @param Cursor Y-axis
* @parent -> CURSOR <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição X-Axis do cursor.
* @default 0
*
* @param Cursor Slide
* @parent -> CURSOR <<<<<<<<<<<<<<<<<<<<<<<
* @desc Ativar a animação de deslize.
* @default true
* @type boolean
*
* @param
*
* @param -> FACE <<<<<<<<<<<<<<<<<<<<<<<
* @desc
*
* @param Face
* @parent -> FACE <<<<<<<<<<<<<<<<<<<<<<<
* @desc Apresentar Face.
* @default true
* @type boolean
*
* @param Face X-axis
* @parent -> FACE <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição X-Axis da face do personagem.
* @default 0
*
* @param Face Y-axis
* @parent -> FACE <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição Y-Axis da face do personagem.
* @default -50
*
* @param
*
* @param -> ZOOM <<<<<<<<<<<<<<<<<<<<<<<
* @desc
*
* @param Zoom Animation
* @parent -> ZOOM <<<<<<<<<<<<<<<<<<<<<<<
* @desc Ativar o efeito de zoom.
* @default true
* @type boolean
*
* @param Zoom Rate
* @parent -> ZOOM <<<<<<<<<<<<<<<<<<<<<<<
* @desc Poder do zoom.
* @default 1.30
*
* @param Zoom Speed
* @parent -> ZOOM <<<<<<<<<<<<<<<<<<<<<<<
* @desc Velocidade do zoom.
* @default 0.015
*
* @param Zoom Loop
* @parent -> ZOOM <<<<<<<<<<<<<<<<<<<<<<<
* @desc Ativar loop na animação do zoom.
* @default true
* @type boolean
*
* @param
*
* @param -> SLIDE ANIMATION <<<<<<<<<<<<<<<<<<<<<<<
* @desc
*
* @param Slide Animation
* @parent -> SLIDE ANIMATION <<<<<<<<<<<<<<<<<<<<<<<
* @desc Ativar animação de deslize.
* @default false
* @type boolean
*
* @param Slide X
* @parent -> SLIDE ANIMATION <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição da distância X.
* @default 0
*
* @param Slide Y
* @parent -> SLIDE ANIMATION <<<<<<<<<<<<<<<<<<<<<<<
* @desc Definição da distância Y.
* @default 0
*
* @help
* =============================================================================
* +++ MOG - Battle Commands (v1.3) +++
* By Moghunter
* https://atelierrgss.wordpress.com/
* =============================================================================
* Comandos de batalhas animados por imagens.
* Este plugin requer o MOG_BattleHud para funcionar.
*
* =============================================================================
* - REQUIRED FILES
* =============================================================================

* As imagens dos comandos deverão ser gravados na pasta /img/battlecommands/
* O nomes das imagens deverão seguir a seguinte nomeação.
*
* Com_ + COMMAND NAME.png
*
* Exemplo
*
* -> Com_Attack.png
* -> Com_Guard.png
* -> Com_Magic.png
* ...
*
* =============================================================================
* - FACES
* =============================================================================
* Para definir as faces dos personagens nomeie da seguinte forma.
*
* Face_ + Actor ID.png
*
* EG
*
* -> Face_1.png
* -> Face_2.png
* -> Face_3.png
* -> ...
*
* ============================================================================
* - WHAT'S  NEW (version 1.3)
* ============================================================================
* - (NEW) - Plugins parameters compatíveis com RM1.5+
* - (BUG FIX) - Correção da posição da janela no modo Ring Command. 
*/

//=============================================================================
// ** PLUGIN PARAMETERS
//=============================================================================
  var Imported = Imported || {};
  Imported.MOG_BattleCommands = true;
  var Moghunter = Moghunter || {};

    Moghunter.parameters = PluginManager.parameters('MOG_BattleCommands');
    Moghunter.bcom_mode = Number(Moghunter.parameters['Mode'] || 0);
    Moghunter.bcom_lay_x = Number(Moghunter.parameters['Layout X-axis'] || -45);
    Moghunter.bcom_lay_y = Number(Moghunter.parameters['Layout Y-axis'] || -25);
    Moghunter.bcom_com_x = Number(Moghunter.parameters['Com X-axis'] || -10);
    Moghunter.bcom_com_y = Number(Moghunter.parameters['Com Y-axis'] || 0);
    Moghunter.bcom_arrow = String(Moghunter.parameters['Arrow'] || true);
    Moghunter.bcom_arrow_x = Number(Moghunter.parameters['Arrow X-axis'] || 5);
    Moghunter.bcom_arrow_y = Number(Moghunter.parameters['Arrow Y-axis'] || 0);
    Moghunter.bcom_row_max = Number(Moghunter.parameters['Row Max'] || 4);
    Moghunter.bcom_zoom_effect = String(Moghunter.parameters['Zoom Animation'] || true);
    Moghunter.bcom_zoom_rate = Number(Moghunter.parameters['Zoom Rate'] || 1.30);
    Moghunter.bcom_zoom_speed = Number(Moghunter.parameters['Zoom Speed'] || 0.015);
    Moghunter.bcom_zoom_loop = String(Moghunter.parameters['Zoom Loop'] || true);
    Moghunter.bcom_slide_effect = String(Moghunter.parameters['Slide Animation'] || true);
    Moghunter.bcom_slide_x = Number(Moghunter.parameters['Slide X'] || 30);
    Moghunter.bcom_slide_y = Number(Moghunter.parameters['Slide Y'] || 0);
    Moghunter.bcom_com_name = String(Moghunter.parameters['Com Name'] || false);
    Moghunter.bcom_com_name_x = Number(Moghunter.parameters['Com Name X-axis'] || 55);
    Moghunter.bcom_com_name_y = Number(Moghunter.parameters['Com Name Y-axis'] || 75);
    Moghunter.bcom_com_font_size = Number(Moghunter.parameters['Com Font Size'] || 22);
    Moghunter.bcom_ring_range = Number(Moghunter.parameters['Ring Range'] || 70);
    Moghunter.bcom_pi_range = Number(Moghunter.parameters['Pi Range'] || 2.0);
    Moghunter.bcom_ring_anime = String(Moghunter.parameters['Ring Motion'] || true);
    Moghunter.bcom_side_input = String(Moghunter.parameters['Side Input'] || true);
    Moghunter.bcom_cursor = String(Moghunter.parameters['Cursor'] || true);
    Moghunter.bcom_cursor_x = Number(Moghunter.parameters['Cursor X-axis'] || 0);
    Moghunter.bcom_cursor_y = Number(Moghunter.parameters['Cursor Y-axis'] || 0);
    Moghunter.bcom_cursor_slide = String(Moghunter.parameters['Cursor Slide'] || true);
    Moghunter.bcom_face = String(Moghunter.parameters['Face'] || true);
    Moghunter.bcom_face_x = Number(Moghunter.parameters['Face X-axis'] || 0);
    Moghunter.bcom_face_y = Number(Moghunter.parameters['Face Y-axis'] || -50);

if (Imported.MOG_BattleHud) {
//=============================================================================
// ** ImageManager
//=============================================================================

//==============================
// * BHud
//==============================
ImageManager.loadBcom = function(filename) {
    return this.loadBitmap('img/battlecommands/', filename, 0, true);
};

//=============================================================================
// ** Game_Temp
//=============================================================================

//==============================
// * Initialize
//==============================
var _alias_mog_bcom_temp_initialize = Game_Temp.prototype.initialize;
Game_Temp.prototype.initialize = function() {
    _alias_mog_bcom_temp_initialize.call(this);
    this._bcom_need_refresh = false;
};

//=============================================================================
// ** Game_Interpreter
//=============================================================================

//==============================
// * Command129
//==============================
var _alias_mog_bcom_command129 = Game_Interpreter.prototype.command129;
Game_Interpreter.prototype.command129 = function() {
    _alias_mog_bcom_command129.call(this);
    $gameTemp._bcom_need_refresh = true;
    return true;
};

//=============================================================================
// ** Window Command
//=============================================================================

//==============================
// * Setup
//==============================
var _mog_batCom_Wact_setup = Window_ActorCommand.prototype.setup;
Window_ActorCommand.prototype.setup = function(actor) {
    _mog_batCom_Wact_setup.call(this,actor);
    if (this._actor) {this.battle_commands_initialize()};
};

//==============================
// * Battle Com Initialize
//==============================
Window_ActorCommand.prototype.battle_commands_initialize = function() {
    this._oldID = -1;
    if (!this._actor) {this.clearComSprites();return};
    this._oldID = this._actor._actorId;
    this.com_pic_initialize();
    this.load_com_images();
    this.create_com_sprites();
    this.refresh_com_sprites()
    this._old_visible = this.visible;
};

//==============================
// * clear Com Sprites
//==============================
Window_ActorCommand.prototype.clearComSprites = function() {
    if (this._layout) {this.removeChild(this._layout);this._layout = null};
    if (this._face) {this.removeChild(this._face);this._face = null};
    if (this._cursor_b) {this.removeChild(this._cursor_b); this._cursor_b = null};
    if (this._com_name) {this.removeChild(this._com_name);this._com_name = null};
    if (this._arrow) {
        for (var i = 0; i < 2; i++) {
            this.removeChild(this._arrow[i])
        };
        this._arrow = null;
    };
    if (this._com_sprites) {this.com_sprites_clear();this._com_sprites = null};
};

//==============================
// * Load Com Images
//==============================
Window_ActorCommand.prototype.com_pic_initialize = function() {
    this.com_sprites_clear();
    this._com_mode_b = Math.min(Math.max(Moghunter.bcom_mode,0),1);
    this._com_images = [];
    this._com_sprites = [];
    this._com_index = this._index;
    this._max_com = 0;
    this._wh = [0,0];
    this._zoom = [0,0];
    this._np = [0,0];
    this._arrow_slide = [0,0,0];
    this._arrow_org_y = [0,0];
    this._cursor_nxy = [0,0];
    this._cursor_slide = false;
    this.sel_time = 0;
    this._side = [];
    this._side_m = [0,0];
    this._ring_move = false;
    this._side_input = false;
    if (String(Moghunter.bcom_side_input) === "true") {this._side_input = true};
    if (String(Moghunter.bcom_ring_anime) === "true") {this._ring_move = true};
    this._rol_range = Moghunter.bcom_ring_range;
    this._pi = Moghunter.bcom_pi_range * Math.PI;
    if (String(Moghunter.bcom_slide_effect) === "true" && this._com_mode_b != 1) {this._side_m = [Moghunter.bcom_slide_x, Moghunter.bcom_slide_y]};
    this._row_max = Math.max(Moghunter.bcom_row_max - 1,1)
    this._zoom_speed = Math.max(Moghunter.bcom_zoom_speed,0.001)
    this._zoom_rate = Math.max(Moghunter.bcom_zoom_rate,1.00) 
    this._zoom_effect = false;
    if (String(Moghunter.bcom_zoom_effect) === "true") {this._zoom_effect = true};
    this._loop_zoom_effect = false;
    if (String(Moghunter.bcom_zoom_loop) === "true") {this._loop_zoom_effect = true};
};

//==============================
// * Com Sprites Clear
//==============================
Window_ActorCommand.prototype.com_sprites_clear = function() {
    if (this._com_sprites) {
        for (var i = 0; i < this._com_sprites.length; i++) {
             this.removeChild(this._com_sprites[i]);
        };
    };
};

//==============================
// * Load Com Images
//==============================
Window_ActorCommand.prototype.load_com_images = function() {
    this._com_images = [];
    for (var i = 0; i < this._list.length; i++) {
         if (this._max_com < this._list.length) {this._max_com = this._list.length}
         for (var r = 0; r < this._list.length; r++) {
              this._com_images.push(ImageManager.loadBcom("Com_" + this._list[r].name));
         };
    };
    this._layout_img = ImageManager.loadBcom("Layout");
    this._cursor_b_img = ImageManager.loadBcom("Cursor");
    if (String(Moghunter.bcom_arrow) === "true") {this._arrow_img = ImageManager.loadBcom("Arrow")};
};

//==============================
// * Create Com Sprites
//==============================
Window_ActorCommand.prototype.create_com_sprites = function() {
    this.create_layout();
    if (String(Moghunter.bcom_face) === "true") {this.create_face()};
    this.create_commands();
    if (String(Moghunter.bcom_cursor) === "true") {this.create_cursor()};
    if (String(Moghunter.bcom_arrow) === "true") {this.create_arrows()};
    if (String(Moghunter.bcom_com_name) === "true") {this.create_com_name()};
};

//==============================
// * Create Layout
//==============================
Window_ActorCommand.prototype.create_layout = function() {
    if (this._layout) {this.removeChild(this._layout)};
    this._layout = new Sprite(this._layout_img);
    this._layout.x = Moghunter.bcom_lay_x;
    this._layout.y = Moghunter.bcom_lay_y;
    this.addChild(this._layout);
};

//==============================
// * Create Face
//==============================
Window_ActorCommand.prototype.create_face = function() {
    if (this._face) {this.removeChild(this._face)};
    var fname = String("Face_" + this._actor._actorId)
    var face_img = ImageManager.loadBcom(fname);
    this._face = new Sprite(face_img);
    this._face.x = Moghunter.bcom_face_x;
    this._face.y = Moghunter.bcom_face_y;
    this.addChild(this._face);
};

//==============================
// * Create Cursor
//==============================
Window_ActorCommand.prototype.create_cursor = function() {
    if (this._cursor_b) {this.removeChild(this._cursor_b)};
    this._cursor_b = new Sprite(this._cursor_b_img);
    this._cursor_b.anchor.x = 0.5;
    this._cursor_b.anchor.y = 0.5;
    this._cursor_b_s = [0,0,0,0,0];
    if (String(Moghunter.bcom_cursor_slide) === "true") {this._cursor_slide = true};
    this.addChild(this._cursor_b);
};

//==============================
// * Update Cursor B
//==============================
Window_ActorCommand.prototype.update_cursor_b = function() {
    if (this._cursor_slide) {this.update_cursor_slide()};
    var nx = this._cursor_nxy[0] + Moghunter.bcom_cursor_x + this._cursor_b_s[2];
    var ny = this._cursor_nxy[1] + Moghunter.bcom_cursor_y;
    this._cursor_b.x = this.sprite_move_to(this._cursor_b.x,nx,this.com_move_speed());
    this._cursor_b.y = this.sprite_move_to(this._cursor_b.y,ny,this.com_move_speed());
};

//==============================
// * Update Cursor Slide
//==============================
Window_ActorCommand.prototype.update_cursor_slide = function() {
     this._cursor_b_s[4] += 1;
     if (this._cursor_b_s[4] < 2) {return};
     this._cursor_b_s[4] = 0;
     this._cursor_b_s[3] += 1;
     if (this._cursor_b_s[3] < 15) {this._cursor_b_s[2] += 1}
     else if (this._cursor_b_s[3] < 30) {this._cursor_b_s[2] -= 1}
     else {this._cursor_b_s[2] = 0 ;this._cursor_b_s[3] = 0};     

};

//==============================
// * Create Commands
//==============================
Window_ActorCommand.prototype.create_commands = function() {
    for (var i = 0; i < this._max_com; i++) {
         this._com_sprites[i] = new Sprite();
         this._com_sprites[i].enabled = this.isCommandEnabled(i);
         this._com_sprites[i].anchor.x = 0.5;
         this._com_sprites[i].anchor.y = 0.5;
         this.addChild(this._com_sprites[i]);
         this._side[i] = [0,0];
    };
};

//==============================
// * Create Arrows
//==============================
Window_ActorCommand.prototype.create_arrows = function() {
    if (this._com_mode_b === 1) {return}
    if (this._arrow) {
        for (var i = 0; i < 2; i++) {
            this.removeChild(this._arrow[i])
        };
    };
    this._arrow = [];
    for (var i = 0; i < 2; i++) {
         this._arrow[i] = new Sprite(this._arrow_img);
         this._arrow[i].anchor.x = 0.5;
         this._arrow[i].anchor.y = 0.5;     
         this.addChild(this._arrow[i]);
    };
};

//==============================
// * Create Com Name
//==============================
Window_ActorCommand.prototype.create_com_name = function() {
    if (this._com_name) {this.removeChild(this._com_name)};
    this._com_name = new Sprite(new Bitmap(90,32))
    this._com_name.x = Moghunter.bcom_com_name_x + 45;
    this._com_name.y = Moghunter.bcom_com_name_y + 16;
    this._com_name.bitmap.fontSize = Moghunter.bcom_com_font_size;
    this.addChild(this._com_name);
};

//==============================
// * Refresh Com Name
//==============================
Window_ActorCommand.prototype.refresh_com_name = function() {
    this._com_name.bitmap.clear();
    this._com_name.opacity = 0;
    this._com_name.anchor.x = 0.5;
    this._com_name.anchor.y = 0.5;
    this._com_name.bitmap.drawText(this.command_name(),0,0,this._com_name.bitmap.width,32,"center");
};

//==============================
// * Refresh Index
//==============================
Window_ActorCommand.prototype.refresh_index = function() {
    this._com_index = this._index;
    if (this._com_name) {this.refresh_com_name();}
};

//==============================
// * Refresh Com Sprites
//==============================
Window_ActorCommand.prototype.refresh_com_sprites = function() {
    this._com_index = -1;
    this._wh = [0,0];
    this._zoom = [0,0];
    this.refresh_bitmap_com();
    this._layout.opacity = 0;
    if (this._arrow) {this.refresh_arrow_position()};
    this.position_clear();
    this.update_battle_commands();
    if (this._com_mode_b === 1) {this.refresh_ring_command()};
};

//==============================
// * Refresh Bitmap Com
//==============================
Window_ActorCommand.prototype.refresh_bitmap_com = function() {
    for (var i = 0; i < this.maxCom(); i++) {
        this._com_sprites[i].bitmap = this._com_images[i];
        this._com_images.enabled = this.isCommandEnabled(i);
        this._wh[0] = this.width / 2;
        if (this._wh[1] < this._com_sprites[i].bitmap.height) {this._wh[1] = this._com_sprites[i].bitmap.height};       
    };
    for (var i = 0; i < this.maxCom(); i++) {
        this._com_sprites[i].x = this._wh[0] + Moghunter.bcom_com_x;
        this._com_sprites[i].y = this._wh[1] + (this._wh[1] * i) + Moghunter.bcom_com_y;
    };
};

//==============================
// * Refresh Arrow Position
//==============================
Window_ActorCommand.prototype.refresh_arrow_position = function() {
    this._arrow_org_y = [-Moghunter.bcom_arrow_y,this._wh[1] * ((this.limit_rows_sp() + 2)) + Moghunter.bcom_arrow_y];
    this._arrow[0].x = this._wh[0] + Moghunter.bcom_arrow_x;
    this._arrow[0].y = this._arrow_org_y[0];
    this._arrow[1].x = this._wh[0] + Moghunter.bcom_arrow_x;;
    this._arrow[1].y = this._arrow_org_y[1];
    this._arrow[1].scale.y = -1;
};

//==============================
// * Update Arrow Visible
//==============================
Window_ActorCommand.prototype.update_arrow_visible = function() {
    this._arrow[0].visible = false;
    this._arrow[1].visible = false;
    if (this._index > this.limit_rows_sp()) { this._arrow[0].visible = true};
    if (this.maxCom() > (this.limit_rows_sp() + 1)) {this._arrow[1].visible = true;
       if (this._index === (this.maxCom() - 1)) {this._arrow[1].visible = false}
    };
};

//==============================
// * Position Clear
//==============================
Window_ActorCommand.prototype.position_clear = function() {
    this._old_visible = this.visible;
    for (var i = 0; i < this._com_sprites.length; i++) {
        this._com_sprites[i].opacity = 0;
    };   
    for (var i = 0; i < this.maxCom(); i++) {
        if (this._com_mode_b === 0) {
            this.position_clear_mode_0(i);
        } else {
            this._com_sprites[i].x = this._wh[0];
            this._com_sprites[i].y = this._wh[1] + (this._wh[1] * i);
        };
        this._com_sprites[i].scale.x = 1.00;
        this._com_sprites[i].scale.y > 1.00;
    };
    if (this._com_mode_b === 1) {this.refresh_ring_command()};
    if (this._com_name) {this._com_name.opacity = 0};
};

//==============================
// * Position Clear Mode 0
//==============================
Window_ActorCommand.prototype.position_clear_mode_0 = function(i) {
  if (this._index > this.limit_rows_sp()) {
           if (i >= this._index - this.limit_rows_sp() && i <= this._index) {
             this._com_sprites[i].opacity = this.translucentOpacity();
           } else {
             this._com_sprites[i].opacity = 0;
           };
   } else {
          if (i > this.limit_rows_sp()) {
              this._com_sprites[i].opacity = 0;
          } else {
              this._com_sprites[i].opacity = this.translucentOpacity();
          };
   };
};

//==============================
// * processWheel
//==============================
Window_ActorCommand.prototype.processWheel = function() {
    if (this.isOpenAndActive()) {
        var threshold = 20;
        if (TouchInput.wheelY >= threshold) {
            this._index++;
            SoundManager.playCursor();
            if (this._index > (this.maxCom() - 1)) {this._index = 0};       
        };
        if (TouchInput.wheelY <= -threshold) {
            this._index--;
            SoundManager.playCursor();
            if (this._index < 0) {this._index = (this.maxCom() - 1)};
        };
    };
};

//==============================
// * Update Input Commands
//==============================
Window_ActorCommand.prototype.update_input_commands = function() {
      if (this._side_input) {this.update_side_input()};
};

//==============================
// * Update Side Input
//==============================
Window_ActorCommand.prototype.update_side_input = function() {
    if (this.isOpenAndActive()) {
    if (Input.isRepeated('right')) {
        SoundManager.playCursor();
        if (this._com_mode_b === 1) {
            this._index--;   
             if (this._index < 0) {this._index = (this.maxCom() - 1)};
        } else {
            this._index++;   
            if (this._index > (this.maxCom() - 1)) {this._index = 0};   
        }
    };
    if (Input.isRepeated('left')) {
        SoundManager.playCursor();
        if (this._com_mode_b === 1) {
            this._index++;   
            if (this._index > (this.maxCom() - 1)) {this._index = 0};
        } else {
             this._index--;   
             if (this._index < 0) {this._index = (this.maxCom() - 1)};
        }
    };
    };
};

//==============================
// * LineHeight
//==============================
Window_ActorCommand.prototype.lineHeight = function() {
    return 1;
};

//==============================
// * Max Com
//==============================
Window_ActorCommand.prototype.maxCom = function() {
    if (!this._list) {return 0};
    return this._list.length;
};

//==============================
// * Limit Rows SP
//==============================
Window_ActorCommand.prototype.limit_rows_sp = function() {
    if (this._com_mode_b === 1) {this.maxCom()};
    return this._row_max;
};

//==============================
// * Com Fade Speed
//==============================
Window_ActorCommand.prototype.com_fade_speed = function() {
    return 20;
};

//==============================
// * Com Move Speed
//==============================
Window_ActorCommand.prototype.com_move_speed = function() {
    if (this._com_mode_b === 1) {return 5};
    return 20;
};

//==============================
// * Com Zoom Speed
//==============================
Window_ActorCommand.prototype.com_zoom_speed = function() {
    return this._zoom_speed;
};

//==============================
// * Com Zoom Rate
//==============================
Window_ActorCommand.prototype.com_zoom_rate = function() {
    return this._zoom_rate;
};

//==============================
// * Limit Height
//==============================
Window_ActorCommand.prototype.limit_height = function(i) {
    if (this._index >= this.limit_rows_sp()) {
       return (this._index - this.limit_rows_sp()) * this._wh[1];
    };
    return 0;
};

//==============================
// * Command Name
//==============================
Window_ActorCommand.prototype.command_name = function() {
    if (!this._list || !this._list[this._index]) {return ""};
    return this._list[this._index].name;
};

//==============================
// * need Reset Com
//==============================
Window_ActorCommand.prototype.needResetCom = function() {
     if (!this._com_sprites) {return true};
     if (this._actor && this._oldID != this._actor._actorId) {return true};
     return false
};

//==============================
// * Update Com Sprites
//==============================
Window_ActorCommand.prototype.update_battle_commands = function() {
    if (this.needResetCom()) {
       if (this._actor) {this.battle_commands_initialize()};
       return
    };
    this.contentsOpacity = 0;
    this.opacity = 0;
    if (this._com_index != this._index) {this.refresh_index()};
    for (var i = 0; i < this._com_sprites.length; i++) {
        if (i <= this.maxCom()) {
            this._com_sprites[i].visible = true;
            this.update_commands(i);
        } else { 
            this._com_sprites[i].opacity = 0;
            this._com_sprites[i].visible = false;
        };
    };
    if (this._old_visible != this.visible) {this.position_clear()};
    if (this._arrow) {this.update_arrow()};
    if (this._cursor_b) {this.update_cursor_b()};
    if (this._com_name) {this._com_name.opacity += this.com_fade_speed()};
    this._layout.opacity += this.com_fade_speed();
    this.update_input_commands();
    if (this._com_mode_b === 0 && this._wh && this._wh[1] === 0) {
        this.refresh_bitmap_com();
        if (this._arrow) {this.refresh_arrow_position()};
    };
};

//==============================
// * Update Arrow
//==============================
Window_ActorCommand.prototype.update_arrow = function() {
    this.update_arrow_slide();
    this.update_arrow_visible();
    this._arrow[0].y = this._arrow_org_y[0] - this._arrow_slide[0];
    this._arrow[1].y = this._arrow_org_y[1] + this._arrow_slide[0];
};

//==============================
// * Update Arrow
//==============================
Window_ActorCommand.prototype.update_arrow_slide = function() {
    this._arrow_slide[2] ++
    if (this._arrow_slide[2] < 2) {return};
    this._arrow_slide[2] = 0
    this._arrow_slide[1] += 0.5;
    if (this._arrow_slide[1] < 5) {
        this._arrow_slide[0] += 1;
    } else if (this._arrow_slide[1] < 10) {
        this._arrow_slide[0] -= 1
    } else {
        this._arrow_slide = [0,0];
    };
};

//==============================
// * Sprite Move To
//==============================
Window_ActorCommand.prototype.sprite_move_to = function(value,real_value,speed) {
    if (value == real_value) {return value};
    var dnspeed = 5 + (Math.abs(value - real_value) / speed);
    if (value > real_value) {value -= dnspeed;
        if (value < real_value) {value = real_value};}
    else if (value < real_value) {value  += dnspeed;
        if (value  > real_value) {value  = real_value};   
    };
    return Math.floor(value);
};

//==============================
// * Update Commands
//==============================
Window_ActorCommand.prototype.update_commands = function(i) {
      this.update_position(i);
      this.update_effect_selection(i);
      if (!this._com_sprites[i].enabled) {this._com_sprites[i].opacity = 90};
};

//==============================
// * Update Ring Command
//==============================
Window_ActorCommand.prototype.update_ring_command = function(i,c_index) {
      if (i >= this.maxCom()) {this._com_sprites[i].visible = false};
       var rol_index = 1 / this.maxCom();
      if (this._ring_move) {var si = c_index}
      else {var si = 0};
      var now_p = rol_index * (si - i);
      var r_p = this._pi * -now_p;
      this._wh[0] = Math.floor(this._rol_range * Math.sin(r_p));
      this._wh[1] = -Math.floor(this._rol_range * Math.cos(r_p));
};

//==============================
// * Refresh Ring Position
//==============================
Window_ActorCommand.prototype.refresh_ring_command = function() {
    for (var i = 0; i < this._com_sprites.legth; i++) {
        this._com_sprites[i].visible = false;
    };
    for (var i = 0; i < this.maxCom(); i++) {
        this.update_ring_command(i,i)
        this._com_sprites[i].x = this.width / 2 + Moghunter.bcom_com_x;
        this._com_sprites[i].y = this.height / 2 + Moghunter.bcom_com_y;
        this._com_sprites[i].visible = true;
        this._com_sprites[i].opacity = 0;
    };
};

//==============================
// * Update Position
//==============================
Window_ActorCommand.prototype.update_position = function(i) {
    if (this._com_mode_b === 0) {
        this._np[0] = this._wh[0] + Moghunter.bcom_com_x + this._side[i][0];
        this._np[1] = this._wh[1] + (this._wh[1] * i) - this.limit_height() + Moghunter.bcom_com_y + this._side[i][1];
    } else {
        this.update_ring_command(i,this._index);
        this._np[0] = (this.width / 2) + this._wh[0] + Moghunter.bcom_com_x + this._side[i][0];
        this._np[1] = (this.height / 2) + this._wh[1] + Moghunter.bcom_com_y + this._side[i][1];   
    };
    this._com_sprites[i].x = this.sprite_move_to(this._com_sprites[i].x,this._np[0],this.com_move_speed());
    this._com_sprites[i].y = this.sprite_move_to(this._com_sprites[i].y,this._np[1],this.com_move_speed());
};

//==============================
// * Update Effect Selection
//==============================
Window_ActorCommand.prototype.update_effect_selection = function(i) {
    if (this._index === i) {
        this.update_on_index(i);
    } else {
        this.update_off_index(i);
    };
    this._com_sprites[i].scale.y = this._com_sprites[i].scale.x;
};

//==============================
// * Update On Index
//==============================
Window_ActorCommand.prototype.update_on_index = function(i) {
    this._side[i] = [this._side_m[0],this._side_m[1]];
    this._cursor_nxy = [this._com_sprites[i].x - (this._com_sprites[i].bitmap.width / 2),this._com_sprites[i].y];
    this._com_sprites[i].opacity += this.com_fade_speed();
    if (this._zoom_effect) {this.update_zoom_effect(i);};
};

//==============================
// * Update Off Index
//==============================
Window_ActorCommand.prototype.update_off_index = function(i) {
   this._side[i] = [0,0];
   if (this._com_sprites[i].opacity > this.translucentOpacity()){this._com_sprites[i].opacity -= this.com_fade_speed()};
   if (this._com_mode_b === 0) {this.update_off_mode_0(i)
   } else {if (this._com_sprites[i].opacity < this.translucentOpacity()){this._com_sprites[i].opacity += this.com_fade_speed()};
   };
   if (this._com_sprites[i].scale.x > 1.00){this._com_sprites[i].scale.x -= this.com_zoom_speed()};
};

//==============================
// * Update Off Mode 0
//==============================
Window_ActorCommand.prototype.update_off_mode_0 = function(i) {
   if (this._index > this.limit_rows_sp()) {
           if (i >= this._index - this.limit_rows_sp() && i <= this._index) {
             if (this._com_sprites[i].opacity < this.translucentOpacity()){this._com_sprites[i].opacity += this.com_fade_speed()};
           } else {
             this._com_sprites[i].opacity -= this.com_fade_speed();
           };
   } else {
          if (i > this.limit_rows_sp()) {
              this._com_sprites[i].opacity -= this.com_fade_speed();
          } else {
              if (this._com_sprites[i].opacity < this.translucentOpacity()){this._com_sprites[i].opacity += this.com_fade_speed()};
          };
   };
};

//==============================
// * Update Zoom Effect
//==============================
Window_ActorCommand.prototype.update_zoom_effect = function(i) {
     if (this._zoom[0] === 0) {
         if (this._com_sprites[i].scale.x < this.com_zoom_rate()) {this._com_sprites[i].scale.x += this.com_zoom_speed()};
         if (this._loop_zoom_effect && this._com_sprites[i].scale.x >= this.com_zoom_rate()) {this._zoom[0] = 1};
     } else {
         this._com_sprites[i].scale.x -= this.com_zoom_speed();
         if (this._com_sprites[i].scale.x <= 1.00) {this._zoom[0] = 0};
     };
};

//==============================
// * Process Touch
//==============================
Window_ActorCommand.prototype.processTouch = function() {
    if (this.isOpenAndActive()) {
        if (TouchInput.isCancelled()) {
            if (this.isCancelEnabled()) {
                this.processCancel();
            };
        } else if (TouchInput.isTriggered() && this.isTouchedInsideCom()) {
            this.sel_time = 5;
        };   
    };
};

//==============================
// * Process Touch
//==============================
Window_ActorCommand.prototype.isTouchedInsideCom = function() {
    for (var i = 0; i < this._com_sprites.length; i++) {
        if (this._com_sprites[i].visible && this._com_sprites[i].opacity > 25) {
        if (TouchInput.x > this.x + this._com_sprites[i].x - (this._com_sprites[i].bitmap.width / 2) &&
            TouchInput.x < this.x + this._com_sprites[i].x + this._com_sprites[i].bitmap.width - (this._com_sprites[i].bitmap.width / 2) &&
             TouchInput.y > this.y + this._com_sprites[i].y - (this._com_sprites[i].bitmap.height / 2) &&
            TouchInput.y < this.y + this._com_sprites[i].y + this._com_sprites[i].bitmap.height - (this._com_sprites[i].bitmap.height / 2))
            {this._index = i ;return true};
        };
    };
    return false;
};

//==============================
// * Update Wait Selection
//==============================
Window_ActorCommand.prototype.update_wait_selection = function() {
    this.sel_time--;
    if (this.sel_time === 0) { this.processOk();};
    if (BattleManager._actorIndex >= 0) {this.update_battle_commands()};
};

//==============================
// * Update
//==============================
var _alias_mog_bcom_wcom_update = Window_ActorCommand.prototype.update;
Window_ActorCommand.prototype.update = function() {
    if ($gameTemp._bcom_need_refresh) {$gameTemp._bcom_need_refresh = false;this.battle_commands_initialize()};
    if (this.sel_time > 0) {this.update_wait_selection();return;};
    _alias_mog_bcom_wcom_update.call(this);
    if (BattleManager._actorIndex >= 0) {this.update_battle_commands()};
};

//==============================
// * Set Mcursor Data
//==============================
Window_ActorCommand.prototype.set_mcursor_data = function() {
};

//==============================
// * Create Layout Window
//==============================
var _alias_mog_bcom_sbat_create_layout_window = Scene_Battle.prototype.create_layout_window
Scene_Battle.prototype.create_layout_window = function() {
    _alias_mog_bcom_sbat_create_layout_window.call(this)
    if (this._com_layout) {this.removeChild(this._com_layout)};
};

};
Btw, I wanted to point out that I'd rather omit the black circle background featured in Mog's command plugin. It is also animated, but that would honestly just be the icing on the cake lol. In addition, the text (name of the selected command) in the center is also unnecessary since it would get in the way of the unit sprite (the commands should appear around the unit). Basically, I just need the commands in a circular format as a bare minimum and allowing for 8 commands.

Original thread: https://forums.rpgmakerweb.com/threads/circular-battle-commands.130898/