RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED] replace play time with playing location

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 83
Spriter
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.
« Last Edit: September 07, 2009, 03:14:07 PM by knightzero45 »

**
Rep:
Level 83
Detective Scrotes
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.
Code: [Select]
#==============================================================================
# ** 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
« Last Edit: September 07, 2009, 05:57:22 AM by albertfish »

**
Rep:
Level 83
Spriter
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)