- some fixes for last_events_table, shadow object no more have last_events.
- implemented cache for group mode. - class constructor now create new object at once, avoiding table rehashs. - fixed dps issue with cloud capture. - added a pet cache for parser. - minor parser speed up on parser removing metatables index call. - implemented new pet sync were at the end of combat, details will ask for unknow owners. - few new wallpapers. - new API: _detalhes:InstanceAlert (msg, icon, time, clickfunc). -
This commit is contained in:
@@ -139,7 +139,7 @@ local ButtonMetaFunctions = {}
|
||||
end
|
||||
--> function
|
||||
local smember_function = function (_object, _value)
|
||||
return _rawset (_object, "func", _value)
|
||||
return _rawset (_object, "func", _value)
|
||||
end
|
||||
--> text color
|
||||
local smember_textcolor = function (_object, _value)
|
||||
|
||||
@@ -410,6 +410,8 @@ function DetailsDropDownOnMouseDown (button)
|
||||
if (not object.opened) then --> click to open
|
||||
|
||||
local menu = object:func()
|
||||
object.builtMenu = menu
|
||||
|
||||
local frame_witdh = object.realsizeW
|
||||
|
||||
if (menu [1]) then
|
||||
@@ -698,6 +700,8 @@ function gump:NewDropDown (parent, container, name, member, w, h, func, default)
|
||||
|
||||
DropDownObject.dropdown = CreateFrame ("Button", name, parent, "DetailsDropDownTemplate")
|
||||
DropDownObject.widget = DropDownObject.dropdown
|
||||
|
||||
DropDownObject.__it = {nil, nil}
|
||||
--_G [name] = DropDownObject
|
||||
|
||||
if (not APIDropDownFunctions) then
|
||||
@@ -747,6 +751,8 @@ function gump:NewDropDown (parent, container, name, member, w, h, func, default)
|
||||
scroll.slider:Show()
|
||||
end
|
||||
|
||||
--button_down_scripts (DropDownObject, scroll.slider, scroll.baixo)
|
||||
|
||||
DropDownObject:HideScroll()
|
||||
DropDownObject.label:SetSize (DropDownObject.dropdown:GetWidth()-40, 10)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user