73 lines
2.5 KiB
JavaScript
73 lines
2.5 KiB
JavaScript
/*:
|
|
* @plugindesc 戦闘中のパーティーコマンドとアクターコマンドの表示位置と幅を変更するプラグイン
|
|
* @author みるきーうぇい
|
|
*
|
|
* @param PartyCommandX
|
|
* @text パーティーコマンドX座標
|
|
* @desc パーティーコマンドウィンドウのX座標
|
|
* @type number
|
|
* @default 0
|
|
*
|
|
* @param PartyCommandY
|
|
* @text パーティーコマンドY座標
|
|
* @desc パーティーコマンドウィンドウのY座標
|
|
* @type number
|
|
* @default 0
|
|
*
|
|
* @param PartyCommandWidth
|
|
* @text パーティーコマンドの幅
|
|
* @desc パーティーコマンドウィンドウの幅
|
|
* @type number
|
|
* @default 192
|
|
*
|
|
* @param ActorCommandX
|
|
* @text アクターコマンドX座標
|
|
* @desc アクターコマンドウィンドウのX座標
|
|
* @type number
|
|
* @default 0
|
|
*
|
|
* @param ActorCommandY
|
|
* @text アクターコマンドY座標
|
|
* @desc アクターコマンドウィンドウのY座標
|
|
* @type number
|
|
* @default 0
|
|
*
|
|
* @param ActorCommandWidth
|
|
* @text アクターコマンドの幅
|
|
* @desc アクターコマンドウィンドウの幅
|
|
* @type number
|
|
* @default 192
|
|
*
|
|
* @help
|
|
* このプラグインを使用すると、戦闘中のパーティーコマンドとアクターコマンドの
|
|
* 位置と幅を変更できます。
|
|
*/
|
|
(function() {
|
|
var parameters = PluginManager.parameters('MW_BattleCommandPosition');
|
|
var partyCommandX = Number(parameters['PartyCommandX'] || 0);
|
|
var partyCommandY = Number(parameters['PartyCommandY'] || 0);
|
|
var partyCommandWidth = Number(parameters['PartyCommandWidth'] || 192);
|
|
var actorCommandX = Number(parameters['ActorCommandX'] || 0);
|
|
var actorCommandY = Number(parameters['ActorCommandY'] || 0);
|
|
var actorCommandWidth = Number(parameters['ActorCommandWidth'] || 192);
|
|
|
|
var _Window_PartyCommand_initialize = Window_PartyCommand.prototype.initialize;
|
|
Window_PartyCommand.prototype.initialize = function() {
|
|
_Window_PartyCommand_initialize.call(this);
|
|
this.x = partyCommandX;
|
|
this.y = partyCommandY;
|
|
this.width = partyCommandWidth;
|
|
if($gameVariables.value(32)==50)this.width +=64;
|
|
this.refresh();
|
|
};
|
|
|
|
var _Window_ActorCommand_initialize = Window_ActorCommand.prototype.initialize;
|
|
Window_ActorCommand.prototype.initialize = function() {
|
|
_Window_ActorCommand_initialize.call(this);
|
|
this.x = actorCommandX;
|
|
this.y = actorCommandY;
|
|
this.width = actorCommandWidth;
|
|
if($gameVariables.value(32)==50)this.width +=64;
|
|
this.refresh();
|
|
};
|
|
})();
|