Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RESOLVED] replace play time with playing location

Started by knightzero45, August 20, 2009, 05:20:28 PM

0 Members and 1 Guest are viewing this topic.

knightzero45

I've deleted all the functions of the playing time window in the menu, but now I want to display the active map on the empty place. Any scripts to place it there?
The location, height and width of the window are in the window_playtime. So basically this request is replacing window_playtime by <window_location> or something.

There are a few thing in Scene_menu too.

albertfish

#1
Very easy to do, it should only take a few minutes.

[Edit]
Here replace your Window_PlayTime script with this, or put this above main.
#==============================================================================
# ** Window_PlayTime
#------------------------------------------------------------------------------
#  This window displays play time on the menu screen.
#==============================================================================

class Window_PlayTime < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 160, 96)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 120, 32, "Location")
    map = load_data("Data/MapInfos.rxdata")
    self.contents.font.color = normal_color
    self.contents.draw_text (4, 32, 120, 32, map[$game_map.map_id].name, 2)
  end
end


knightzero45

It works fine, and it was easy indeed. thanks for the help, you'll be in my credits(Space Gears, http://rmrk.net/index.php/topic,34706.new.html)