diff --git a/rpg_components/resources/addon_snippet.xml b/rpg_components/resources/addon_snippet.xml index 56146ac..407a655 100644 --- a/rpg_components/resources/addon_snippet.xml +++ b/rpg_components/resources/addon_snippet.xml @@ -1,4 +1,4 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/rpg_components/resources/item_socket_snippet.xml b/rpg_components/resources/item_socket_snippet.xml index c69d1ee..5f881d3 100644 --- a/rpg_components/resources/item_socket_snippet.xml +++ b/rpg_components/resources/item_socket_snippet.xml @@ -1,7 +1,7 @@ - + - + \ No newline at end of file diff --git a/rpg_components/resources/items/slots_0.xml b/rpg_components/resources/items/slots_0.xml index 7d39d1a..0793066 100644 --- a/rpg_components/resources/items/slots_0.xml +++ b/rpg_components/resources/items/slots_0.xml @@ -1,4 +1,4 @@ - + + + + + + + + + diff --git a/rpg_components/src/items/item.rs b/rpg_components/src/items/item.rs index 5a49a11..46760f6 100644 --- a/rpg_components/src/items/item.rs +++ b/rpg_components/src/items/item.rs @@ -306,7 +306,15 @@ impl Item { socket_icon.set_icon(&jewel.icon())?; stat_type.set_text(format!("{}", jewel.stat))?; } - None => stat_type.set_text("Empty Socket")?, + None => { + socket_icon.set_icon( + &Image::from_slice(include_bytes!("../../resources/circle.png"))? + .attach_sampler(Sampler::pretty_sampler().build(gui_handler.device())?) + .build(gui_handler.device(), gui_handler.queue())?, + )?; + + stat_type.set_text("Empty Socket")? + } } inspector_grid.attach(socket_snippet, 0, index, 1, 1)?;