updates
This commit is contained in:
@@ -0,0 +1,157 @@
|
||||
--[[ Attributes: Damage, Heal, Energy, Miscellaneous ]]
|
||||
|
||||
do
|
||||
local _detalhes = _G._detalhes
|
||||
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
|
||||
|
||||
--> Globals
|
||||
DETAILS_ATTRIBUTE_DAMAGE = 1
|
||||
DETAILS_ATTRIBUTE_HEAL = 2
|
||||
DETAILS_ATTRIBUTE_ENERGY = 3
|
||||
DETAILS_ATTRIBUTE_MISC = 4
|
||||
|
||||
--> Main Attributes
|
||||
_detalhes.atributos = {
|
||||
|
||||
--> Attributes amount = 4: damage / heal / energy / misc
|
||||
[0] = 4,
|
||||
|
||||
--[[ DAMAGE ]]
|
||||
dano = 1, --> identifier
|
||||
[1] = 4, --> sub attributes
|
||||
|
||||
--[[ HEALING ]]
|
||||
cura = 2, --> identifier
|
||||
[2] = 4, --> sub attributes
|
||||
|
||||
--[[ ENERGY ]]
|
||||
e_energy = 3,--> identifier
|
||||
[3] = 4, --> sub attributes
|
||||
|
||||
--[[ MISC ]]
|
||||
misc = 4, --> identifier
|
||||
[4] = 5, --> sub attributes
|
||||
|
||||
--[[ CUSTOM ]]
|
||||
custom = 5,
|
||||
[5] = false,
|
||||
|
||||
--[[ String Names ]]
|
||||
lista = {
|
||||
Loc ["STRING_ATTRIBUTE_DAMAGE"],--> Damage
|
||||
Loc ["STRING_ATTRIBUTE_HEAL"], --> Healing
|
||||
Loc ["STRING_ATTRIBUTE_ENERGY"], --> Energy
|
||||
Loc ["STRING_ATTRIBUTE_MISC"], --> Misc
|
||||
Loc ["STRING_ATTRIBUTE_CUSTOM"] --> Custom
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
--> Sub Attributes
|
||||
_detalhes.sub_atributos = {
|
||||
{
|
||||
--> Damage sub classes information
|
||||
damage_done = 1,
|
||||
dps = 2,
|
||||
damage_taken = 3,
|
||||
friendly_fire = 4,
|
||||
lista = { --[[ String Names ]]
|
||||
Loc ["STRING_ATTRIBUTE_DAMAGE_DONE"],
|
||||
Loc ["STRING_ATTRIBUTE_DAMAGE_DPS"],
|
||||
Loc ["STRING_ATTRIBUTE_DAMAGE_TAKEN"],
|
||||
Loc ["STRING_ATTRIBUTE_DAMAGE_FRIENDLYFIRE"]
|
||||
},
|
||||
icones = {
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_damage", {0, .125, 0, 1}},
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_damage", {.125, .25, 0, 1}},
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_damage", {.25, .375, 0, 1}},
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_damage", {.375, .5, 0, 1}}
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
--> Healing sub classes information
|
||||
healing_done = 1,
|
||||
hps = 2,
|
||||
overheal = 3,
|
||||
healing_tanken = 4,
|
||||
lista = { --[[ String Names ]]
|
||||
Loc ["STRING_ATTRIBUTE_HEAL_DONE"],
|
||||
Loc ["STRING_ATTRIBUTE_HEAL_HPS"],
|
||||
Loc ["STRING_ATTRIBUTE_HEAL_OVERHEAL"],
|
||||
Loc ["STRING_ATTRIBUTE_HEAL_TAKEN"]
|
||||
},
|
||||
|
||||
icones = {
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_heal", {0, .125, 0, 1}},
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_heal", {.125, .25, 0, 1}},
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_heal", {.25, .375, 0, 1}},
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_heal", {.375, .5, 0, 1}}
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
--> Energy sub classes information
|
||||
mana_ganha = 1, -- id 0
|
||||
rage_ganha = 2, -- id 1
|
||||
energy_ganha = 3, --id 3
|
||||
rune_ganha = 4, --id 6
|
||||
lista = { --[[ String Names ]]
|
||||
Loc ["STRING_ATTRIBUTE_ENERGY_MANA"],
|
||||
Loc ["STRING_ATTRIBUTE_ENERGY_RAGE"],
|
||||
Loc ["STRING_ATTRIBUTE_ENERGY_ENERGY"],
|
||||
Loc ["STRING_ATTRIBUTE_ENERGY_RUNEPOWER"]
|
||||
},
|
||||
icones = {
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_energyze", {0, .125, 0, 1}},
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_energyze", {.125, .25, 0, 1}},
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_energyze", {.25, .375, 0, 1}},
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_energyze", {.375, .5, 0, 1}}
|
||||
},
|
||||
internal = {"mana", "e_rage", "e_energy", "runepower"}
|
||||
},
|
||||
|
||||
{
|
||||
--> Misc sub classes information
|
||||
cc_break = 1,
|
||||
ress = 2,
|
||||
kick = 3,
|
||||
dispell = 4,
|
||||
deaths = 5,
|
||||
lista = { --[[ String Names ]]
|
||||
Loc ["STRING_ATTRIBUTE_MISC_CCBREAK"],
|
||||
Loc ["STRING_ATTRIBUTE_MISC_RESS"],
|
||||
Loc ["STRING_ATTRIBUTE_MISC_INTERRUPT"],
|
||||
Loc ["STRING_ATTRIBUTE_MISC_DISPELL"],
|
||||
Loc ["STRING_ATTRIBUTE_MISC_DEAD"],
|
||||
},
|
||||
icones = {
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_misc", {0, .125, 0, 1}},
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_misc", {.125, .25, 0, 1}},
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_misc", {.25, .375, 0, 1}},
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_misc", {.375, .5, 0, 1}},
|
||||
{"Interface\\AddOns\\Details\\images\\atributos_icones_misc", {.5, .625, 0, 1}}
|
||||
},
|
||||
internal = {"cc_break", "ress", "interrupt", "dispell", "dead"}
|
||||
}
|
||||
}
|
||||
|
||||
function _detalhes:GetAttributeName (attribute)
|
||||
return _detalhes.atributos.lista [attribute]
|
||||
end
|
||||
|
||||
function _detalhes:GetSubAttributeName (attribute, subAttribute)
|
||||
if (attribute == 5) then
|
||||
local CustomObject = _detalhes.custom [subAttribute]
|
||||
return CustomObject.name
|
||||
end
|
||||
return _detalhes.sub_atributos [attribute].lista [subAttribute]
|
||||
end
|
||||
|
||||
function _detalhes:GetInternalSubAttributeName (attribute, subAttribute)
|
||||
if (attribute == 3 or attribute == 4) then
|
||||
return _detalhes.sub_atributos [attribute].internal [subAttribute]
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user