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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
| #==============================================================================
# ■ VXAce-RGSS3-10 Add-on, Facesets dans le combat by SuperGregMaker
#------------------------------------------------------------------------------
# ・#############################
# ・#############################
#==============================================================================
#==============================================================================
# ■ Window_BattleStatus
#==============================================================================
class Window_BattleStatus < Window_Selectable
#--------------------------------------------------------------------------
# ● HP/MP/TPの行の高さ取得
#--------------------------------------------------------------------------
def gauge_line_height
return 16
end
#--------------------------------------------------------------------------
# ● 桁数の取得
#--------------------------------------------------------------------------
def col_max
return [item_max, 4].max
end
#--------------------------------------------------------------------------
# ● 横に項目が並ぶときの空白の幅を取得
#--------------------------------------------------------------------------
def spacing
return 0
end
#--------------------------------------------------------------------------
# ● 項目を描画する矩形の取得
#--------------------------------------------------------------------------
def item_rect(index)
rect = Rect.new
rect.width = item_width
rect.height = contents_height
rect.x = index % col_max * (item_width + spacing)
rect.y = index / col_max * contents_height
rect
end
#--------------------------------------------------------------------------
# ● 基本エリアの矩形を取得
#--------------------------------------------------------------------------
def basic_area_rect(index)
rect = item_rect_for_text(index)
rect.height -= gauge_area_height
rect
end
#--------------------------------------------------------------------------
# ● ゲージエリアの矩形を取得
#--------------------------------------------------------------------------
def gauge_area_rect(index)
rect = item_rect_for_text(index)
rect.y += contents_height - gauge_area_height - 8
rect.height = gauge_area_height
rect
end
#--------------------------------------------------------------------------
# ● ゲージエリアの高さを取得
#--------------------------------------------------------------------------
def gauge_area_height
return (gauge_line_height * ($data_system.opt_display_tp ? 3 : 2))
end
#--------------------------------------------------------------------------
# ● 基本エリアの描画
#--------------------------------------------------------------------------
def draw_basic_area(rect, actor)
# draw_actor_name(actor, rect.x, rect.y, 100)
draw_actor_face(actor, rect.x, rect.y, !actor.dead?)
draw_actor_icons(actor, rect.x, rect.y, rect.width+8)
end
#--------------------------------------------------------------------------
# ● ゲージエリアの描画(TP あり)
#--------------------------------------------------------------------------
def draw_gauge_area_with_tp(rect, actor)
draw_actor_hp(actor, rect.x, rect.y + gauge_line_height * 0, rect.width)
draw_actor_mp(actor, rect.x, rect.y + gauge_line_height * 1, rect.width)
draw_actor_tp(actor, rect.x, rect.y + gauge_line_height * 2, rect.width)
end
#--------------------------------------------------------------------------
# ● ゲージエリアの描画(TP なし)
#--------------------------------------------------------------------------
def draw_gauge_area_without_tp(rect, actor)
draw_actor_hp(actor, rect.x, rect.y + gauge_line_height * 1, rect.width)
draw_actor_mp(actor, rect.x, rect.y + gauge_line_height * 2, rect.width)
end
end
#==============================================================================
# ■ Window_BattleEnemy
#==============================================================================
class Window_BattleEnemy < Window_Selectable
#--------------------------------------------------------------------------
# ● 項目の描画
#--------------------------------------------------------------------------
alias draw_item_fv draw_item
def draw_item(index)
draw_hp(index)
draw_item_fv(index)
end
#--------------------------------------------------------------------------
# ● HPの描画
#--------------------------------------------------------------------------
def draw_hp(index)
rect = item_rect_for_text(index)
w = rect.width - 60
x = rect.x + 30
hp = $game_troop.alive_members[index].hp_rate
draw_gauge(x, rect.y, w, hp, hp_gauge_color1, hp_gauge_color2)
end
end |