Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module R3D
- HUD1_X = 0
- HUD1_Y = 0
- HUD1_W = 128
- HUD1_H = 96
- HUD2_X = 100
- HUD2_Y = 0
- HUD2_W = 150
- HUD2_H = 100
- NO_MAP_NAME = []
- NO_HUD_SWITCH = 1
- end
- class Window_Hud_Gold < Window_Base
- include R3D
- def initialize
- super(HUD1_X,HUD1_Y,HUD1_W,HUD1_H)
- create_text
- end
- def create_text
- draw_currency_value($game_party.gold,Vocab::currency_unit, 0, 0, contents.width - 8)
- self.opacity = 0
- end
- end
- class Window_Map_Name < Window_Base
- include R3D
- def initialize
- super(HUD2_X,HUD2_Y,HUD2_W,HUD2_H)
- create_mtext
- end
- def create_mtext
- draw_text(contents.rect, $game_map.display_name, 1)
- self.opacity = 0
- end
- end
- class Scene_Map < Scene_Base
- alias :hud_init :initialize
- alias :hud_terminate :terminate
- def initialize
- hud_init
- if !$game_switches[R3D::NO_HUD_SWITCH]
- create_gold_window
- if !R3D::NO_MAP_NAME.include?($game_map.map_id)
- create_mname_window
- end
- end
- end
- def create_gold_window
- @window_gold = Window_Hud_Gold.new
- end
- def create_mname_window
- @mname_win = Window_Map_Name.new
- end
- def terminate
- hud_terminate
- @window_gold.dispose
- @mname_win.dispose
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement