Created
November 25, 2021 13:42
-
-
Save triacontane/130db9d4c6288d2e8814c0b560cd03fa to your computer and use it in GitHub Desktop.
フォントロードプラグインの利用例
This file contains hidden or 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 フォントロードプラグインのプラグイン利用例 | |
| * @target MZ | |
| */ | |
| (()=> { | |
| const _Window_Base_drawItemName = Window_Base.prototype.drawItemName; | |
| Window_Base.prototype.drawItemName = function(item, x, y, width) { | |
| const prev = this.contents.fontFace; | |
| this.contents.fontFace = 'test'; | |
| _Window_Base_drawItemName.apply(this, arguments); | |
| this.contents.fontFace = prev; | |
| }; | |
| })(); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
testにフォントロードプラグインで設定した名称を記述します。