MV SRD HUD maker conditions JS for Battle menus?

So I'm using SRD HUD maker to customise my battle menu for Items, skills, etc.

In total I have 6 commands. Row, Stances, Ability, Spell, Ultra, (These are all skill types so I think just checking to see if a skill menu is on would works?)
And Inventory (Item menu)
And for the Help/description window.

What I'm after is the script to check to see if they are open. I want to show a image whenever these windows are open so something to put in the conditions of SRD HUD maker.

What the condition does that if the requirements are met then it will turn on the image.

Many thanks.
either a switch (each command) or variable value.
0 for index 1
5 for index 6

so the value can check if it's open or not which is the best approach to take.
either a switch (each command) or variable value.
0 for index 1
5 for index 6

so the value can check if it's open or not which is the best approach to take.

I'm a little lost here? In regards to using the switches/Variables?



I'm looking for something to put directly into the condition to say, yes this is on screen show the image.

Something like.

Code:
SceneManager._scene._Window_BattleSkill.visible
The skill type of the list window is in the _stypeId property.

So you can do something like
Code:
SceneManager._scene._skillWindow.visible && SceneManager._scene._skillWindow._stypeId == 2
The skill type of the list window is in the _stypeId property.

So you can do something like
Code:
SceneManager._scene._skillWindow.visible && SceneManager._scene._skillWindow._stypeId == 2

That works perfectly, Just need one for The Item menu now.


Code:
SceneManager._scene.BattleItem.visible

I assumed would be it? But it's not working?
Code:
SceneManager._scene.BattleItem.visible
I assumed would be it? But it's not working?
No offense, but
1 - that's not a good assumption, as it does not match the naming scheme of anything else
2 - it doesn't make much sense to try to assume in code. If it's not exactly right, it won't work. If you don't know, just Google it or ask 😉

Code:
SceneManager._scene._itemWindow.visible

Good luck with your project.

Original thread: https://forums.rpgmakerweb.com/threads/srd-hud-maker-conditions-js-for-battle-menus.169996/