Created
November 2, 2023 13:00
-
-
Save elleonard/c94ec397111a3ffdae2a1e94ad9610ff to your computer and use it in GitHub Desktop.
RPGツクールMV 用語集シーンセットアップ時に何らか画像をロードするプラグインの例
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*: | |
* @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