any tip to reserve img

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
325
Reaction score
74
First Language
thai
Primarily Uses
RMMV
I see there are
ImageManager.reserveFace(actor.faceName());
for reserve face img
but if I want to reserve something else like
custom img
in scene_menu function
any one had some tip for it
thank you
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
1,510
Reaction score
993
First Language
EN
Primarily Uses
RMMV
I think this'll do it: ImageManager.reserveBitmap(folder, filename, hue, smooth, reservationId);

You can find the ImageManager and all its methods in rpg_managers.js; in v1.6.2 reserveBitmap is defined on lines 976~985. :)
 

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
325
Reaction score
74
First Language
thai
Primarily Uses
RMMV
I think this'll do it: ImageManager.reserveBitmap(folder, filename, hue, smooth, reservationId);

You can find the ImageManager and all its methods in rpg_managers.js; in v1.6.2 reserveBitmap is defined on lines 976~985. :)
yes... I already find some that specific the
ImageManager.reserveSystem = function(filename, hue, reservationId)
and my image is in the system folder
so I try
ImageManager.reserveSystem('WindowLevel', 0, 2);
but the img not reserve as it should
image_20200124_192557.png
the window skin I test back to normal when I refresh it one time
so I assume that it not load in time at initialization

so... is there other way like wait in function?
 

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
325
Reaction score
74
First Language
thai
Primarily Uses
RMMV
solve
in case someone curios
ซีน_อัพเลเวล.prototype.start = function() {
Scene_Base.prototype.start.call(this);
//this._หน้าต่างชื่อ.refresh();
//this._หน้าต่างข้อมูล.refresh();
this._หน้าต่างสเตตัส.refresh();
this._หน้าต่างเลเวล.refresh();
this._หน้าต่างตัวเลือก.refresh();
};
there are start fucntion that I miss
it can refresh the scene before showing
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Pft... people think the moon landing is fake. Nonsense. The moon doesnt even exist in the first place, it's just the reflection of the earth on the surface of space.
I don't know if anyone will get my old pop culture references. Item: Empty Basket. Description: Don't worry. Yogi Bear won't try to steal it.
My second childrens book is finally uploaded and approved and available to buy! I am so happy!
I just realized I passed 1,000 likes. I'm amazed you people actually like this crap. It's no surprise you'd like my high quality content. :kaopride:
Running on a creative high right now. Expanding my Redwood tile D with doors, windows, and some other odds and ends today.

Forum statistics

Threads
95,751
Messages
931,595
Members
126,142
Latest member
KRinlock
Top