Using a bust-based menu and looked everywhere in rpg_windows.js but can't find a way to increase the z-coordinates so that I can actually see the cursor. Where do I make the cursor/highlighter take priority?
Window_Selectable: Is there an option to make the cursor/highlighter appear above contents?
Javascript/Plugin SupportCan you link the menu plugin?
I don't think that there's the option for the cursor in it but here it is:
http://sumrndm.site/ams-busts-icons/
http://sumrndm.site/ams-busts-icons/
Why can't you see the cursor?
Portrait is too big
The cursor/highlighter priority is decided in 'Window.prototype._createAllParts'.
And 'this._windowCursorSprite' is cursor/highlighter itself.
This method belongs to rpg_core.js.
But If you change this method, all of window should be changed.
So,For example, I suggest adding a these script in SRD_AltMenuScreen_BustIcons.js.(Probably this is not best.)
PHP:
Window_MenuStatus.prototype._createAllParts = function() {
this._windowSpriteContainer = new PIXI.Container();
this._windowBackSprite = new Sprite();
this._windowCursorSprite = new Sprite();
this._windowFrameSprite = new Sprite();
this._windowContentsSprite = new Sprite();
this._downArrowSprite = new Sprite();
this._upArrowSprite = new Sprite();
this._windowPauseSignSprite = new Sprite();
this._windowBackSprite.bitmap = new Bitmap(1, 1);
this._windowBackSprite.alpha = 192 / 255;
this.addChild(this._windowSpriteContainer);
this._windowSpriteContainer.addChild(this._windowBackSprite);
this._windowSpriteContainer.addChild(this._windowFrameSprite);
this.addChild(this._windowContentsSprite);
this.addChild(this._downArrowSprite);
this.addChild(this._upArrowSprite);
this.addChild(this._windowPauseSignSprite);
this.addChild(this._windowCursorSprite);
};
These code override 'Window_MenuStatus.prototype._createAllParts' method.
Last but not least, cursor priority is determined by addChild() order.
Hope this reply help !
Never thought it would be in rpg_core! I thought it'd be a bit more obvious since I looked in rpg_windows where you'd expect it to be.
And yeah, the location of the contents is in this._WindowContentsSprite now that I checked.
And yeah, the location of the contents is in this._WindowContentsSprite now that I checked.
Original thread: https://forums.rpgmakerweb.com/threads/window_selectable-is-there-an-option-to-make-the-cursor-highlighter-appear-above-contents.82808/