OpenXcom Forum
Modding => Help => Topic started by: Keth01 on April 19, 2018, 11:16:25 am
-
Hi there,
A weapon bigsprite I've modded in is displaying off-centre in the inventory slot for the hand and the selection window on the main battlescape view, but oddly if you move it down to the ground in inventory it aligns with the grid just fine.
As the image is, ah, borrowed from FMP I'm pretty confident the image itself is not to blame, and all the other causes for the problem I can think of would affect all display locations equally.
But I thought I'd step past my own ignorance and ask if anyone has encountered this issue before?
-
sometime you got the image dimension wrong causing the offcenter on the grid ex:
invWidth: 1
invHeight: 1
on an
invWidth: 2
invHeight: 3
image
-
That was it :) Copy-paste issue from another item I was using as a base for the code. Thank you!