【解決済み】kotonoha*様の『マップ上に常に情報ウィンドウを表示する』プラグインについて
Posted: 2019年9月08日(日) 11:20
こんにちは。RPGツクール初心者です。
先達の方々の素晴らしいお知恵を拝借して一週間ほど前から試行錯誤しているところです。
表題の件なのですが、こちらのプラグインをお借りしようと思いましたが、ゲーム起動直後から表示されてしまいオンオフができない状況です。プラグインコマンドを追加したく思い、見様見真似で以下のように追記してみましたがうまくいきませんでした。
var InfoWindow = parseInt(parameters['true' || false);
Game_System.prototype.InfoWindow = function(value) {
this._InfoWindow = value;
};
var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function( command, args ) {
_Game_Interpreter_pluginCommand.call( this, command, args );
if(command === 'showInfoWindow' ) {
$gameSystem.InfoWindow(true):
Window_Info(args[1]);
}
if(command === 'hideInfoWindow') {
$gameSystem.InfoWindow(false);
}
};
どのように追記すればプラグインコマンドから、こちらの『InfoWindow.js』をオンオフできるようになりますでしょうか。どうかご教授いただけましたらと願っております。
先達の方々の素晴らしいお知恵を拝借して一週間ほど前から試行錯誤しているところです。
表題の件なのですが、こちらのプラグインをお借りしようと思いましたが、ゲーム起動直後から表示されてしまいオンオフができない状況です。プラグインコマンドを追加したく思い、見様見真似で以下のように追記してみましたがうまくいきませんでした。
var InfoWindow = parseInt(parameters['true' || false);
Game_System.prototype.InfoWindow = function(value) {
this._InfoWindow = value;
};
var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function( command, args ) {
_Game_Interpreter_pluginCommand.call( this, command, args );
if(command === 'showInfoWindow' ) {
$gameSystem.InfoWindow(true):
Window_Info(args[1]);
}
if(command === 'hideInfoWindow') {
$gameSystem.InfoWindow(false);
}
};
どのように追記すればプラグインコマンドから、こちらの『InfoWindow.js』をオンオフできるようになりますでしょうか。どうかご教授いただけましたらと願っております。