OpenXcom Forum

Modding => Help => Topic started by: Keth01 on April 19, 2018, 11:16:25 am

Title: Minor Sprite Issue
Post 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?
Title: Re: Minor Sprite Issue
Post by: bulletdesigner on April 19, 2018, 11:59:20 am
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
Title: Re: Minor Sprite Issue
Post by: Keth01 on April 20, 2018, 04:27:31 am

That was it :) Copy-paste issue from another item I was using as a base for the code. Thank you!