=begin
--------------------------------------------------------------------------------
真・女神転生バトルシステム VER 0.01 BETA by 懒帝
=end
#-----------------------setting
TALK = "TALK"
#-----------------------settingend
class Window_PartyCommand < Window_Command
alias lnde_make_command_list make_command_list
def make_command_list
lnde_make_command_list
add_command(TALK, :talk)
end
end
class Scene_Battle < Scene_Base
alias lnde_create_party_command_window create_party_command_window
def create_party_command_window
lnde_create_party_command_window
@party_command_window = Window_PartyCommand.new
@party_command_window.viewport = @info_viewport
@party_command_window.set_handler(:fight, method(:command_fight))
# @party_command_window.set_hardler(:talk, method(:command_talk))
@party_command_window.set_handler(:escape, method(:command_escape))
@party_command_window.unselect
end
alias lnde_update_info_viewport update_info_viewport
def update_info_viewport
lnde_update_info_viewport
move_info_viewport(0) if @party_command_window.active
move_info_viewport(0) if @actor_command_window.active
move_info_viewport(0) if BattleManager.in_turn?
end
alias lnde_create_status_window create_status_window
def create_status_window
lnde_create_status_window
@status_window = Window_BattleStatus.new
@status_window.x = 0
end
alias lnde_create_info_viewport create_info_viewport
def create_info_viewport
lnde_create_info_viewport
@info_viewport = Viewport.new
@info_viewport.rect.y = 0#Graphics.height #- @status_window.height
@info_viewport.rect.height = Graphics.height#@status_window.height
@info_viewport.z = 100
@info_viewport.ox = 64
@status_window.viewport = @info_viewport
end
end
class Window_BattleStatus < Window_Selectable
alias lnde_initialize initialize
def initialize
lnde_initialize
super(0, lnde_window_y_math1, window_width, window_height)
refresh
self.openness = 0
end
def lnde_window_y_math1
Graphics.height - window_height
end
alias lnde_window_width window_width
def window_width
lnde_window_width
Graphics.width
end
end
class Window_PartyCommand < Window_Command
alias lnde_initialize initialize
def initialize
lnde_initialize
super(0, lnde_window_y_math2)
self.openness = 0
deactivate
end
def lnde_window_y_math2
Graphics.height / 2
end
end