api/LDB
LDBIndex:AddClickFunction(clickType, ID, func)
Add a click function
Parameters
- clickType
- Button + modifier combination. Left, LeftShift, LeftAlt, LeftCtrl, Right, RightShift...
- ID
- Identification of this function, used to remove it later.
- func
- Function to call
Usage
obj:AddClickFunction("LeftShift", "MyLeftShiftFunc", function() --[[ Do stuff when shift + left button is pressed ]] end)
LDBIndex:AddClickHelpLine(ID, line, clickType)
Add a special tooltip line to explain click events
Parameters
- ID
- Identification of the lin
- line
- clickType
- Button + modifier combination. Left, LeftShift, LeftAlt, LeftCtrl, Right, RightShift...
Usage
obj:AddClickHelpLine("LeftClikcHelp", "Open config", "Left")
LDBIndex:AddTooltipLine(ID, line)
Add a line to the tooltip
Parameters
- ID
- Identification of the line
- line
- Text show on the line.
Usage
obj:AddTooltipLine("Line1", "Welcome")
LDBIndex:RemoveClickFunction(clickType, ID)
Remove a click function
Parameters
- clickType
- Button + modifier combination. Left, LeftShift, LeftAlt, LeftCtrl, Right, RightShift...
- ID
- Identification of the function to remove, same as supplied when adding it.
Usage
obj:RemoveClickFunction("LeftShift", "MyLeftShiftFunc")
LDBIndex:RemoveClickHelpLine(ID)
Remove a tootip click help line
Parameters
- ID
- Identification of the line to remove.
Usage
obj:RemoveClickHelpLine("LeftClikcHelp")
LDBIndex:RemoveTooltipLine(ID)
Remove a line from the tooltip
Parameters
- ID
- Identification of the line to remove.
Usage
obj:RemoveTooltipLine("Line1")
LDBIndex:SetIcon(icon)
Set the icon of the LDB object
Parameters
- icon
- Icon to set
Usage
obj:SetIcon("Interface\\ICONS\\INV_Misc_EngGizmos_01")
LDBIndex:SetLabel(label)
Set the label part of the LDB object
Parameters
- label
- The label
Usage
obj:SetLabel("Active")
LDBIndex:SetSuffix(suffix)
Set the sufix part of the LDB object
Parameters
- suffix
- The suffix
Usage
obj:SetSuffix("str")
LDBIndex:SetText(text)
Set the text part of the LDB object
Parameters
- text
- The text
Usage
obj:SetText("My Addon")
LDBIndex:SetValue(value)
Set the value part of the LDB object
Parameters
- value
- The value
Usage
obj:SetValue(546)
Comments