diff --git a/API.md b/API.md index f151400..d025fd1 100644 --- a/API.md +++ b/API.md @@ -16,6 +16,8 @@ ### Tabs +![Screenshot of the inventory with the below example tab in focus.](res/api-tabs.png) + #### `i4.new_tab(name, def)` - `name` is the tab name. @@ -26,8 +28,8 @@ Custom tabs can be added to the `i4` inventory as follow (example): ```Lua i4.new_tab("stuff", { description = "Stuff", - image = "image.png", -- Optional, add an image next to the tab description - slots = true -- Optional, whether the inventory slots are shown or not. Disabled by default. + image = "speech_icon.png", -- Optional, add an image next to the tab description + slots = true, -- Optional, whether the inventory slots are shown or not. Disabled by default. -- -- The functions below are all optional @@ -90,6 +92,7 @@ A list of registered tabs. --- ### Footer buttons +![Screenshot of the inventory with the below example footer-button.](res/api-footer_button.png) `i4.new_footer_button(name, def)` diff --git a/res/api-footer_button.png b/res/api-footer_button.png new file mode 100644 index 0000000..884b77b Binary files /dev/null and b/res/api-footer_button.png differ diff --git a/res/api-tabs.png b/res/api-tabs.png new file mode 100644 index 0000000..11ed318 Binary files /dev/null and b/res/api-tabs.png differ