How to add an icon to my offer.

I'm not very good at JS commands yet but I hope you can help me.
I need to add an icon from my IconSet to my command, what syntax should I use? if at all this is possible?
Exanple:
Eval: "text " + $gameActors.actor(1).currentExp() + icon from icon set?
It depends on the context. If it supports text codes, you can use \i[x], e.g.
JavaScript:
"text " + $gameActors.actor(1).currentExp() + "\\i[123]"
If you're storing the result in a variable for display with \v[x], then use "\x1bi[123]" instead. Replace 123 with the icon index you want to show.
It depends on the context. If it supports text codes, you can use \i[x], e.g.
JavaScript:
"text " + $gameActors.actor(1).currentExp() + "\\i[123]"
If you're storing the result in a variable for display with \v[x], then use "\x1bi[123]" instead. Replace 123 with the icon index you want to show.
Yes, this makes sense, but in the plugin I use it doesn’t work, it’s the icon, everything else is good.
I forgot to write what this is for the plugin:

But if you don’t take into account the plugin, it works great thanks, maybe you also know how to get the map-display name using this simular syntax:
$gameActors.actor(1).currentExp()
Based on what you posted on SRD's webpage a couple of days ago, you better stick with just 1 column that's 240 pixels wide. It seems that the width and height are only valid for the window itself, not for the contents.

The Other Stuff

I also noticed that you can't combine the options in a single line. I'd have to test it a bit more, I guess.
Only custom texts get affected by the custom font size. Stuff like Gold or Map-Display won't be.
Based on what you posted on SRD's webpage a couple of days ago, you better stick with just 1 column that's 240 pixels wide. It seems that the width and height are only valid for the window itself, not for the contents.

The Other Stuff

I also noticed that you can't combine the options in a single line. I'd have to test it a bit more, I guess.
Only custom texts get affected by the custom font size. Stuff like Gold or Map-Display won't be.
Yes, indeed, apparently there is no option using a plugin, but I found an alternative, by simply overlaying the icon that I need on the background, this may not be entirely correct from a development point of view, but it is a working method if I need a static icon all the time.

In any case, if you find out something new, let me know, and thanks for the clarification, what you said helped me to some extent.
Yes, this makes sense, but in the plugin I use it doesn’t work, it’s the icon, everything else is good.
I forgot to write what this is for the plugin:
SRD's plugin uses drawText for "Eval:" type text (line 619). It would need to be drawTextEx to support text codes. I don't know whether editing that line would be sufficient to make things work, but you could try if you like. 👋

Note that using drawTextEx will disable the usual "squish" effect seen for long strings in narrow spaces.

how to get the map-display name using this simular syntax:
$gameActors.actor(1).currentExp()
JavaScript:
$gameMap.displayName()
(I notice that's not in the Script Call List for some reason, I need to start making a list of missing stuff. 😴)
SRD's plugin uses drawText for "Eval:" type text (line 619). It would need to be drawTextEx to support text codes. I don't know whether editing that line would be sufficient to make things work, but you could try if you like. 👋
Thanks for the advice, I'll try to edit it.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-an-icon-to-my-offer.166427/