PitBull Unit Frames 4.0

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)


You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Jan 16, 2009
Last updated
Sep 16, 2013

Author