ImageButton

Updated for version 3.36.

It's recommended to first read about the base item before reading about other items https://luffyyy.gitbook.io/beardlib/menuui/menuui-item

ImageButton/Image

Creation

    MyRandomMenu:ImageButton({
        name = "MyImageButton",
        texture = "path/to/my/texture",
        on_callback = function(item)
            log("I was pressed!")
        end
    })

Or if you need a divider type image:

    MyRandomMenu:Image({
        name = "MyImageButton",
        texture = "path/to/my/texture"
    })

Parameters

Functions

Last updated