RGSS3 Window_Base opacity edits

I want to see if I can replace the window opening/closing effect with a fade in and out! Command windows fade in and out fine, but it breaks Scene_Menu completely hahaha
How would I fix Scene_Menu scene calling and various other windows to this change? (Since "open?" / "close?" would be basically useless, I think....) Or did I forget to fix something in Window_Base??
Code:
class Window_Base < Window
  #--------------------------------------------------------------------------
  # * Object Initialization - aliased
  #--------------------------------------------------------------------------
  alias :z2983_initialize :initialize
  def initialize(x, y, width, height)
    z2983_initialize(x, y, width, height)
    self.openness = 255
    self.contents_opacity = 0
    self.opacity = 0
  end
  #--------------------------------------------------------------------------
  # * Update Open Processing - overwrite
  #--------------------------------------------------------------------------
  def update_open
    self.contents_opacity += 48
    self.opacity += 48
    @opening = false if self.opacity == 255
  end
  #--------------------------------------------------------------------------
  # * Update Close Processing - overwrite
  #--------------------------------------------------------------------------
  def update_close
    self.contents_opacity -= 48
    self.opacity -= 48
    @closing = false if self.opacity == 0
  end
  #--------------------------------------------------------------------------
  # * Open Window - overwrite
  #--------------------------------------------------------------------------
  def open
    @opening = true unless self.opacity == 255
    @closing = false
    self
  end
  #--------------------------------------------------------------------------
  # * Close Window - overwrite
  #--------------------------------------------------------------------------
  def close
    @closing = true unless self.opacity == 0
    @opening = false
    self
  end
end
Code:
open? (RGSS3)
Returns true if the window is completely open (openness == 255).

close? (RGSS3)
Returns true if the window is completely closed (openness == 0).

You need to rewrite those 2 methods to check the window's opacity instead of openness and it should work, I think.
These aren't useless methods even with your edits, because some default scripts (and most probably some custom ones too) will call them still.

Also, if you set the opacity to 0, there is no reason to set contents_opacity to 0 too, since opacity changes the whole window's opacity, including its contents.
You only need to use contents_opacity when you want to keep the window's graphics (the borders and background) without its contents.
Oh, not sure about that... setting only opacity on the title command and not contents_opacity gives me this hahahaha
1606804119022.png

1606804470607.png
same happens with the scene_menu windows, too lazy to check others 🤣
anyways! I guess that open?/close? fix is sort of working now? Need to do more tests...
Ohh, I even tested it in a project, but choose the wrong one for it, because I modified the opacity change to change both of them at once there already a long time ago.
Haven't worked with windows for some time by now, kinda forgot how they work by default. 😀

Original thread: https://forums.rpgmakerweb.com/threads/rgss3-window_base-opacity-edits.130475/