したらばTOP ■掲示板に戻る■ 全部 1-100 最新50 | |

ツクール質問スレ3

535名無しさん:2020/03/05(木) 03:59:32 ID:NHqpPRUo
https://tm.lucky-duet.com/viewtopic.php?t=2606

Scene_Battle.prototype.createStatusWindowInBattle = function() {
this._statusWindowInBattle = new Window_Status();
this._statusWindowInBattle.setHandler('ok', this.onStatusWindowClose.bind(this));
this._statusWindowInBattle.setHandler('cancel', this.onStatusWindowClose.bind(this));
this._statusWindowInBattle.setHandler('pagedown', this.nextActor.bind(this));
this._statusWindowInBattle.setHandler('pageup', this.previousActor.bind(this));
this._statusWindowInBattle.hide();
this._statusWindowInBattle.deactivate();
this.addWindow(this._statusWindowInBattle);
};
Scene_Battle.prototype.nextActor = function() {
var index = $gameParty.members().indexOf(this._statusWindowInBattle._actor) + 1;
if(index > $gameParty.members().length - 1)index = 0
this._statusWindowInBattle.setActor($gameParty.members()[index]);
this._statusWindowInBattle.activate();
};
Scene_Battle.prototype.previousActor = function() {
var index = $gameParty.members().indexOf(this._statusWindowInBattle._actor) - 1;
if(index < 0)index = $gameParty.members().length - 1
this._statusWindowInBattle.setActor($gameParty.members()[index]);
this._statusWindowInBattle.activate();
};
Scene_Battle.prototype.createPartyCommandWindow = function() {
this._partyCommandWindow = new Window_PartyCommand();
this._partyCommandWindow.setHandler('fight', this.commandFight.bind(this));
this._partyCommandWindow.setHandler('escape', this.commandEscape.bind(this));
this._partyCommandWindow.setHandler('status', this.commandStatusWindow.bind(this));
this._partyCommandWindow.deselect();
this.addWindow(this._partyCommandWindow);
};
Scene_Battle.prototype.commandStatusWindow = function() {
this._statusWindowInBattle.setActor($gameParty.members()[0]);
this._statusWindowInBattle.show();
this._statusWindowInBattle.activate();
};
Scene_Battle.prototype.onStatusWindowClose = function() {
this._statusWindowInBattle.hide();
this._statusWindowInBattle.deactivate();
this._partyCommandWindow.activate();
};
Window_PartyCommand.prototype.makeCommandList = function() {//ここの順番を自由に入れ替えるが良い
this.addCommand(TextManager.fight, 'fight');
this.addCommand(TextManager.escape, 'escape', BattleManager.canEscape());
this.addCommand(TextManager.status, 'status');
};
Window_ActorCommand.prototype.addWindowStatusCommand = function() {};


新着レスの表示


名前: E-mail(省略可)

※書き込む際の注意事項はこちら

※画像アップローダーはこちら

(画像を表示できるのは「画像リンクのサムネイル表示」がオンの掲示板に限ります)

掲示板管理者へ連絡 無料レンタル掲示板