A bit late, but probably better late than never?
I came across pretty much the same issue an hour ago, and at first was a bit dumbfounded, too.
The answer is that SRD's linked to a wrong or outdated entry.
EnemyList (which he links to) & enemyWindow (which he defines as his own "value holder" of EnemyList) both aren't terms used in the rpg_windows.js.
To find the correct terms, that's where you have to go.
So if you open rpg_windows.js (which is where the vanilla windows are handled) and scan through the lines, you'll come across this:
Code:
//-----------------------------------------------------------------------------
// Window_BattleEnemy
//
// The window for selecting a target enemy on the battle screen.
function Window_BattleEnemy() {
this.initialize.apply(this, arguments);
And that's the window function you're looking for when targeting enemies: BattleEnemy.
In SRD's file, you'll find this entry:
Code:
//-----------------------------------------------------------------------------
// BattleManager
//-----------------------------------------------------------------------------
followed by lines like this one:
Code:
BattleManager.setEnemyListWindow = function(enemyList) {
this._enemyList = enemyList;
This is where he tries to connect his script to the enemy target window - using an incorrect or outdated term.
So if we select "enemyList" and use ctrl + f to open the search function, we can search for that term. If you press on count (using Notepad++) you'll probably get about 20 entries. These are all incorrect, either directly or indirectly. While some are indirect links, at least the code shown directly above this
defines where to aim at and is the one that'll definitely have to be adjusted.
Solution:
So switch to replace function and let ALL "enemyList" entries be replaced by "BattleEnemy" then use
Code:
!BattleManager._BattleEnemy.visible
in the plugin menu to mark this as something to hide.
The result: The Actor Window disappears when selecting the enemy.
If you follow the steps up above you can further find & fix other entries that don't point at the correct target file in the rpg_windows.js.