RMMZ Detecting whether Window_ActorCommand is open or closed?

Status
Not open for further replies.

Hyo

Warper
Member
Joined
Feb 27, 2021
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMZ
I am attempting to reposition the location of the Attack, Skills, Items, and Guard buttons in Window_ActorCommand. I was attempting to use SceneManager._scene._actorCommandWindow.active to check whether or not the window is open with an if statement inside of Window_Selectable.prototype.itemRect, but that just errors out on runtime with "Cannot read property 'active' of undefined". I noticed that when I removed .active from the end it would work, but would affect every button in the battle scene. Any help that can point me in the right direction would be greatly appreciated!
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
41,867
Reaction score
14,522
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

I managed to review my previous lessons on Learn MV and fixed a lot of things. Yay! :kaopride:
I've decided "Attack on Equestria" should be released first... hence this new ARG channel! https://www.youtube.com/channel/UClKiUI8xOVx9dsF4kRXUmxw
Check it out, and subscribe! The ARG will lead up to the video game. It's not a creepy game, but I just thought it should follow ARG standards.
For anyone interested in my project M - i finally made a gamethread about it :D

Forum statistics

Threads
110,410
Messages
1,053,091
Members
143,474
Latest member
Arsyloth
Top