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
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

Original thread: https://forums.rpgmakerweb.com/threads/gold-icon-currency-icon.121797/