Menu Snippet: Main Menu fading

Hello Everyone again.

I am requesting a snippet that makes the screen fade to black when you open the menu.

It would go something like the normal.

Call Menu Fade to black -> Open Menu -> Close Menu -> Fade back to normal

But not just using the fade out fade in feature, intead fading it using the Tint Screen option because I like the way it fades to black that way, if it's possible of course. If not, the conventional fade out fade in works as well.

I would really appreciate this!
Something like this?
Ruby:
class Scene_Map < Scene_Base

  alias amn_menufade_scenemap_callmenu  call_menu
  def call_menu
    amn_menufade_scenemap_callmenu
    Graphics.fadeout(30)
  end
 
end

class Scene_Menu < Scene_MenuBase

  def terminate
    Graphics.fadeout(30) if SceneManager.scene_is?(Scene_Map)
    super
  end
 
end
I will try this tommorrow. Thank you so much. Will let you know.
It works wonderfully so far! I will let you know of any issues if I encounter any. Once again thank you so much for this!

Original thread: https://forums.rpgmakerweb.com/threads/menu-snippet-main-menu-fading.121791/