- Added debuff uptime at misc attribute.

- Added API: instance:InstanceMsg (text, _, textcolor, icontexture, iconcoords).
- Added API: container:ActorCallFunction (func, args) run func for all actors.
- Added member .diff on combat.is_boss table, represent the dificult of raid.
- Disabled captures on Attribute menu now have darkness effect.
- Fixed some tainted which were triggered when dragging a windows.

- Started of major code cleanup.
This commit is contained in:
Tercio
2013-11-05 18:47:19 -02:00
parent f002a7546f
commit 627ab9b91c
20 changed files with 1507 additions and 903 deletions
+9 -4
View File
@@ -90,7 +90,7 @@
if (serial) then
local ZoneName, _, _, _, _, _, _, ZoneMapID = _GetInstanceInfo()
local ZoneName, _, DifficultyID, _, _, _, _, ZoneMapID = _GetInstanceInfo()
local BossIds = _detalhes:GetBossIds (ZoneMapID)
if (BossIds) then
@@ -148,7 +148,8 @@
name = _detalhes:GetBossName (ZoneMapID, BossIndex),
zone = ZoneName,
mapid = ZoneMapID,
encounter = _detalhes:GetBossName (ZoneMapID, BossIndex)
encounter = _detalhes:GetBossName (ZoneMapID, BossIndex),
diff = DifficultyID
}
_detalhes:SendEvent ("COMBAT_BOSS_FOUND", nil, _detalhes.tabela_vigente.is_boss.index, _detalhes.tabela_vigente.is_boss.name)
return _detalhes.tabela_vigente.is_boss
@@ -163,7 +164,7 @@
--try to get the encounter name after the encounter (can be called during the combat as well)
function _detalhes:FindBoss()
local ZoneName, _, _, _, _, _, _, ZoneMapID = _GetInstanceInfo()
local ZoneName, _, DifficultyID, _, _, _, _, ZoneMapID = _GetInstanceInfo()
local BossIds = _detalhes:GetBossIds (ZoneMapID)
if (BossIds) then
@@ -184,7 +185,9 @@
name =_detalhes:GetBossName (ZoneMapID, BossIndex),
zone = ZoneName,
mapid = ZoneMapID,
encounter = _detalhes:GetBossName (ZoneMapID, BossIndex)}
encounter = _detalhes:GetBossName (ZoneMapID, BossIndex),
diff = DifficultyID
}
end
end
end
@@ -277,6 +280,7 @@
end
_detalhes:CatchRaidBuffUptime ("BUFF_UPTIME_IN")
_detalhes:CatchRaidDebuffUptime ("DEBUFF_UPTIME_IN")
_detalhes:UptadeRaidMembersCache()
_detalhes:HaveOneCurrentInstance()
@@ -291,6 +295,7 @@
end
_detalhes:CatchRaidBuffUptime ("BUFF_UPTIME_OUT")
_detalhes:CatchRaidDebuffUptime ("DEBUFF_UPTIME_OUT")
--> pega a zona do jogador e vê se foi uma luta contra um Boss -- identifica se a luta foi com um boss
if (not _detalhes.tabela_vigente.is_boss) then