- Fixed bookmark for segments (shift+right click).

- Fixed an issue with Chat Tab Embed when embeding only one window.
This commit is contained in:
Tercio
2015-11-14 17:54:51 -02:00
parent 3ca239e03f
commit 83e9749c3f
5 changed files with 24 additions and 7 deletions
+3
View File
@@ -215,6 +215,9 @@ damage, healing, energy, misc = Details:GetAllActors (combat, actorname)
returns all the four actor objects for the requested combat and actor.
combat must be a combat object.
Details:UnpackDeathTable (deathTable)
break a death table returning the data from it:
playername, playerclass, deathtime, deathcombattime, deathtimestring, playermaxhealth, deathevents, lastcooldown = Details:UnpackDeathTable (deathTable)
Container Object:
+6 -5
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -170,7 +170,7 @@ end
window1:SaveMainWindowPosition()
local window2 = _detalhes:GetInstance (2)
if (window2) then
if (window2 and window2.baseframe) then
if (window2.baseframe:GetParent() == ChatFrame) then
--> need to detach
_detalhes.chat_embed:ReleaseEmbed (true)
+13
View File
@@ -63,6 +63,19 @@
end
end
end
function _detalhes:UnpackDeathTable (t)
local deathevents = t[1]
local deathtime = t[2]
local playername = t[3]
local playerclass = t[4]
local playermaxhealth = t[5]
local deathtimestring = t[6]
local lastcooldown = t.last_cooldown
local deathcombattime = t.dead_at
return playername, playerclass, deathtime, deathcombattime, deathtimestring, playermaxhealth, deathevents, lastcooldown
end
--> get the fractional number representing the alphabetical letter
function _detalhes:GetOrderNumber (who_name)
+1 -1
View File
@@ -579,7 +579,7 @@ function _detalhes.switch:ShowMe (instancia)
if (not _detalhes.switch.segments_blocks) then
local segment_switch = function (segment, _, _, button)
local segment_switch = function (self, button, segment)
if (button == "LeftButton") then
_detalhes.switch.current_instancia:TrocaTabela (segment)
_detalhes.switch.CloseMe()