Extra help window advice

Hi, I am new to this js/RMMV world and I am trying to make a script. Up to this point everything but the visuals work fine in my plugin . It involves adding a window to skill scene, the window should work like a help window, changing the info as the cursor moves above the skills, but showing info related to both: the skill and the actor. and not just info related to the skill, as in the regular help window. So far I have this working, but there are two issues:



* The info wont dissappear when no skill is selected 1.png



* The window shows above the actor selection window, when healing from the menu for example


2.png



I hope someone could help me. My goal is to make this plugin higly compatible, so I am trying to avoid rewriting methods. A sample of my plugin showing the issue is attached. Of course I will share the plugin when it is done. 😉  .


Regards!

View attachment skillw.js
- For the info to disapear, you must clear your window when you leave the skill selection.


You can do it by adding a code to clear and refresh the window on 'Scene_Skill.prototype.onItemCancel'


- For the window convering the target selection, you must change where you add the window into the scene children with the 'addWindow' function.


The windows are sorted based on the order that they were added as a child of the scene. On your case you add your window after all other windows were created.


Since you use the 'this._itemWindow' to create and setup your own window, instead of creating it on the 'Scene_Skill.prototype.create' you could do it on the the 'Scene_Skill.prototype.createItemWindow', this way, it will create the itemWindow, then your window, then the other windows, making it to be displayed bellow any window created after it.
Thanks a lot! it works fine now! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/extra-help-window-advice.62241/