any tip to reserve img

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
333
Reaction score
91
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
333
Reaction score
91
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
333
Reaction score
91
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

The new intro Logo for my videos.
The workweek is now over. Now I can work on my GamZzzzzZzzzzZzzzZzzZz....
Just watched Onward with the family. One of the best movies I've ever seen. <3
2 hours & 20 minutes remaining. :D
...trying to hurry finish up all commissions before I never put the controller down again ;)

Forum statistics

Threads
95,822
Messages
932,184
Members
126,254
Latest member
YKJordan
Top