diff --git a/README.md b/README.md index 21a622d..94b216e 100644 --- a/README.md +++ b/README.md @@ -74,3 +74,4 @@ License: [LGPL-3](https://github.com/bell07/minetest-smart_inventory/blob/master Textures: - Workbench: WTFPL (credits: to xdecor project) - Buttons: WTFPL (credits to Stix (Minetest-forum)) + - Arrow buttons: WTFPL (credits to daretmavi) diff --git a/libs/smartfs-elements.lua b/libs/smartfs-elements.lua index 73453e8..3b8ddce 100644 --- a/libs/smartfs-elements.lua +++ b/libs/smartfs-elements.lua @@ -228,14 +228,14 @@ function buttons_grid:update() if btnid == 1 and self.data.list_start > 1 then -- setup back button button:setVisible(true) - button:setImage("left_arrow.png") + button:setImage("smart_inventory_left_arrow.png") button:setText(tostring(self.data.list_start-1)) button:setSize(self.data.cell_size.w, self.data.cell_size.h) self.data.pagesize = self.data.pagesize - 1 elseif btnid == self.data.grid_size.w * self.data.grid_size.h and self.data.list[itemindex+1] then -- setup next button button:setVisible(true) - button:setImage("right_arrow.png") + button:setImage("smart_inventory_right_arrow.png") self.data.pagesize = self.data.pagesize - 1 button:setText(tostring(#self.data.list-self.data.list_start-self.data.pagesize+1)) button:setSize(self.data.cell_size.w, self.data.cell_size.h) diff --git a/textures/smart_inventory_left_arrow.png b/textures/smart_inventory_left_arrow.png new file mode 100644 index 0000000..4953ac5 Binary files /dev/null and b/textures/smart_inventory_left_arrow.png differ diff --git a/textures/smart_inventory_right_arrow.png b/textures/smart_inventory_right_arrow.png new file mode 100644 index 0000000..0b76e29 Binary files /dev/null and b/textures/smart_inventory_right_arrow.png differ