diff --git a/README.md b/README.md index 0a8cd2f..073e676 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ grid-plan ships with: - config options to customize the looks of your blueprint - slots to customize icons related to component types +- slots to create your available components menu and your inventory ## Installation @@ -174,12 +175,29 @@ function unselected() { @unselect="unselected" @selectType="selectType" > - + + + + + @@ -232,4 +244,13 @@ header { flex-wrap: wrap; } } + + + \ No newline at end of file diff --git a/src/components/GridPlan.vue b/src/components/GridPlan.vue index c856bd6..47e6ec1 100644 --- a/src/components/GridPlan.vue +++ b/src/components/GridPlan.vue @@ -130,6 +130,17 @@ function getItems() { return items.value; } +function focusItem(item) { + if(entity.value.id === item.id) { + entity.value = {} + step.value += 1; + } else { + entity.value = {} + step.value += 1; + entity.value = item + } +} + defineExpose({ getItems }) @@ -154,6 +165,17 @@ defineExpose({ + +
+ + {{ finalConfig.inventoryTitle }} + +
+
+ +
+
+