PlayerInventoryUI:Adding background textures to the crafting menu. #34

This commit is contained in:
Van
2026-03-28 18:14:01 +03:00
parent 9ed2319b14
commit d05af7dacc
5 changed files with 26 additions and 16 deletions

View File

@@ -726,7 +726,7 @@ end
---@param textureName string Is the filename of an image.
---@param name string
---@param label string?
---@param pressedTextureName string Is the filename of an image on pressed state.
---@param pressedTextureName string? Is the filename of an image on pressed state.
---@param noclip boolean? Means the image button doesn't need to be within specified formsize. Default: `true`
---@param drawborder boolean? Draw button border or not. Default `false`
---@return Formspec
@@ -738,7 +738,7 @@ function Formspec:imageButton(x, y, w, h, textureName, name, label, pressedTextu
x, y, w, h, textureName, name, label or '')
else
element = ('image_button[%s,%s;%s,%s;%s;%s;%s;%s;%s;%s]'):format(
x, y, w, h, textureName, name, label or '', pressedTextureName, noclip or true, drawborder or false)
x, y, w, h, textureName, name, label or '', noclip or true, drawborder or false, pressedTextureName)
end
self:addElement(element)