Window_Selectable and the Battle Window

Hello everyone,

I'm trying to work on adding face graphics to the battle window in MV. I was hoping to get some more ideas on how I can go about this. 
I was able to get images on to the window, but the main issue is that when I click on  a command, the selected area doesn't match the rectangle for the face graphic.
I was wondering how I could change the way the battle window highlights/selects an actor in the battle window once you select an actor. If anyone could point me in the right direction; it would be helpful. 

Thanks.
Window_Selectable uses a bunch of different values to find the rectangle location per index, but namely the function itemRect(index) is what determines the bounds of the selection cursor.


You can modify this to your liking or look at how it is written and change the used values within your battle window to scale it correctly for your needs.
Thanks Sarkilas for the information; I will take a deeper look at the Window_Selectable class, plus the itemRect function, and see if I can get the rectangle to suit my needs.
Once again, I really appreciate the help. 🙂


----------------------------------


Completed the script!

That information was very helpful; I had to modify the number of columns for my battle window to handle selecting the rectangles. I also learned how to adjust the font size (this.contents.fontSize associated with the current window bitmap), and reset the font size (Window_Base.resetFontSettings()) as a result. 

Once again, Thanks for the help Sarkilas.

Original thread: https://forums.rpgmakerweb.com/threads/window_selectable-and-the-battle-window.55901/