Source: Window_HorzCommand.js

Window_HorzCommand.js

//-----------------------------------------------------------------------------
// Window_HorzCommand
//
// The command window for the horizontal selection format.
/**
 * The command window for the horizontal selection format.
 *
 * @class
 * @extends Window_Command
 */
function Window_HorzCommand() {
    this.initialize(...arguments);
}

Window_HorzCommand.prototype = Object.create(Window_Command.prototype);
Window_HorzCommand.prototype.constructor = Window_HorzCommand;

Window_HorzCommand.prototype.initialize = function(rect) {
    Window_Command.prototype.initialize.call(this, rect);
};

/**
 * Get the amount of columns
 *
 * @return {number} The number of columns in the window
 */
Window_HorzCommand.prototype.maxCols = function() {
    return 4;
};

/**
 * Get the text alignment
 *
 * @return {string} The alignment of text in the window
 */
Window_HorzCommand.prototype.itemTextAlign = function() {
    return "center";
};