Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created November 25, 2021 13:42
Show Gist options
  • Select an option

  • Save triacontane/130db9d4c6288d2e8814c0b560cd03fa to your computer and use it in GitHub Desktop.

Select an option

Save triacontane/130db9d4c6288d2e8814c0b560cd03fa to your computer and use it in GitHub Desktop.
フォントロードプラグインの利用例
/*:
* @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;
};
})();
@triacontane
Copy link
Copy Markdown
Author

testにフォントロードプラグインで設定した名称を記述します。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment