Jump to content
Rpg²S Forum

Riposiziona finestra attore in battaglia (attack, skill ecc.)


Ischenderun
 Share

Recommended Posts

Come da titolo vi permette di riposizionare la finestra dei comandi attore in battaglia dove vi pare.
Basta impostare le coordinate dentro il plugin.

//=============================================================================
// Isc_CommandWindowPosition.js
//=============================================================================

/*:
 * @target MZ
 * @plugindesc Allows you to set the position of the actor command window in battle.
 * 
 * @author Ischenderun
 *
 * @param windowX
 * @text Window X Position
 * @desc The X position of the actor command window. Max: 816
 * @type number
 * @default 200
 * @min 0
 * @max 816
 *
 * @param windowY
 * @text Window Y Position
 * @desc The Y position of the actor command window. Max: 624
 * @type number
 * @default 200
 * @min 0
 * @max 624
 * 
 *
 * @help CommandWindowPosition.js
 *
 * Attention! This does not affect the party command window.
 * 
 * This plugin allows you to set the position of the actor
 * command window in battle.
 * 
 * Max Position X: 816
 * Max Position Y: 624
 * 
 * Plugin Commands:
 *
 * None
 *
 * 
 */

(() => {
    const pluginName = "ISC_CommandWindowPosition";
    const params = PluginManager.parameters(pluginName);

    const windowX = parseInt(params["windowX"]);
    const windowY = parseInt(params["windowY"]);
  

    const _Scene_Battle_createActorCommandWindow =
        Scene_Battle.prototype.createActorCommandWindow;
    Scene_Battle.prototype.createActorCommandWindow = function() {
        _Scene_Battle_createActorCommandWindow.call(this);
        this._actorCommandWindow.x = windowX;
        this._actorCommandWindow.y = windowY;
        this._actorCommandWindow.refresh();
    };
})();

☆Polvere di Stelle☆ ora anche su itch.io: https://ischenderun.itch.io/polvere-di-stelle

 

Non ho particolari talenti, sono soltanto appassionatamente curioso.
Siate affamati, siate folli, perché solo coloro che sono abbastanza folli da pensare di poter cambiare il mondo lo cambiano davvero.

Ad maiora semper


HUks2tu.gif

 

Contatto Facebook : https://www.facebook.com/Ischenderun/

Pagina Facebook: https://www.facebook.com/Rpg-Maker-Mv-ed-Mz-100937052104281

 

4753.png

Link to comment
Share on other sites

👍 Considera che avrebbe bisogno di un altro pó di ottimizzazione.

Non modifica il party command e dovrei inserire anche i valori massimi in base allo schermo in uso

☆Polvere di Stelle☆ ora anche su itch.io: https://ischenderun.itch.io/polvere-di-stelle

 

Non ho particolari talenti, sono soltanto appassionatamente curioso.
Siate affamati, siate folli, perché solo coloro che sono abbastanza folli da pensare di poter cambiare il mondo lo cambiano davvero.

Ad maiora semper


HUks2tu.gif

 

Contatto Facebook : https://www.facebook.com/Ischenderun/

Pagina Facebook: https://www.facebook.com/Rpg-Maker-Mv-ed-Mz-100937052104281

 

4753.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...