[SOLVED] Window_ChoiceList Cursor

What do I need to rewrite to change the Window_ChoiceList (Show Choices) cursor so that it uses a larger cursor image that is not part of the system/Window.png spritesheet?

Thanks 🙂

Also: Is it possible to have the Window_ChoiceList window overlap the Window_Message window without erasing the Window_Message below it?
window_choicelist.PNG
If you use .addWindow, you'll get the disappearing overlap. If you use .addChild to add the second window, you won't get that.

to change or replace the cursor, you'll want to interact with the
Window_ChoiceList.prototype._windowCursorSprite object, on your child class. If you want to use a custom sprite, you can replace the existing one.
That sprite gets created during the
Window_ChoiceList.prototype._createAllParts
function


EDIT: I'd have to look into it, but if you do use .addChild to avoid the disappearing overlap, you'll probably have to do some extra legwork to clean it up, although you might still be alright
@standardplayer Thank you!

I found it near ._createAllParts in ._refreshCursor, now it works:
choice_cursor.gif


I'm about to look into adding the Window_ChoiceList as a child. Thanks again!
@standardplayer It works! Thank you again!
window_choicelist_overlap.PNG
Awesome!
Now, because I haven't tested this case, and just for anyone who might read this same thread, I wanted to ask:

Does it clean up properly on it's own, after changing to .addChild?
I'm kind of theorizing that it would clean up fine, but it's just a theory.

What I mean of course is when you terminate the choice sequence after making these changes, did you get any errors?
Awesome!
Now, because I haven't tested this case, and just for anyone who might read this same thread, I wanted to ask:

Does it clean up properly on it's own, after changing to .addChild?
I'm kind of theorizing that it would clean up fine, but it's just a theory.

What I mean of course is when you terminate the choice sequence after making these changes, did you get any errors?

I stopped the cursor from blinking (graying out this._updateCursor()) so I had to move this._windowCursorSprite.visible from that to ._updateTransform so that the cursor didn't hang around on the screen after the Window_Message was closed:
updateTransform.png


But otherwise it seems to work great without any legwork.

Thanks!

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-window_choicelist-cursor.124116/