- Added run macro to disable arena team colors, use '/run Details.color_by_arena_team = false;' to disable it.

- Added the core version to show when using /details without parameters.
This commit is contained in:
Tercio
2018-03-16 13:04:05 -03:00
parent 7b9bd30884
commit a6cfb2a188
6 changed files with 18 additions and 11 deletions
+4 -1
View File
@@ -214,7 +214,10 @@ deaths = combat:GetDeaths()
@COMMENTreturns a numeric table containing the deaths, table is ordered by first death to last death.@
combatNumber = combat:GetCombatNumber()
@COMMENTreturns the unique ID number for the combat.@
@COMMENTreturns an ID for the combat, this number is unique among other combats.@
combatId = combat:GetCombatId()
@COMMENTreturns an ID for the combat, this number represents valid combat, it may have the same ID of a previous invalid combat.@
container = combat:GetContainer ( attribute )
@COMMENTreturns the container table for the requested attribute.@
+9 -6
View File
@@ -93,16 +93,14 @@ if formatString is nil, Format uses current format chosen on details options pan
Details:GetActorsOnDamageCache()
only usable while in combat, it returns a numeric table with all damage actors in the group (combatlog flag matching 0x00000007).
this table can be freely sorted.
the table is always sorted and only contains players in the raid or party.
Details:GetActorsOnHealingCache()
only usable while in combat, it returns a numeric table with all healing actors in the group (combatlog flag matching 0x00000007).
this table can be freely sorted.
the table is always sorted and only contains players in the raid or party.
*For out of combat, energy and misc containers or get all actors even pets, enemies etc, you may use Container:SortByKey(key) and Container:ListActors().
Getting a Combat Object:
=======================================
combat = Details:GetCurrentCombat()
@@ -119,7 +117,7 @@ returns the numeric table containing all past segments.
Gettings an Actor:
Getting an Actor:
=======================================
local actor = Details:GetActor (combat = "current", attribute = DETAILS_ATTRIBUTE_DAMAGE, actorname = Details.playername)
returns the actor for the requested combat, attribute and actor name.
@@ -172,7 +170,10 @@ deaths = combat:GetDeaths()
returns a numeric table containing the deaths, table is ordered by first death to last death.
combatNumber = combat:GetCombatNumber()
returns the unique ID number for the combat.
returns an ID for the combat, this number is unique among other combats.
combatId = combat:GetCombatId()
returns an ID for the combat, this number represents valid combat, it may have the same ID of a previous invalid combat.
container = combat:GetContainer ( attribute )
returns the container table for the requested attribute.
@@ -212,6 +213,8 @@ returns the combat identification (see segment types).
alternatePowerTable = combat:GetAlteranatePower()
returns a table containing information about alternate power gains from players.
--------------------------------------------------------------------
Other Calls:
+2 -2
View File
@@ -3,9 +3,9 @@
_ = nil
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
_detalhes.build_counter = 5424
_detalhes.build_counter = 5439
_detalhes.userversion = "v7.3.5." .. _detalhes.build_counter
_detalhes.realversion = 129 --core version
_detalhes.realversion = 130 --core version
_detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")"
Details = _detalhes
+1 -1
View File
@@ -311,7 +311,7 @@
elseif (actor.owner) then
return _unpack (_detalhes.class_colors [actor.owner.classe or "UNKNOW"])
elseif (actor.arena_team) then
elseif (actor.arena_team and _detalhes.color_by_arena_team) then
if (actor.arena_team == 0) then
return _unpack (_detalhes.class_colors.ARENA_GREEN)
else
+1
View File
@@ -904,6 +904,7 @@ local default_profile = {
--> PvP
only_pvp_frags = false,
color_by_arena_team = true,
--> window settings
max_window_size = {width = 480, height = 450},
+1 -1
View File
@@ -1513,7 +1513,7 @@ Damage Update Status: @INSTANCEDAMAGESTATUS
--end
print (" ")
print (Loc ["STRING_DETAILS1"] .. "(" .. _detalhes.userversion .. ") " .. Loc ["STRING_COMMAND_LIST"])
print (Loc ["STRING_DETAILS1"] .. "" .. _detalhes.userversion .. " [|cFFFFFF00CORE: " .. _detalhes.realversion .. "|r] " .. Loc ["STRING_COMMAND_LIST"] .. ":")
print ("|cffffaeae/details|r |cffffff33" .. Loc ["STRING_SLASH_NEW"] .. "|r: " .. Loc ["STRING_SLASH_NEW_DESC"])
print ("|cffffaeae/details|r |cffffff33" .. Loc ["STRING_SLASH_SHOW"] .. " " .. Loc ["STRING_SLASH_HIDE"] .. " " .. Loc ["STRING_SLASH_TOGGLE"] .. "|r|cfffcffb0 <" .. Loc ["STRING_WINDOW_NUMBER"] .. ">|r: " .. Loc ["STRING_SLASH_SHOWHIDETOGGLE_DESC"])