api/options/Colors

Module:SetColorOptionsFunction(func)

Set the function to be called that will return a tuple of key-value pairs that will cause an options table show in the colors section.
The last return must be a function that resets all colors.

Parameters

func
function to call

Usage

MyModule:SetColorOptionsFunction(function(self)
    return 'someOption', { name = "Some option", }, -- etc
    function(info)
        -- reset all colors
    end
end)



Comments

Posts Quoted:
Reply
Clear All Quotes