Jump to content
Petilil

[Galv's Menu Theme] Map Name Display

Recommended Posts

Hiya, I have a request/problem(?) with Galv's Menu Theme Engine script.

 

Basically, I want the map name to show up at the bottom instead of the display name.

 

66AMgjC.png

 

So instead of it showing "Display Name" it would show "Bedroom" which is the name I gave the map in RPG Maker itself.

 

 

Thanks in advance. Sorry if it's possibly unclear... ^^;

Share this post


Link to post
Share on other sites

Place this script above Galv's Menu Themes Engine:

class Game_Map
  def namelx
    map_infos = load_data("Data/MapInfos.rvdata2")
    name = map_infos[@map_id].name
    name.gsub!(/\\N\[([0-9]+)\]/i) { $game_actors[$1.to_i].name }
    return name
  end
end

On Galv's script, find:

  def draw_location
    change_color(mtheme::GAME_INFO_TXT_COLOR)
    draw_text(tx,ty,Graphics.width,line_height,$game_map.display_name,1)
  end

and then change this line: 

draw_text(tx,ty,Graphics.width,line_height,$game_map.display_name,1)

to this one:

draw_text(tx,ty,Graphics.width,line_height,$game_map.namelx,1)

Share this post


Link to post
Share on other sites

As you wish! ^^

This thread is closed, due to being solved. If for some reason anybody would like to re-open this thread, just send a message to moderator or report the first post on this thread and ask for its re-opening in the reason box. (=

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×