- Major tooltip redesign now using cooltip.
- Details now support !Nicktag - Fixed a bug were instances with same attribute were not updating. - Schedule internal garbage collect if in encounter combat. - More functions and better communication for Cloud Capture. - New API _detalhes:FindGUIDFromName (name) - Added new options for limit number of instances which can be opened. - New options for custom nickname and avatar.
This commit is contained in:
+23
-8
@@ -113,7 +113,7 @@
|
||||
|
||||
--> scale
|
||||
function _detalhes:Scale (rangeMin, rangeMax, scaleMin, scaleMax, x)
|
||||
return 1 + (x-rangeMin)*(scaleMax-scaleMin)/(rangeMax-rangeMin)
|
||||
return 1 + (x - rangeMin) * (scaleMax - scaleMin) / (rangeMax - rangeMin)
|
||||
end
|
||||
|
||||
--> font size
|
||||
@@ -189,19 +189,34 @@
|
||||
LastDps = 0
|
||||
_detalhes:SairDoCombate()
|
||||
end
|
||||
|
||||
function _detalhes:FindGUIDFromName (name)
|
||||
if (_IsInRaid()) then
|
||||
for i = 1, _GetNumGroupMembers(), 1 do
|
||||
local this_name, _ = UnitName ("raid"..i)
|
||||
if (this_name == name) then
|
||||
return UnitGUID ("raid"..i)
|
||||
end
|
||||
end
|
||||
elseif (_IsInGroup()) then
|
||||
for i = 1, _GetNumGroupMembers()-1, 1 do
|
||||
local this_name, _ = UnitName ("party"..i)
|
||||
if (this_name == name) then
|
||||
return UnitGUID ("party"..i)
|
||||
end
|
||||
end
|
||||
end
|
||||
if (UnitName ("player") == name) then
|
||||
return UnitGUID ("player")
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
--> Armazena uma label recém criada - Store a new label on the pool
|
||||
function _detalhes.font_pool:add (_fontstring)
|
||||
self [#self+1] = _fontstring
|
||||
end
|
||||
|
||||
function gump:UpdateTooltip (qual_barra, esta_barra, instancia)
|
||||
_GameTooltip:Hide()
|
||||
_GameTooltip:SetOwner (esta_barra, "ANCHOR_TOPRIGHT")
|
||||
instancia:MontaTooltip (qual_barra)
|
||||
_GameTooltip:Show()
|
||||
end
|
||||
|
||||
local function frame_task (self, elapsed)
|
||||
|
||||
self.FrameTime = self.FrameTime + elapsed
|
||||
|
||||
Reference in New Issue
Block a user