#==============================================================================
# ** ichabod's CMS
#------------------------------------------------------------------------------
# Tibuda
# 1.00
# 04.28.2007
# SDK Version : 2.2
#==============================================================================
#--------------------------------------------------------------------------
# * SDK Log Script
#--------------------------------------------------------------------------
SDK.log('ichabod\'s CMS', 'tibuda', 1, '04.28.2007')
SDK.check_requirements(2.2, [1, 3])
#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------
if SDK.enabled?('ichabod\'s CMS')
#==============================================================================
class Window_MenuStatus
#--------------------------------------------------------------------------
def oh
return (self.height - 32) / 4
end
#--------------------------------------------------------------------------
SDK.log_overwrite(:Window_MenuStatus, :initialize)
def initialize
super(0, 64, 480, 416)
@item_max = $game_party.actors.size
self.contents = Bitmap.new(width - 32, @item_max * oh)
refresh
self.active = false
self.index = -1
end
#--------------------------------------------------------------------------
def draw_actor(i)
x = 64
y = i * oh
actor = $game_party.actors[i]
draw_actor_graphic(actor, x - 40, y + 80)
draw_actor_name(actor, x, y)
draw_actor_class(actor, x + 144, y)
draw_actor_level(actor, x, y + 32)
draw_actor_state(actor, x + 90, y + 32)
draw_actor_exp(actor, x, y + 64)
draw_actor_hp(actor, x + 236, y + 32)
draw_actor_sp(actor, x + 236, y + 64)
end
#--------------------------------------------------------------------------
SDK.log_overwrite(:Window_MenuStatus, :refresh)
def refresh
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
draw_actor(i)
end
end
#--------------------------------------------------------------------------
SDK.log_overwrite(:Window_MenuStatus, :update_cursor_rect)
def update_cursor_rect
super
end
#--------------------------------------------------------------------------
end
#==============================================================================
class Scene_Menu
#--------------------------------------------------------------------------
alias_method :ichabod_cms_scnmenu_main_cmdwin, :main_command_window
def main_command_window
ichabod_cms_scnmenu_main_cmdwin
@command_window.visible = false
w = 640 / @command_window.commands.size
@command_windows = []
@last_index = @command_window.index
for i in 0...@command_window.commands.size
command = @command_window.commands[i]
window = Window_Command.new(w, [command])
window.x = w * i
window.active = i == @last_index
window.index = i == @last_index ? 0 : -1
@command_windows << window
end
end
#--------------------------------------------------------------------------
alias_method :ichabod_cms_scnmenu_update_cmd, :update_command
def update_command
ichabod_cms_scnmenu_update_cmd
if @command_window.active
if Input.trigger?(Input::RIGHT)
@command_window.index = [@command_window.index+1,@command_window.commands.size-1].min
elsif Input.trigger?(Input::LEFT)
@command_window.index = [@command_window.index-1,0].max
end
if @command_window.index != @last_index
@command_windows[@last_index].index = -1
@command_windows[@last_index].active = false
@last_index = @command_window.index
@command_windows[@last_index].index = 0
@command_windows[@last_index].active = true
end
end
end
#--------------------------------------------------------------------------
alias_method :ichabod_cms_scnmenu_main_win, :main_window
def main_window
ichabod_cms_scnmenu_main_win
@status_window.y = 64
@playtime_window.y = 64
@steps_window.y = 160
@gold_window.y = 256
end
#--------------------------------------------------------------------------
end
#==============================================================================
#--------------------------------------------------------------------------
# * SDK End
#--------------------------------------------------------------------------
end