Gold Icon (currency icon)

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
654
Reaction score
1,101
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


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

Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Besides my Might and Magic inspired project, I have always wanted to make a Fire Emblem-like game. Time is the culprit... Between life, composing music packs, and working on a game can it be done!? The tactical plugins for MV work quite well based on what I have tested.
Yaaay! My second public script is out and approved! A VX Ace Final Fantasy IX styled Throw Script!

I look forward to all the constructive feedback I get but most importantly I hope everyone who ends up using it enjoys!

Yaaaay! Making scripts is fun lol. :D
When you're lost out therrrrre and you're alllll alone, ahwahwah waitin, to carry you hooooommmme, uhhheverywhere you look! (someone hit me with those backing vocals)
X.X cant focus... too many thing want do... help!
Day 2 of teaching MV, student can move cat across the map.

Forum statistics

Threads
100,525
Messages
976,813
Members
132,080
Latest member
nwr
Top