Here ya go
If you need the window bigger or anything just say so;
#==============================================================================
# Basic HUD Window
#------------------------------------------------------------------------------
# By Italianstal1ion - thanks yeyinde for tutorial!
#==============================================================================
class Window_MGHUD < Window_Base
def initialize
super(0, 0, 340, 50)
self.contents = Bitmap.new(width - 32, height - 32)
self.opacity = 145 #sets how transparent the window is
refresh
end
def refresh
self.contents.clear
# Displays Gold
self.contents.font.size = 18
self.contents.font.color = normal_color
self.contents.draw_text(-14, -8, 120, 32, $game_party.gold.to_s, 2)
#Show Map Name
map_infos = load_data("Data/MapInfos.rxdata")
name = map_infos[$game_map.map_id].name.to_s
self.contents.draw_text(148, -8, 180, 32, name.to_s)
self.contents.font.color = system_color
self.contents.draw_text(-80, -8, 120, 32, $data_system.words.gold, 2)
self.contents.draw_text(112, -8, 120, 32, "Map:")
end
def update
super
refresh
end
end
class Scene_Map
alias mghud_main main
alias mghud_update update
def main
@mghud = Window_MGHUD.new
mghud_main
@mghud.dispose
end
def update
@mghud.update
mghud_update
end
end
50 lines