- Finished another cosmetic revamp on options panel.

- Rewrite on Raid Plugins Support, now can open more then 1 plugins at once on diferent windows.
- Functions inside custom right text now receives the actor object as first parameter.
- Added a large text editor for make changes on custom texts.
- Added cosmetic menus for report and erase segments button.
- Added new option for add borders on the bars.
- Added Death Barrier as a absorb spell.
- Speed improvaments on bar animations.
- Fixed a bug on overheal tooltip where was showing the Hps instead of overheal.
- Fixed few issues when ignoring combats with 5 seconds or less.
- Fixed bug when reloging inside a raid or dungeon instance was erasing pet owner database.
- Fixed Data Broker text where was passing the total damage/healing instead of Dps/Hps.

- Fixed a issue with _detalhes:Hex(): where wasn't correctly formating number below 16.
- New Api: _detalhes:SetBarBackdropSettings (enabled, size, color, texture): set row border settings.
- New Api: _detalhes:GetInstanceAttributeText(): return the text to show on the title text.
- New Api: _detalhes.RaidTables:DisableRaidMode (instance): turn off the raid mode in the instance.
- New Api: _detalhes:RaidPluginInstalled (plugin_name): return is the plugin is installed.
- New Api: _detalhes.RaidTables:EnableRaidMode (instance, plugin_name): enable the raid mode on the instance.
- New Api: _detalhes.RaidTables:GetAvailablePlugins(): return all plugins which is installed, enabled and not in use.
- New Api: _detalhes.RaidTables:IsAvailable (plugin_name, instance): return if the plugin is available for use.
- New Api: _detalhes.RaidTables:SetInUse (absolute_name, instance_number): declare a plugin as in use by a instance.
- New Api: _detalhes.RaidTables:switch (_, plugin_name, instance): change the plugin shown on the instance.
This commit is contained in:
tercio
2014-05-23 20:58:57 -03:00
parent e2e13288c0
commit b74b58ada6
41 changed files with 2080 additions and 1524 deletions
+19 -11
View File
@@ -152,10 +152,8 @@ function _detalhes:LoadCombatTables()
--> if isn't nothing saved, build a new one
if (not _detalhes_database.tabela_historico) then
_detalhes.tabela_historico = _detalhes.historico:NovoHistorico()
_detalhes.tabela_pets = _detalhes.container_pets:NovoContainer()
_detalhes.tabela_overall = _detalhes.combate:NovaTabela()
_detalhes.tabela_vigente = _detalhes.combate:NovaTabela (_, _detalhes.tabela_overall)
else
--> build basic containers
@@ -164,7 +162,10 @@ function _detalhes:LoadCombatTables()
-- overall
_detalhes.tabela_overall = _detalhes.combate:NovaTabela()
-- pets
_detalhes.tabela_pets = _detalhes_database.tabela_pets or _detalhes.container_pets:NovoContainer()
_detalhes.tabela_pets = _detalhes.container_pets:NovoContainer()
if (_detalhes_database.tabela_pets) then
_detalhes.tabela_pets.pets = _detalhes_database.tabela_pets
end
--> if the core revision was incremented, reset all combat data
if (_detalhes_database.last_realversion and _detalhes_database.last_realversion < _detalhes.realversion) then
@@ -250,14 +251,21 @@ function _detalhes:LoadConfig()
end
end
if (_detalhes_database.RaidTablesSaved) then
if (_detalhes_database.RaidTablesSaved.Mode) then
_detalhes.RaidTables.Mode = _detalhes_database.RaidTablesSaved.Mode
_detalhes.RaidTables.LastSelected = _detalhes_database.RaidTablesSaved.LastSelected
else
_detalhes.RaidTables.Mode = 1
end
end
--if (_detalhes_database.RaidTablesSaved) then
--for id, instance in ipairs (_detalhes.tabela_instancias) do
-- if (instance.modo == _detalhes._detalhes_props["MODO_RAID"]) then
-- _detalhes:AlteraModo (instance, _detalhes._detalhes_props["MODO_GROUP"])
-- end
--end
--if (_detalhes_database.RaidTablesSaved.Mode) then
-- _detalhes.RaidTables.Mode = _detalhes_database.RaidTablesSaved.Mode
-- _detalhes.RaidTables.LastSelected = _detalhes_database.RaidTablesSaved.LastSelected
--else
-- _detalhes.RaidTables.Mode = 1
--end
--end
--> switch tables
_detalhes.switch.slots = _detalhes_database.switchSaved.slots
+15 -7
View File
@@ -435,6 +435,12 @@ function _detalhes:SaveConfig()
_detalhes_database.tabela_instancias = _detalhes.tabela_instancias
_detalhes_database.tabela_historico = _detalhes.tabela_historico
local name, ttype, difficulty, difficultyName, maxPlayers, playerDifficulty, isDynamicInstance, mapID, instanceGroupSize = GetInstanceInfo()
if (ttype == "party" or ttype == "raid") then
--> salvar container de pet
_detalhes_database.tabela_pets = _detalhes.tabela_pets.pets
end
_detalhes:TimeDataCleanUpTemporary()
--> buffs
@@ -462,13 +468,15 @@ function _detalhes:SaveConfig()
_detalhes_database.SoloTablesSaved.LastSelected = _detalhes.SoloTables.Plugins [_detalhes.SoloTables.Mode].real_name
end
end
if (_detalhes.RaidTables.Mode) then
_detalhes_database.RaidTablesSaved = {}
_detalhes_database.RaidTablesSaved.Mode = _detalhes.RaidTables.Mode
if (_detalhes.RaidTables.Plugins [_detalhes.RaidTables.Mode]) then
_detalhes_database.RaidTablesSaved.LastSelected = _detalhes.RaidTables.Plugins [_detalhes.RaidTables.Mode].real_name
end
end
--if (_detalhes.RaidTables.Mode) then
-- _detalhes_database.RaidTablesSaved = {}
-- _detalhes_database.RaidTablesSaved.Mode = _detalhes.RaidTables.Mode
-- if (_detalhes.RaidTables.Plugins [_detalhes.RaidTables.Mode]) then
-- _detalhes_database.RaidTablesSaved.LastSelected = _detalhes.RaidTables.Plugins [_detalhes.RaidTables.Mode].real_name
-- end
--end
_detalhes_database.RaidTablesSaved = nil
--> salva switch tables
_detalhes_database.switchSaved.slots = _detalhes.switch.slots
+10 -3
View File
@@ -260,6 +260,7 @@ function SlashCmdList.DETAILS (msg, editbox)
elseif (command == "owner") then
local petname = rest:match ("^(%S*)%s*(.-)$")
local petGUID = UnitGUID ("target")
if (not _G.DetailsScanTooltip) then
local scanTool = CreateFrame ("GameTooltip", "DetailsScanTooltip", nil, "GameTooltipTemplate")
@@ -271,15 +272,21 @@ function SlashCmdList.DETAILS (msg, editbox)
local scanText = _G ["DetailsScanTooltipTextLeft2"] -- This is the line with <[Player]'s Pet>
scanTool:ClearLines()
print (petName)
scanTool:SetUnit (petName)
local ownerText = scanText:GetText()
if not ownerText then return nil end
local owner, _ = string.split("'",ownerText)
if (not ownerText) then
return nil
end
local owner, _ = string.split ("'", ownerText)
return owner -- This is the pet's owner
end
print (getPetOwner (petname))
--print (getPetOwner (petname))
print (getPetOwner (petGUID))
elseif (command == "buffsof") then
+1
View File
@@ -906,6 +906,7 @@ do
[116888] = true, --Shroud of Purgatory (talent)
[51052] = true, --Anti-Magic Zone (talent)
[77535] = true, --Blood Shield
[115635] = true, --death barrier
--shaman
[114893] = true, --Stone Bulwark (stone bulwark totem)
+12 -2
View File
@@ -229,10 +229,20 @@
function _detalhes:BrokerTick()
local texttype = _detalhes.minimap.text_type
if (texttype == 1) then --dps
_detalhes.databroker.text = _detalhes.tabela_vigente.totals_grupo[1]
local time = _detalhes.tabela_vigente:GetCombatTime()
if (not time or time == 0) then
_detalhes.databroker.text = 0
else
_detalhes.databroker.text = _detalhes.tabela_vigente.totals_grupo[1] / time
end
elseif (texttype == 2) then --hps
_detalhes.databroker.text = _detalhes.tabela_vigente.totals_grupo[2]
local time = _detalhes.tabela_vigente:GetCombatTime()
if (not time or time == 0) then
_detalhes.databroker.text = 0
else
_detalhes.databroker.text = _detalhes.tabela_vigente.totals_grupo[2] / time
end
else
if (_detalhes.minimap.text_func) then