######################################################## _ __ _ __ __ _ _ # | |/ /__ _(_) \/ |___ _ _ | |_____ _ _( )___# | ' </ _` | | |\/| / _ \ ' \| / / -_) || |/(_-<# |_|\_\__,_|_|_| |_\___/_||_|_\_\___|\_, | /__/# _____ _ _ _ |__/ # |_ _| |_ _ _ ___ ___ /_\ __| |_ ___ _ _ # | | | ' \| '_/ -_) -_) / _ \/ _| _/ _ \ '_|# |_| |_||_|_| \___\___| /_/ \_\__|\__\___/_| # __ __ # | \/ |___ _ _ _ _ # | |\/| / -_) ' \ || | # |_| |_\___|_||_\_,_| ## Version 1.1# ##################CONFIG############################### top_bottom_border:$top_bottom_border = 30## inner-border:$inner_border = 10## side-border:$side_border = 10#######################################################class Scene_Menu < Scene_MenuBasedef start super create_location_window create_gold_window create_command_window create_status_window end def create_gold_window @gold_window = Window_Gold.new @gold_window.width = (Graphics.width-$side_border*2-$inner_border)/2 @gold_window.y = Graphics.height - @gold_window.height - $top_bottom_border @gold_window.x = Graphics.width - @location_window.width - $side_border end def create_location_window @location_window = Window_Location.new((Graphics.width-$side_border*2-$inner_border)/2) @location_window.y = Graphics.height - @location_window.height - $top_bottom_border @location_window.x = $side_border end def create_command_window @command_window = Window_MenuCommandHorz.new($side_border, 0) @command_window.y = @gold_window.y-@gold_window.height-$inner_border @command_window.set_handler

item, method

command_item)) @command_window.set_handler

skill, method

command_personal)) @command_window.set_handler

equip, method

command_personal)) @command_window.set_handler

status, method

command_personal)) @command_window.set_handler

game_end, method

command_game_end)) @command_window.set_handler

cancel, method

return_scene)) end def create_status_window @status_window = Window_MenuStatus.new($side_border, $top_bottom_border, Graphics.width-$side_border*2, Graphics.height - $top_bottom_border*2 - @gold_window.height - $inner_border*2 - @command_window.height) endend class Window_MenuCommandHorz < Window_HorzCommand def initialize(x,y) @window_width = Graphics.width-$side_border*2 super(x,y) end def col_max return 5 end def make_command_list add_main_commands add_game_end_command end def add_main_commands add_command(Vocab::item, :item, main_commands_enabled) add_command(Vocab::skill, :skill, main_commands_enabled) add_command(Vocab::status, :status, main_commands_enabled) add_command(Vocab::equip, :equip, main_commands_enabled) end def add_game_end_command add_command(Vocab::game_end, :game_end) end def main_commands_enabled $game_party.exists end def window_width @window_width endend class Window_Location < Window_Base #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize(w) super(0, 0, w, fitting_height(1)) refresh end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh contents.clear draw_text_ex(4, 0, $game_map.display_name) if $game_map end def open refresh super endend class Window_Gold < Window_Base def draw_currency_value(value, unit, x, y, width) cx = text_size(unit).width change_color(normal_color) draw_text(x, y, width - cx - 2, line_height, value,0) change_color(system_color) draw_text(x+cx, y, width, line_height, unit, 0) end def refresh contents.clear draw_currency_value(value, currency_unit, 0, 0, contents.width - 8) endend#==============================================================================# ** Window_MenuStatus#------------------------------------------------------------------------------# This window displays party member status on the menu screen.#============================================================================== class Window_MenuStatus < Window_Selectable def initialize(x, y, w, h) super(x, y, w,h) @pending_index = -1 refresh end def col_max return 3 end def item_height height - standard_padding * 2 end #-------------------------------------------------------------------------- # * Draw Item #-------------------------------------------------------------------------- def draw_item(index) actor = $game_party.members[index] enabled = $game_party.battle_members.include?(actor) rect = item_rect(index) rect.x+=5 rect.width-=10 draw_item_background(index) if (actor.state_icons + actor.buff_icons).length > 0 face_padding = (rect.width-124)/2 else face_padding = (rect.width-100)/2 end draw_actor_face(actor, face_padding+rect.x + 1, rect.y + 3, enabled) draw_actor_icons(actor, face_padding+rect.x+100 , rect.y + 3) draw_actor_simple_status(actor, rect.x, rect.y + 100,rect.width) end #-------------------------------------------------------------------------- # * Draw Simple Status #-------------------------------------------------------------------------- def draw_actor_simple_status(actor, x, y,w) draw_actor_name(actor, x, y,w) draw_actor_level(actor, x, y + line_height * 1) #draw_actor_class(actor, x + 120, y) draw_actor_hp(actor, x, y + line_height * 2,w) draw_actor_mp(actor, x, y + line_height * 3,w) end def draw_actor_icons(actor, x, y, width = 96) icons = (actor.state_icons + actor.buff_icons)[0, width / 24] icons.each_with_index {|n, i| draw_icon(n, x, y + 24 * i) } end def spacing return 16 endend class Window_MenuActor < Window_MenuStatus #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0,0,0) self.visible = false endend