MZ Update selection cursor graphic in a scene?

Hello again! I've gotten further into my scene creation and am now working on a window based on Window_Selectable. I'm pretty sure my issue is related to my rather haphazard cobbling together of the whole thing.

I have selectable items on my window, they're being drawn properly. I even have them operating correctly when clicked (keyboard support seems to be missing, but I'll look into that a little later).

My problem is actually a fairly minor one, limited to aesthetics, but it looks odd, being unlike other selectable windows. Normally, the cursor essentially "blinks" over time on the object currently selected. Mine... doesn't. It DRAWS the cursor, but doesn't update it for the blink effect, so it stays the default opaque blue. I've found the function that operates it... but for some reason the stuff that calls it is being called on normal scenes, but not mine. I assumed it would operate when the window layer was updated, since it updates all windows on that layer. But even though I'm able to update the window layer just fine, the cursor is still never updated.

The function in question is in the core js file, but called from PIXI. I don't understand PIXI at all, haven't really looked into it much, it seems to be above my current level to really try to figure out outside of a few basic object definitions. So if the problem is something related to that... I'm lost. lol

The obvious assumption is that I've omitted something in the creation of either the scene or the window, or perhaps something in the update functions, but so far I haven't discovered WHAT.

Thanks in advance for any and all insight/advice/other assistance!

Edit: The main reason I don't call the relevant function directly is because this thing is cobbled together enough as it is, and I'd rather do stuff "properly" if I can.
Hello, I think you forget to call the update of the Selectable parent. Something like:
Window_Scrollable.prototype.update.call(this) in your update function. Update must go back all the way to Window.prototype.update() so it update the blinking cursor.
Hello, I think you forget to call the update of the Selectable parent. Something like:
Window_Scrollable.prototype.update.call(this) in your update function. Update must go back all the way to Window.prototype.update() so it update the blinking cursor.
You're absolutely correct, in a roundabout way. My selectable window inherits selectable functions, but is actually based on another window class I made, which is itself based on scrollable. I had my selectable calling its parent update, but the parent's update wasn't calling its own parent's update. (Still very new to the whole thing, so I'm still making stuff harder on myself than I need to just because I don't fully understand what I'm doing yet lol)

I added the parent update to the base window, and now the cursor blinks like it should. My keyboard control of the cursor is back, too, apparently I REALLY messed stuff up when I overwrote the selectable's update. 😛

I had added functions I saw from the update functions of the windows I was borrowing from when I should have just been calling the parent update from the start. Now I gotta go through all that and clear out the ones I no longer needed. I don't need those functions being called TWICE per update, it'll throw off the timing of everything in the entire scene. lol

Thank you so much!

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/update-selection-cursor-graphic-in-a-scene.137905/