I'll try taking a crack at this later tonight when I have more time. But fixing is actually a relatively simple task. Add a new "Option" to your Game System with an alias. Then to turn the HUD on or off, use a Script: $game_system.my_option = true / false. In the Update method, just use it to hide but not remove the HUD.
class Game_System
attr_accessor :my_new_property # allow $game_system.my_new_property = value in Script
alias my_custom_initialize initialize
def initialize
# Run Original Initialize or any other Aliases of Initialize
my_custom_initialize
# New Property
@my_new_property = true
end
end
class My_Custom_Hud
def update
if $game_system.my_option
@opacity = 255 # Or @object.opacity = 255
else
@opacity = 0 # or @object.opacity = 0
end
# Rest of update code
end
end
---
Edit
Got it. You were very close. Just add "attr_accessor :yourhud" to Scene_Map and you can use an Event Script to set opacity and contents_opacity to 0 for your scene.
$scene.yourhud.opacity = 0
$scene.yourhud.contents_opacity = 0
Not sure about that White Arrow pointing right...
I'll try taking a crack at this later tonight when I have more time. But fixing is actually a relatively simple task. Add a new "Option" to your Game System with an alias. Then to turn the HUD on or off, use a Script: $game_system.my_option = true / false. In the Update method, just use it to hide but not remove the HUD.
class Game_System
attr_accessor :my_new_property # allow $game_system.my_new_property = value in Script
alias my_custom_initialize initialize
def initialize
# Run Original Initialize or any other Aliases of Initialize
my_custom_initialize
# New Property
@my_new_property = true
end
end
class My_Custom_Hud
def update
if $game_system.my_option
@opacity = 255 # Or @object.opacity = 255
else
@opacity = 0 # or @object.opacity = 0
end
# Rest of update code
end
end
---
Edit
Got it. You were very close. Just add "attr_accessor :yourhud" to Scene_Map and you can use an Event Script to set opacity and contents_opacity to 0 for your scene.
$scene.yourhud.opacity = 0
$scene.yourhud.contents_opacity = 0
Not sure about that White Arrow pointing right...
First of all, you are an extremely beautiful human being for putting all that effort into this silly menial problem of mine. For that, you have my eternal gratitude.
Secondly, I'll test it out right now and see if it works, thanks again!
EDIT - GOOD GRAVY, IT WORKS! Also, I did some testing with that dagnabbed arrow, and I think it's an issue with window_base. Whenever I make the window not show all the text, or make it slightly smaller, the arrow appears. I'll try editing your_hud and the window_base to see what I can do to erase it.
EDIT 2 - Got rid of the arrow!!! I just lowered how much space was left for content in the box, and it went away! Thanks again for all your help man, consider yourself credited in my game! What name/alias shall I list you as?
Bumpity
Lump da BUMP
No malice, but that kind of thing typically gets you nowhere or worse around here. Just sayin'.
Ah, I see. Thought I read somewhere that bumping was allowed, so I figured I'd try it. Thanks for lettin' me know, I'll refrain from doing so.