Cursor itself is defined in Window prototype stuff in rpg._core and managed in Window_Selectable.prototype functions.
Since Window_Selectable is Window.prototype and Window_MenuStatus is Window_Selectable prototype, the functions that Window_Selectable has are inherited from it by Window_MenuStatus.
Calling the function that makes cursor blink is the Window_Selectable.prototype.updateCursor.
Well
I still don't know how it works.
If I want to show a picture when the actor is beening choose but not select yet.
How can I do?
Now I got a background.
And I also got background under actor in drawItemBackground.
And the purple arrow is my cursor.
Now is at Lucius.
Right now I just choose Lucius not select yet.
When I click on Lucius again, then I select Lucius.
Then the background become green.
My question is at first picture.
I want to show different background when I choose Lucius(not select yet)
But I can't use cursor, because Now my cursor is on the top of _windowContentsSprite
So if I let my cursor become a picture then I can't see my actor anymore.
I can't set the cursor under the _windowContentsSprite.
Because the background in the drawItemBackground will cover the cursor.
Code:
Window_MenuStatus.prototype.drawItemBackground = function(index) {
var rect = this.itemRect(index);
var S_ratio = Graphics.width / 816;
if(index !== 0) {
if (index === this._pendingIndex) {
var bitmap = ImageManager.loadPicture('follower- background select');
var pw = bitmap.width;
var ph = bitmap.height;
this.Ken_drawBackground('follower- background select', rect.x - rect.width / 11 - 2 * S_ratio, rect.y - (ph - rect.height) / 2);
} else {
this.Ken_drawBackground('follower- background', rect.x - rect.width / 11, rect.y);
var x = this._cursorRect.x;
var y = this._cursorRect.y;
var w = this._cursorRect.width;
var h = this._cursorRect.height;
this.Ken_drawBackground('follower- background select', x - rect.width / 11 - 2 * S_ratio, y - (ph - rect.height) / 2);
};
};
};
The code is how I change the background.
follower- background select is the green one.
follower- background is the gray one.
And I also got a scene background, that is the one below the whole picture.
Now I can think of a way, and I'm not sure whether it's possible or not.
Find the code define whitch actor is been choose(not select yet).
And put one more condition, like
Code:
if (index === this._pendingIndex) {
var bitmap = ImageManager.loadPicture('follower- background select');
var pw = bitmap.width;
var ph = bitmap.height;
this.Ken_drawBackground('follower- background select', rect.x - rect.width / 11 - 2 * S_ratio, rect.y - (ph - rect.height) / 2);
} else if (now the actor is under choose, but not activate yet) {
show another background
} else {
this.Ken_drawBackground('follower- background', rect.x - rect.width / 11, rect.y);
var x = this._cursorRect.x;
var y = this._cursorRect.y;
var w = this._cursorRect.width;
var h = this._cursorRect.height;
this.Ken_drawBackground('follower- background select', x - rect.width / 11 - 2 * S_ratio, y - (ph - rect.height) / 2);
};
But I don't know the correct code to use.
Do you know the code I'm looking for or different solution?
Thank you.