Created
July 13, 2021 13:10
-
-
Save InabaByakko/8c36e248f2e17050653c30da3fb702ff to your computer and use it in GitHub Desktop.
トリアコンタンさんの吹き出しプラグインとGalv's Timed Message Popupsを併用するための競合解決パッチ
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
| // 使用法:GALV_TimedMessagePopups.js の末尾 })(); より前に | |
| // 以下のコードをコピーペーストする | |
| // 以下のバージョンで動作確認済み | |
| // MessageWindowPopup: 2.9.0 | |
| // GALV_TimedMessagePopups: 1.7 | |
| Window_GalvCaption.prototype.standardFontSize = function() { | |
| var prm = PluginManager.parameters('MessageWindowPopup'); | |
| return Number(prm['FontSize'] || prm['フォントサイズ'] || | |
| Window_Base.prototype.standardFontSize.call(this)); | |
| }; | |
| Window_GalvCaption.prototype.standardPadding = function() { | |
| var prm = PluginManager.parameters('MessageWindowPopup'); | |
| return Number(prm['Padding'] || prm['余白'] || | |
| Window_Base.prototype.standardPadding.call(this)); | |
| }; | |
| Window_GalvCaption.prototype.lineHeight = function(){ | |
| var prm = PluginManager.parameters('MessageWindowPopup'); | |
| var bline = Number(prm['BetweenLines'] || prm['行間']); | |
| return this.standardFontSize() + bline; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment