TLDR: Does anybody know how do draw multiple cursor selection in a Window_Selectable?
Long version:
So I am currently writing my own equipment system. One feature it has is that some pieces of equipment can occupy multiple equipment slots. (I also have custom equipment slots) So e.g. a hazmat suit would occupy the slots "head", "mask", "chest" and "pants". All of this works fine.
In the equipment chance scene I now want to display which equipment slots certain pieces of gear would occupy. Here is an image of the scene to make my explanation a little easier to understand.
On the top left (below the top most window) you have an instance of a customized
Whenever my selection in
As you can see in the screenshot, I am already able to draw multiple cursor selections in any given
To be precise I have modified the
Long version:
So I am currently writing my own equipment system. One feature it has is that some pieces of equipment can occupy multiple equipment slots. (I also have custom equipment slots) So e.g. a hazmat suit would occupy the slots "head", "mask", "chest" and "pants". All of this works fine.
In the equipment chance scene I now want to display which equipment slots certain pieces of gear would occupy. Here is an image of the scene to make my explanation a little easier to understand.
On the top left (below the top most window) you have an instance of a customized
Window_EquipSlot. The window that has all the equipment slot names in it. To it's right you have a Window_EquipItem. The big central window that lists all the items that are appropriate for the corresponding equipment slot. What I want to do is the following:Whenever my selection in
Window_EquipItem moves over an item that occupies multiple equipment slots I want all corresponding equipment slots in the Window_EquipSlot to look selected.As you can see in the screenshot, I am already able to draw multiple cursor selections in any given
Window_Selectable. The problem is that the additional selection boxes are only rendered when I call my function from within Window_EquipItem.To be precise I have modified the
Window.prototype._refreshCursor function of the Window_EquipSlot and as you can see it workes fine. The problem is, that Window_EquipSlot does not want to draw its additional cursor highlight when called from Window_EquipItem. Calling _refreshCursor from within Window_EquipItem's select function on the reference to my Window_EquipItem does nothing and I do not understand what the problem is.