How can I stick icons together with \i[n] ?

TheDrifter

Veteran
Veteran
Joined
Apr 18, 2012
Messages
121
Reaction score
7
First Language
English
Primarily Uses
Hi, 

I've encountered an issue with how using \i[n] to display icons works in this game.

The project I'm working on is heavily dependent on using (for example) \i[1]\i[2]\i[3] so it displays three icons that stick together.

However, in RPG Maker MV, there's a small gap between each icons for some reason.

How may I remove those gaps between icons when I want to display a bunch of them together?

Thank you very much for your help!

Icons.png
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
I would suggest using a art program to put the icons together, saving it as one pic, and then dropping it into the picture file or whatnot, so you could use the show picture command instead.
 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
There is a built in buffer of 4 pixels i think? Just change that to 0?
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
In rpg_windows.js

Window_Base.prototype.processDrawIcon = function(iconIndex, textState) {    this.drawIcon(iconIndex, textState.x + 2, textState.y + 2);    textState.x += Window_Base._iconWidth + 4;};remove the +2 (twice) on the second line, and the +4 on the next line.

Keep in mind that this might now require you to put a space between any text and icons if you don't want the text right against the icon.

Changing the above might also mess a little with how icons display in the menus.

If you'd like to be able to turn it off/on depending on whether you're showing text or not, you could modify it like this:

Window_Base.prototype.processDrawIcon = function(iconIndex, textState) {    iconPadding = $gameSwitches[15] ? 0 : 2;    this.drawIcon(iconIndex, textState.x + iconPadding, textState.y + iconPadding);    textState.x += Window_Base._iconWidth + iconPadding * 2;};Then turn the switch on prior to a Show Text where you have icons lined up, and off again afterwards.
 
Last edited by a moderator:

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

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top