Use icons instead of currency name for this script?

I found a few scripts that allows the creation of more currencies using variables

EST - CONSTANT CHANGER (https://www.rpgmakercentral.com/topic/19969-est-constant-changer/)
and EST - SELECT CURRENCY (https://www.rpgmakercentral.com/topic/19492-est-select-currency/).

I'm wondering, are there any ways to instead of displaying the currency's "name" in a store when using variables, display a chosen icon instead?
(also, I'm using icons for currencies)
A little tag for @estriole
Bump?
Bump?
Give it a bit of time. Script and plugin request sometimes take a bit of time, especially scripts since a lot of Ruby coder moved to MV and are now using javascript (like myself for example). Your request isn't too demanding, so a VX Ace coder might take your request, but like I said there aren't that many of them.

bump, please do not bump your topic unless it has been 24 hours later since your last post. You can review our forum rules here. Thank you.

I don't think it's completely true that there aren't enough RGSS scripters around, actually there are about a ten or dozen here at least. The issue is that this kind of requests aren't really appealing to veteran scripters, especially if they gotta care about modifying other scripters' works only to provide something like icons. Some people would prefer to write a new custom script instead for it'd let the given scripter the chance to define all rules instead of adapting his ideas to another person's way of thinking... :S
veteran scripters
which is why I haven't tried. The request is beyond my skill. I haven't spend time learning ruby or rpg maker in depth. Just the basics
@kyonides Compared to the number of members on the forum, the number of coders is a small minority. And add to that that some of the coders moved to javascript or MV and prefer not to look back too much because it has been some time since they've coded in Ruby (aka me).

Besides, let's stay on topic for OP.
Untested, but see if this works:
Code:
class Window_Base < Window
  alias amn_currency_windbase_drawcurval  draw_currency_value
  def draw_currency_value(value, unit, x, y, width)
    return draw_icon_currency_value(value, $1.to_i, x, y, width) if unit =~ /\\i\[(\d+)\]/i
    amn_currency_windbase_drawcurval(value, unit, x, y, width)
  end

  def draw_icon_currency_value(value, icon_index, x, y, width)
    draw_icon(icon_index, x, y)
    change_color(normal_color)
    draw_text(x, y, width - 24 - 2, line_height, value, 2)
  end
end

You can draw an icon instead of the currency unit by using the escape character. For example:
Code:
currency_unit("\\i[5]")
(where 5 is the 5th icon in the icon set)
@A-Moonless-Night
Where do I add the code?
@Lionheart123 Add it into a new slot between Materials and Main.
Okay, thanks! You're awesome!

Original thread: https://forums.rpgmakerweb.com/threads/use-icons-instead-of-currency-name-for-this-script.117349/