MV How to use images from plugin file parameter

So getting straight to the point:
I have:
Code:
 * @param Background Image
 * @desc The background image that is to be scrolled
 * @type file
 * @dir img/titles1
 * @default Book
 
var impactMVars = impactMVars || {};

impactMVars.parameters = PluginManager.parameters('Ice_ImpactMenu');
impactMVars.background = impactMVars.parameters['Background Image'];

My question is, how do I use that parameter, what is it actually parsed there? (is it a path, it is a bite array, something else!?)
The F8 console won't tell me if I place a watch on impactMVars.background.

Do I just
this._back_img = ImageManager.loadTitle1(impactMVars.background); //or
this._back_img = impactMVars.background; //or something else?


To give you some context on what I am trying to do, is to manipulate the title background image through my plugin, but until now I only managed to remove the old one...
if you have the background image, you use the first one

this._back_img = ImageManager.loadTitle1(impactMVars.background);

which goes back to your parameter to read.
if the function is compleet in the way you want to set it.
if the function is not completed, it wont work either 🙂
if you have the background image, you use the first one

this._back_img = ImageManager.loadTitle1(impactMVars.background);

which goes back to your parameter to read.
if the function is complete in the way you want to set it.
if the function is not completed, it wont work either 🙂
So I parse the parameter correctly right?
yes, but parsing is not required unless you want it too or a different
reason you need to parse it.

than you do mostly something like this:
impactMVars.background = parse(impactMVars.parameters['Background Image']);

but that is entirely what you want to do exactly, static image can be chosen
by default in teh editor -> system part.

dynamically to choose one when you progress require a different approach.
while there are 2 nice one.

YEP_DynamicTitles and MrTs_ProgressTitle are 2 nice plugin to change
the title screen.

MrTs plugin only change it UPWARDS, but not downwards!
Yep one can change it through plugin command.

but it really depends how your plugin works on the title screen,
and or per save file.

single savefile works perfectly with YEP's one, multiple one probably not so much,
while it remember the latest save file.

so it really depends how your works and when to know when to parse it.
but some advance coding is something I still learn. but there are some sites
and alot of information how, when, where to parse it nicely 🙂
By default plugin parameters are retrieved in string format, so like ShadowDragon says, you shouldn't need to do any parsing here.

Note that you can type impactMVars.background, or any other references you want to check, directly into the console at run-time and press Enter to evaluate it. Press F8 during test (F12 if it crashes on launch) to show dev tools, then make sure the Console tab is selected.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-use-images-from-plugin-file-parameter.139163/