If you are using the illegal version, it is obvious. In the old project you have the fix in main, in the new one you don't. Howeverm I cleaned up your code:
class Window_HUD < Window_Base
def initialize
super(0,0,250,90)
self.contents = Bitmap.new(width - 32, height - 32)
# 160 is the semi-opaque value (like window_message)
self.back_opacity = 160
$game_variables[1] = 10000
refresh
end
def refresh
# Clear bitmap's contents
self.contents.clear
# Setting font color, most effcient is writing all at once in this color
self.contents.font.color = system_color
# Bitmap#draw_text(x,y,width,height,text,align=0) can leave the 0
self.contents.draw_text(4,-5,250,32,"Energy")
self.contents.draw_text(4,13,250,32,"Knowledge")
self.contents.draw_text(4,30,250,32,"Reputation")
# Setting font color, most effcient is writing all at once in this color
self.contents.font.color = normal_color
# align 0 => left, 1 => center, 2 => right
self.contents.draw_text(0,-5,250-32,32, $game_variables[1].to_s, 2)
self.contents.draw_text(0,13,250-32,32, $game_variables[2].to_s, 2)
self.contents.draw_text(0,30,250-32,32, $game_variables[3].to_s, 2)
end
def update
super()
refresh
end
end
class Scene_Map
alias hud_main main
alias hud_update update
def main
@hud = Window_HUD.new
hud_main
@hud.dispose
end
def update
@hud.update
hud_update
end
end