-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWindow_BattleActor.js
38 lines (31 loc) · 1.07 KB
/
Window_BattleActor.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//-----------------------------------------------------------------------------
// Window_BattleActor
//
// The window for selecting a target actor on the battle screen.
function Window_BattleActor() {
this.initialize.apply(this, arguments);
}
Window_BattleActor.prototype = Object.create(Window_BattleStatus.prototype);
Window_BattleActor.prototype.constructor = Window_BattleActor;
Window_BattleActor.prototype.initialize = function(x, y) {
Window_BattleStatus.prototype.initialize.call(this);
this.x = x;
this.y = y;
this.openness = 255;
this.hide();
};
Window_BattleActor.prototype.show = function() {
this.select(0);
Window_BattleStatus.prototype.show.call(this);
};
Window_BattleActor.prototype.hide = function() {
Window_BattleStatus.prototype.hide.call(this);
$gameParty.select(null);
};
Window_BattleActor.prototype.select = function(index) {
Window_BattleStatus.prototype.select.call(this, index);
$gameParty.select(this.actor());
};
Window_BattleActor.prototype.actor = function() {
return $gameParty.members()[this.index()];
};