with-heart / aoe2-ui

2 stars 0 forks source link

implement accurate texture image sizing #56

Closed with-heart closed 5 months ago

with-heart commented 5 months ago

This PR hopefully resolves the various issues with texture image sizing 🤞

image

It also moves the logic for rendering a texture to the new Texture component and useTexture hook.

One consequence of this change is that we're no longer defining defs for images up front. I don't know if that really matters though, not sure yet.