any tip to reserve img

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
181
Reaction score
29
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,464
Reaction score
952
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
181
Reaction score
29
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
181
Reaction score
29
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

People in Italy panicking for this stupid coronavirus, it's nothing more than a flu and they are all acting like it's the black plague...
Blech. I hate coming up with stories. Making gameplay is fun but coming up with lore and reasons for these areas/mechanics just makes me sleepy.
40 card deck size, the plugin seems more sluggish.
Village theme I composed for a commission!

Forum statistics

Threads
94,567
Messages
921,939
Members
124,430
Latest member
Venator123
Top