- Added Raid Tools bracket on Options Panel.
- Added Interrupt, cooldown usage and death announcers for raid tools. - New API: _detalhes:SendMsgToChannel (msg, channel, towho) seng a message to a chat channel. - New API: _detalhes:CreateEventListener() creates a table which accept Details Event Registration with RegisterEvent and receive events through OnDetailsEvent(). - New API: _detalhes:GetCooldownList (class) return a table with spellids of defensive cooldowns of the requested class. - New Hook: DETAILS_HOOK_INTERRUPT call when a interrupt happens during a combat. - Framework: Added CreateImage (parent, texture, w, h, layer, coords, member, name) - Framework: Added CreateSwitch (parent, on_switch, default_value, w, h, ltext, rtext, member, name, color_inverted, switch_func, return_func)
This commit is contained in:
+11
-1
@@ -16,6 +16,7 @@ local SharedMedia = LibStub:GetLibrary("LibSharedMedia-3.0")
|
||||
local cleanfunction = function() end
|
||||
local APISliderFunctions = false
|
||||
local SliderMetaFunctions = {}
|
||||
local NameLessSlider = 1
|
||||
|
||||
------------------------------------------------------------------------------------------------------------
|
||||
--> metatables
|
||||
@@ -807,11 +808,20 @@ local switch_enable = function (self)
|
||||
return _rawset (self, "lockdown", false)
|
||||
end
|
||||
|
||||
function gump:CreateSwitch (parent, on_switch, default_value, w, h, ltext, rtext, member, name, color_inverted, switch_func, return_func)
|
||||
local switch = gump:NewSwitch (parent, parent, name, member, w or 60, h or 20, ltext, rtext, default_value, color_inverted, switch_func, return_func)
|
||||
if (on_switch) then
|
||||
switch.OnSwitch = on_switch
|
||||
end
|
||||
return switch
|
||||
end
|
||||
|
||||
function gump:NewSwitch (parent, container, name, member, w, h, ltext, rtext, default_value, color_inverted, switch_func, return_func)
|
||||
|
||||
--> early checks
|
||||
if (not name) then
|
||||
return nil
|
||||
name = "DetailsFrameWorkSlider" .. NameLessSlider
|
||||
NameLessSlider = NameLessSlider + 1
|
||||
elseif (not parent) then
|
||||
return nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user