EDIT: I'm trying but right now, the game gets stuck when trying to hide it.
This is what I got now
CODE
#==============================================================================
# ** Window_BasicHUD (By SephirothSpawn)
#------------------------------------------------------------------------------
# A Simple HUD System shows a HUD on the map, that shows the current actor's
# HP and SP.
#==============================================================================
#==============================================================================
# ** Window_BasicHUD
#==============================================================================
class Window_BasicHUD < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 224, 96)
self.contents = Bitmap.new(width - 32, height - 32)
self.opacity = 160
update
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
draw_actor_hp(@actor, 0, 0, 192)
draw_actor_sp(@actor, 0, 32, 192)
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
if @actor != $game_party.actors[0] || @hp != $game_party.actors[0].hp ||
@sp != $game_party.actors[0].sp
@actor = $game_party.actors[0]
@hp = @actor.hp
@sp = @actor.sp
refresh
end
end
end
#==============================================================================
# ** Scene_Map
#==============================================================================
class Scene_Map
#--------------------------------------------------------------------------
# * Alias Listings
#--------------------------------------------------------------------------
alias_method :seph_basichud_scnmap_main, :main
alias_method :seph_basichud_scnmap_updt, :update
#--------------------------------------------------------------------------
# * Main Processing
#--------------------------------------------------------------------------
def main
# Create HUD
@hud_window = Window_BasicHUD.new
$hudvisible = false if $hudvisible == nil
@hud_window.visible = $hudvisible
# Original Main
seph_basichud_scnmap_main
# Dispose HUD
@hud_window.dispose
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
@hud_window.visible = $hudvisible
# Update HUD
@hud_window.update
# Original Update
seph_basichud_scnmap_updt
end
end