Icons now work way better and don't have the the 'Rayview cuts icons' bug. It actually was a bug in the lel-guecs Sprite class that was using the TextureRect from the source sprite. Now its initialized with the framesize from the .json. This also uses the new guecs::Icon, but I have to fix that as it doesn't scale correctly. Closes #2.
This commit is contained in:
parent
b311713064
commit
ff7111b006
22 changed files with 81 additions and 64 deletions
|
@ -42,7 +42,7 @@ TEST_CASE("animation utility API", "[animation]") {
|
|||
textures::init();
|
||||
animation::init();
|
||||
|
||||
auto blanket = textures::get("ritual_crafting_area");
|
||||
auto blanket = textures::get_sprite("ritual_crafting_area");
|
||||
auto anim = animation::load("ritual_blanket");
|
||||
|
||||
anim.play();
|
||||
|
|
|
@ -11,7 +11,7 @@ TEST_CASE("test texture management", "[textures]") {
|
|||
components::init();
|
||||
textures::init();
|
||||
|
||||
auto spider = textures::get("hairy_spider");
|
||||
auto spider = textures::get_sprite("hairy_spider");
|
||||
REQUIRE(spider.sprite != nullptr);
|
||||
REQUIRE(spider.texture != nullptr);
|
||||
REQUIRE(spider.frame_size.x == TEXTURE_WIDTH);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue