43 lines
1.9 KiB
JavaScript
43 lines
1.9 KiB
JavaScript
//=============================================================================
|
||
// CommandIcon.js
|
||
// ----------------------------------------------------------------------------
|
||
// Copyright (c) 2015 Triacontane
|
||
// This software is released under the MIT License.
|
||
// http://opensource.org/licenses/mit-license.php
|
||
// ----------------------------------------------------------------------------
|
||
// Version
|
||
// 1.0.1 2016/03/07 オプション画面のレイアウトが崩れる問題を修正
|
||
// 1.0.0 2016/03/06 初版
|
||
// ----------------------------------------------------------------------------
|
||
// [Blog] : http://triacontane.blogspot.jp/
|
||
// [Twitter]: https://twitter.com/triacontane/
|
||
// [GitHub] : https://github.com/triacontane/
|
||
//=============================================================================
|
||
|
||
/*:
|
||
* @plugindesc アイコン付きコマンドプラグイン
|
||
* @author トリアコンタン
|
||
*
|
||
* @help メニューやタイトルのコマンドにアイコンが付けられるようになります。
|
||
* 正確にはコマンドに制御文字が使えるようになりますので
|
||
* 文章の表示と同じ要領でアイコンを設定したり、文字色を変えたりできます。
|
||
* ただし、横幅をはみ出した場合に文字を自動で縮小する機能は無効となります。
|
||
*
|
||
* このプラグインにはプラグインコマンドはありません。
|
||
*
|
||
* 利用規約:
|
||
* 作者に無断で改変、再配布が可能で、利用形態(商用、18禁利用等)
|
||
* についても制限はありません。
|
||
* このプラグインはもうあなたのものです。
|
||
*/
|
||
|
||
(function () {
|
||
"use strict";
|
||
Window_Command.prototype.drawText = function (text, x, y, width, align) {
|
||
if (this instanceof Window_Options) {
|
||
Window_Base.prototype.drawText.apply(this, arguments);
|
||
} else {
|
||
this.drawTextEx(text, x, y);
|
||
}
|
||
};
|
||
})();
|