Hello,
I am currently using this script to display a gold hud on the game/main screen.
My problem is that it still displays when a messagebox is being displayed and gets in the way. So I was hoping that someone here would be able to help me modify the above script to hide the gold hud when the message box is shown.
Thank you reading this post.
I am currently using this script to display a gold hud on the game/main screen.
class Scene_Map < Scene_Base
#--------------------------------------------------------------------------
# * Create All Windows
#--------------------------------------------------------------------------
alias :my_create_all_windows :create_all_windows
def create_all_windows
my_create_all_windows
create_gold_window
end
#--------------------------------------------------------------------------
# * Update Scene Transition
#--------------------------------------------------------------------------
alias :my_update_scene :update_scene
def update_scene
my_update_scene
@gold_window.refresh
end
#--------------------------------------------------------------------------
# * Create Gold Window
#--------------------------------------------------------------------------
def create_gold_window
@gold_window = Window_Gold.new
@gold_window.x = 0
@gold_window.y = Graphics.height - @gold_window.height
end
end
#--------------------------------------------------------------------------
# * Create All Windows
#--------------------------------------------------------------------------
alias :my_create_all_windows :create_all_windows
def create_all_windows
my_create_all_windows
create_gold_window
end
#--------------------------------------------------------------------------
# * Update Scene Transition
#--------------------------------------------------------------------------
alias :my_update_scene :update_scene
def update_scene
my_update_scene
@gold_window.refresh
end
#--------------------------------------------------------------------------
# * Create Gold Window
#--------------------------------------------------------------------------
def create_gold_window
@gold_window = Window_Gold.new
@gold_window.x = 0
@gold_window.y = Graphics.height - @gold_window.height
end
end
Thank you reading this post.