[SOLVED] Call to close Window_Selectable

I have the following Window_Selectable, which allows me to select items from my inventory:


In the video, I am pressing the "esc" button to pull up the SubScreen, using arrows to maneuver among the items, and hitting "enter" to select the one I want, then hitting "esc" again to return to the map.

Everything works, as you can see in the HUD, the item I selected is registered and visible.
hud_item.PNG


However, I was wondering if somebody could help and tell me what command I need to call to exit out of the Window_Selectable SubScreen after I select an item?

The detection of "enter" is being handled by processHandling() and processOk():
processHandling.png


I grayed out this.callOkHandler() because it was giving me this error:
type_error.PNG

console_error_log.PNG

dismal_Subscreen.js: 337 is this.callOkHandler();

I haven't overwritten or included any of the succeeding "Handler" functions (except processOk()) in my extension class, but I'm including them below for reference:
Window_Selectable.png


Can anybody throw me a bone?

Thanks in advance!
Are you overwriting the Window_Selectable.prototype.initialize as well? If so, make sure to call the original method too.
Are you overwriting the Window_Selectable.prototype.initialize as well? If so, make sure to call the original method too.

@Hudell - thank you!

I was calling Window_Base.prototype.initialize instead of Window_Selectable, in my initialize function, so that solved the TypeError problem.

It still doesn't close the Window though. Do you know if there's a way to manually call whatever function the "esc" button is activating? Perhaps I could just include that at the end of my processOk()?

In any case, thanks!
@Hudell - thank you!

I was calling Window_Base.prototype.initialize instead of Window_Selectable, in my initialize function, so that solved the TypeError problem.

It still doesn't close the Window though. Do you know if there's a way to manually call whatever function the "esc" button is activating? Perhaps I could just include that at the end of my processOk()?

In any case, thanks!

NVM. I figured it out (I think)-

carbon (7).png

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.

Original thread: https://forums.rpgmakerweb.com/threads/solved-call-to-close-window_selectable.123202/