Hello, everyone!
Recently in this thread, @Aerosys helped me creating a plugin that can change the IconSet image during gameplay (so that way I can make a few script calls for a new image to replace the default IconSet, or reset the original).
Said plugin is the next:
And it uses the next script calls:
This one is to call a new IconSet image, and load it in the cache, to avoid it not showing the icons the first time you open a menu, or call for an icon image in a message (please, not that the "IconSet_KB" is a mockup of the image name called, and loaded).
This other one is to reset the default IconSet image:
What I would like to do, now that this plugin can allow me to change the IconSet at will, is to give the players an option to select which IconSet images they desire to use. Why so? For some of the system/tutorial/dialogue texts in my game can reflect Keyboard, XBOX, or PlayStation 5 controller icons.
In the original thread, @alasth gave me some hints on how to create an option for the YEP Options Core plugin, but unfortunatelly, it requires more programming knowledge than that I have.
What I would like is to have an option that reflects 3 possibilities:
It would be appreciated if you could spare a moment, and try to help me in this quest.
Thank you very much in advance,
Oscar92player.
Recently in this thread, @Aerosys helped me creating a plugin that can change the IconSet image during gameplay (so that way I can make a few script calls for a new image to replace the default IconSet, or reset the original).
Said plugin is the next:
JavaScript:
(function() {
const _loadSystem = ImageManager.loadSystem;
ImageManager.loadSystem = function(filename) {
return _loadSystem.call(
this,
filename.toLowerCase() == 'iconset' && $gameSystem._iconSetOverride
? $gameSystem._iconSetOverride
: filename
);
}
})()
And it uses the next script calls:
This one is to call a new IconSet image, and load it in the cache, to avoid it not showing the icons the first time you open a menu, or call for an icon image in a message (please, not that the "IconSet_KB" is a mockup of the image name called, and loaded).
JavaScript:
$gameSystem._iconSetOverride = "IconSet_KB"
ImageManager.loadSystem('IconSet_KB');
this.setWaitMode('image');
This other one is to reset the default IconSet image:
JavaScript:
$gameSystem._iconSetOverride = undefined
ImageManager.loadSystem('IconSet');
this.setWaitMode('image');
What I would like to do, now that this plugin can allow me to change the IconSet at will, is to give the players an option to select which IconSet images they desire to use. Why so? For some of the system/tutorial/dialogue texts in my game can reflect Keyboard, XBOX, or PlayStation 5 controller icons.
In the original thread, @alasth gave me some hints on how to create an option for the YEP Options Core plugin, but unfortunatelly, it requires more programming knowledge than that I have.
What I would like is to have an option that reflects 3 possibilities:
- To reset the default IconSet image (which will be for Keyboard key icons).
- To call for another IconSet image (which will be for the XBOX button icons).
- To call for another IconSet image (which will be for the PlayStation button icons).
It would be appreciated if you could spare a moment, and try to help me in this quest.
Thank you very much in advance,
Oscar92player.