-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbattle_border.rb
35 lines (34 loc) · 1.37 KB
/
battle_border.rb
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
#==============================================================================
# ■ バトル画面の枠線の途切れ解消 RGSS3 v1.0 MIT License; see git.io/tic
#------------------------------------------------------------------------------
# ステータスウィンドウに別のウィンドウが重なっても枠線を途切れなくします。
#==============================================================================
class Window_BattleActor
#--------------------------------------------------------------------------
# ● ウィンドウの表示【※再定義※】
#--------------------------------------------------------------------------
def show
if @info_viewport
width_remain = Graphics.width - width
self.x = width_remain
@info_viewport.rect.width = width_remain + 4
select(0)
end
super
end
end
#------------------------------------------------------------------------------
class Window_BattleEnemy
#--------------------------------------------------------------------------
# ● ウィンドウの表示【※再定義※】
#--------------------------------------------------------------------------
def show
if @info_viewport
width_remain = Graphics.width - width
self.x = width_remain
@info_viewport.rect.width = width_remain + 4
select(0)
end
super
end
end