Map Name Location

So I'm trying to get the map name display location to the middle, I don't want to go digging around in the scripts and mess something up horribly for myself, so I'm wondering if I'm looking at the right thing necessary to do it. 


In the script list, under game_objects, there's a script called "Game_Map"
Line 26 is the only place I see that has name display and allows you to choose locations or anything.


def initialize
@screen = Game_Screen.new
@interpreter = Game_Interpreter.new
@map_id = 0
@events = {}
@display_x = 0
@display_y = 0
create_vehicles
@name_display = true
end


It says "create vehicles" near the bottom so I'm pretty sure I'm not right... So I checked "Window_MapName" but I don't see anything for changing the location in that. Just, what looks like the size.


Line 11:
 


def initialize
super(0, 0, window_width, fitting_height(1))
self.opacity = 0
self.contents_opacity = 0
@show_count = 0
refresh
end


I'm not sure if that ^ is for size or the location of the display that pops up when you enter a map?
Would someone care to point me in the right direction? 🙂  
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


I also want to clarify since this was in RGSS2 Script boards. Is this being made in RPG Maker VX and not RPG Maker VXAce (RGSS3)? 
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


I also want to clarify since this was in RGSS2 Script boards. Is this being made in RPG Maker VX and not RPG Maker VXAce (RGSS3)? 

Oops. That is entirely my bad. I must've made a mistake when selecting the board.
No, it's ACE.

You were at the right place in the Window_MapName class.



super(0, 0, window_width, fitting_height(1))

# Translates to:
# super(x_pos, y_pos, width, height)


All of these arguments (the things in the brackets) expect an integer number, and they are measured in pixels.


Don't let that window_width and fitting_height(1) distract you, those are just method names which return integer numbers. You can replace them with direct numbers too if you want.

Thank you. When I saw "window_width" and "fitting_height," I thought the they were simply going to make the map name larger instead of moving it.

Greatly appreciated, Sixth.
You were at the right place in the Window_MapName class.


super(0, 0, window_width, fitting_height(1))

# Translates to:
# super(x_pos, y_pos, width, height)


All of these arguments (the things in the brackets) expect an integer number, and they are measured in pixels.


Don't let that window_width and fitting_height(1) distract you, those are just method names which return integer numbers. You can replace them with direct numbers too if you want.

Original thread: https://forums.rpgmakerweb.com/threads/map-name-location.71719/