じ☆ve冰风 发表于 2026-7-27 17:16:16

Gold Icon (currency icon)

MNKR_GoldIcon - 2020/03/30

Creator name: munokura

Introduction
Replace currency unit display with icon

Note: if you only want to change gold icon only without using YEP_CoreEngine.

Feature
Parameter to set gold icon based on icon ID

Preview

https://i.imgur.com/tQLkcEt.png


Credit and Thanks: munokura

Terms of Use- Free for commercial and non-commercial use.

License - Public Domain

                JavaScript:       
/*:
* @plugindesc Replace currency unit display with icon
* @author munokura
*
* @param Gold Icon
* @text Currency icon ID
* @type string
* @desc Icon ID used for currency unit
* @default 313
*
* @help
* Replaces Currency Unit display with an icon.
*
* Terms of Use
* Copyright from the author is waived.
* License- Public Domain
*/

(function() {
    'use strict';

    var parameters = PluginManager.parameters('MNKR_GoldIcon');
    var goldIcon = parseInt(parameters['Gold Icon'] || 313);

    Window_Base.prototype.drawCurrencyValue = function(value, unit, x, y, width) {
      this.resetTextColor();
      this.drawText(value, x, y, width - 36 - 6, 'right');
      this.drawIcon(goldIcon, x + width - 36, y);
    };

})();


You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/y3yj04b5r3k95jk/MNKR_GoldIcon.js?dl=1


本贴来自国际rpgmaker官方论坛作者:ovate处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/gold-icon-currency-icon.121797/
页: [1]
查看完整版本: Gold Icon (currency icon)