Formspec: add item image button

This commit is contained in:
Van
2026-01-07 14:26:01 +03:00
parent 37ad60d348
commit 876b24e1fe

View File

@@ -393,9 +393,18 @@ function Formspec:imageButton()
end end
---TODO ---@param x number
function Formspec:itemImageButton() ---@param y number
---@param w number
---@param h number
---@param itemName string
---@param name string
---@param label string?
function Formspec:itemImageButton(x, y, w, h, itemName, name, label)
local element = ('item_image_button[%s,%s;%s,%s;%s;%s;%s]'):format(
x, y, w, h, itemName, name, label or '')
self:addElement(element)
end end
---TODO ---TODO