BudsieBuds
Member
Hello,
Well, like the title says: how to center the text in my location script?
Thanks in advance,
Budsie
Well, like the title says: how to center the text in my location script?
Code:
#==============================================================================
# ** Window_Location
#------------------------------------------------------------------------------
# This window displays your current loacation
#==============================================================================
class Window_Location < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 230, 64)
self.contents = Bitmap.new(width - 32, height - 32)
$data_map_infos = load_data("Data/MapInfos.rxdata")
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.size = 18
self.contents.font.color = normal_color
self.contents.draw_text(0, 0, 120, 32, $data_map_infos[$game_map.map_id].name)
end
end
Thanks in advance,
Budsie