ID:1905816
 
How do you guys deal with different size icons?

I'm currently trying to make a stupidly long and unreasonable weapon, and I have the huge Icon, but I need to make another .dmi with just this Icon in it.

And after I make a new item and select the new file, the Icon is always off centered from the player.

Do you guys just make a bunch of .dmi files and slowly align the Icons to one another or is there a better way?

Thanks.

A couple options off the top of my head:
  1. Icon: change all your icons to be as big as your biggest overlay. This is of course easier if you started out doing it this way. It's probably the "slowly align the icons" method that you're referring to.
  2. Code: use pixel_x and pixel_y or transform to visually re-center the icon. I recommend this choice if you're not going to have a lot of weapons like this. I would even recommend this if you use option 1 because those variables are just, generally useful.
    // to center an icon with another icon
    overlay.pixel_x = (player_icon_width - overlay_icon_width) / 2
    overlay.pixel_y = (player_icon_height - overlay_icon_height) / 2
    // icon sizes are as shown in the DM icon editor

    You may instead choose to use literal numbers, and that's fine as long as you remember to change them if you end up changing the icon sizes.