Advertisement
JoronJo

Actor Command Columns

Nov 17th, 2015
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=============================================================================
  2. // Actor Command Columns
  3. //=============================================================================
  4.  
  5. //=============================================================================
  6.  /*:
  7.  * @plugindesc Adds Columns to the Actor Command Window
  8.  * @author Joronjo
  9.  *
  10.  * @help Allows the Actor Command Window in Battle to have multiple columns.
  11.  * Thanks to Kenen for providing the basic code.
  12.  *
  13.  * ===== Changelog ========
  14.  * Version 1.0
  15.  *
  16.  * @param Number of Rows
  17.  * @desc Specify the number of columns.
  18.  * The commands will size themselves to fit the Actor Command window
  19.  * @default 1
  20.  */
  21. //=============================================================================
  22.  
  23. (function () {
  24.    
  25.     var parameters = PluginManager.parameters('Actor Command Columns');
  26.    
  27.    
  28. //-----------------------------------------------------------------------------
  29. // Window_ActorCommand
  30. //
  31. // The window for selecting an actor's action on the battle screen.
  32.  
  33.    
  34.     Window_ActorCommand.prototype.maxCols = function () {
  35.         if ((Number(parameters['Number of Rows'])) <= 1) {
  36.             return 1;
  37.         }
  38.             else {
  39.                 return (Number(parameters['Number of Rows']));
  40.             }
  41.    
  42.  
  43.     };
  44. }())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement