Skip to content

Instantly share code, notes, and snippets.

@elleonard
Created November 2, 2023 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elleonard/c94ec397111a3ffdae2a1e94ad9610ff to your computer and use it in GitHub Desktop.
Save elleonard/c94ec397111a3ffdae2a1e94ad9610ff to your computer and use it in GitHub Desktop.
RPGツクールMV 用語集シーンセットアップ時に何らか画像をロードするプラグインの例
/*:
* @plugindesc 用語集シーンセットアップ時に何らか画像をロードするプラグインの例
* @author DarkPlasma
* @license MIT
*
* @target MV
* @help
* SceneGlossary.jsの用語集シーンのセットアップ時に
* 何らかの画像をロードするプラグインの例です。
*
* SceneGlossary.jsよりも下に配置してください。
*/
(() => {
'use strict';
function Scene_Glossary_PreloadImageMixIn(sceneGlossary) {
const _create = sceneGlossary.create;
sceneGlossary.create = function () {
_create.call(this);
this.preloadImages();
};
sceneGlossary.preloadImages = function () {
ImageManager.loadBitmap('ファイル名', 0, true);
};
}
Scene_Glossary_PreloadImageMixIn(Scene_Glossary.prototype);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment