any tip to reserve img

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
284
Reaction score
67
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
992
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
284
Reaction score
67
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
284
Reaction score
67
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

I like Iron Maiden.
Benku wrote on Magnus0808's profile.
Hey man you helped me out a long time ago with a plugin i was wondering if you can help me out one more time since its literally the last thing i need help with if not is cool but id figured id ask you one more soild.
Stream will be live shortly with a guest stream! Tonight, a new guest joins~ Feel free to drop by!
Finally told my boss I need a day off. Tomorrow will be my first in 23 days.
Kind of a goofy question but has the pandemic inspired you in any way?

Forum statistics

Threads
95,421
Messages
929,039
Members
125,650
Latest member
Magidonsa
Top