tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
812
Reaction score
1,384
First Language
English
Primarily Uses
N/A
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
 

Attachments

  • MNKR_GoldIcon.js
    719 bytes · Views: 9
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

Is it necroposting if I ask for more info in my own months old thread? All the information in the thread is relevant
JRPG TextBox HTML - Part 2:
So I'm resuming work on the Shadowstar Trilogy. I've decided that it will take place between the end of G4 and the start of G5, and two of the Lost Rulers will be Twilight Sparkle and Sunset Shimmer (who is the moon princess in my AU).
Been working on some sprites, My favorite out of all of them is this guy, his name is Moss:

Forum statistics

Threads
108,960
Messages
1,040,889
Members
141,423
Latest member
KAVKA
Top