diff --git a/assets/config.json b/assets/config.json index b4ff6c5..15fa3dc 100644 --- a/assets/config.json +++ b/assets/config.json @@ -80,6 +80,11 @@ "frame_width": 256, "frame_height": 256 }, + "torch_horizontal_floor_ICON": + {"path": "assets/icons/torch_crappy_ICON.png", + "frame_width": 128, + "frame_height": 128 + }, "peasant_girl": {"path": "assets/sprites/peasant_girl_2.png", "frame_width": 256, @@ -95,6 +100,11 @@ "frame_width": 256, "frame_height": 256 }, + "healing_potion_small_ICON": + {"path": "assets/icons/healing_potion_small_ICON.png", + "frame_width": 128, + "frame_height": 128 + }, "well_down": {"path": "assets/sprites/well_down.png", "frame_width": 256, diff --git a/assets/icons/healing_potion_small_ICON.png b/assets/icons/healing_potion_small_ICON.png new file mode 100644 index 0000000..bc790e4 Binary files /dev/null and b/assets/icons/healing_potion_small_ICON.png differ diff --git a/assets/icons/torch_crappy_ICON.png b/assets/icons/torch_crappy_ICON.png new file mode 100644 index 0000000..ccc6480 Binary files /dev/null and b/assets/icons/torch_crappy_ICON.png differ diff --git a/gui/loot_ui.cpp b/gui/loot_ui.cpp index 9a751d1..370a0d1 100644 --- a/gui/loot_ui.cpp +++ b/gui/loot_ui.cpp @@ -75,7 +75,7 @@ namespace gui { dbc::check($level.world->has(item), "item in inventory UI doesn't exist in world. New level?"); auto& sprite = $level.world->get(item); - $gui.set_init(id, {sprite.name}); + $gui.set_init(id, {fmt::format("{}_ICON", sprite.name)}); guecs::GrabSource grabber{ item, [&, id]() { return remove_slot(id); }}; diff --git a/gui/status_ui.cpp b/gui/status_ui.cpp index f10b210..14862f5 100644 --- a/gui/status_ui.cpp +++ b/gui/status_ui.cpp @@ -80,7 +80,7 @@ namespace gui { auto gui_id = $gui.entity(slot); auto& sprite = $level.world->get(world_entity); - $gui.set_init(gui_id, {sprite.name}); + $gui.set_init(gui_id, {fmt::format("{}_ICON", sprite.name)}); guecs::GrabSource grabber{ world_entity, [&, gui_id]() { return remove_slot(gui_id); }}; grabber.setSprite($gui, gui_id);