MZ condition to check if a specific window is currently active in battle [SRD HUD Maker]

I'm looking for script calls to check if a specific window is currently active in battle (waiting for player input).

I want to use them as condition in SRD Hud Maker for some battle UI elements to show up dynamically when the player is selecting command in any of these windows ;

Capture d’écran, le 2023-08-17 à 00.07.39.png


skillWindow
actorCommandWindow
...and the item window one :LZSblush:


Thank you so much
You can try:

Code:
SceneManager._scene._skillWindow.active
SceneManager._scene._actorCommandWindow.active
SceneManager._scene._itemWindow.active
Hi there!

You may be able to use:
  • SceneManager._scene._skillWindow.isOpenAndActive()
  • SceneManager._scene._itemWindow.isOpenAndActive()
  • SceneManager._scene._actorCommandWindow.isOpenAndActive()
Hi there!

You may be able to use:
  • SceneManager._scene._skillWindow.isOpenAndActive()
  • SceneManager._scene._itemWindow.isOpenAndActive()
  • SceneManager._scene._actorCommandWindow.isOpenAndActive()

That works perfectly ! Thanks a lot :LZSjoy:

Cheers

Original thread: https://forums.rpgmakerweb.com/threads/condition-to-check-if-a-specific-window-is-currently-active-in-battle-srd-hud-maker.160361/