Wow, hats off for you for such speed
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: texus on 31 August 2019, 20:01:38
Sorry for the later reply, I somehow missed your post.
The setTexture takes a tgui::Texture as parameter which already has the ability to load only a part of an image. Assuming myTilesetTexture is an sf::Texture, you can just do the following:btn->getRenderer()->setTexture({myTilesetTexture, {16, 0, 16, 16}});