- Added option to sent spell link instead of spell name for helpful spells when reporting a death.

This commit is contained in:
tercio
2014-08-01 16:08:29 -03:00
parent e61fe4ee01
commit 7c915efb63
7 changed files with 44 additions and 15 deletions
+3 -3
View File
File diff suppressed because one or more lines are too long
+6 -2
View File
@@ -272,7 +272,7 @@ end
--[1] true damage/ false heal [2] spellid [3] amount [4] time [5] current health [6] source
function atributo_misc:ReportSingleDeadLine (morte, instancia)
--
local barra = instancia.barras [morte.minha_barra]
local max_health = morte [5]
@@ -323,7 +323,11 @@ function atributo_misc:ReportSingleDeadLine (morte, instancia)
hp = 100
end
tinsert (report_array, {elapsed .. " ", spellname, " (" .. source .. ")", "+" .. _detalhes:ToK (amount) .. " (" .. hp .. "%) "})
if (_detalhes.report_heal_links) then
tinsert (report_array, {elapsed .. " ", spelllink, " (" .. source .. ")", "+" .. _detalhes:ToK (amount) .. " (" .. hp .. "%) "})
else
tinsert (report_array, {elapsed .. " ", spellname, " (" .. source .. ")", "+" .. _detalhes:ToK (amount) .. " (" .. hp .. "%) "})
end
end
end
+1
View File
@@ -556,6 +556,7 @@ local default_profile = {
--> report
report_lines = 5,
report_to_who = "",
report_heal_links = false,
--> colors
default_bg_color = 0.0941,
+21 -9
View File
@@ -1966,12 +1966,25 @@ function window:CreateFrame18()
--local confirm_button = g:NewButton (frame18, nil, "$parentDeleteInstanceButton", "deleteInstanceButton", 60, 20, delete_instance, nil, nil, nil, "delete")
--confirm_button:InstallCustomTexture()
--> Report
g:NewLabel (frame18, _, "$parentReportHelpfulLinkLabel", "ReportHelpfulLinkLabel", Loc ["STRING_OPTIONS_REPORT_HEALLINKS"], "GameFontHighlightLeft")
g:NewSwitch (frame18, _, "$parentReportHelpfulLinkSlider", "ReportHelpfulLinkSlider", 60, 20, _, _, _detalhes.report_heal_links)
frame18.ReportHelpfulLinkSlider:SetPoint ("left", frame18.ReportHelpfulLinkLabel, "right", 2)
frame18.ReportHelpfulLinkSlider.OnSwitch = function (_, _, value)
_detalhes.report_heal_links = value
end
window:CreateLineBackground2 (frame18, "ReportHelpfulLinkSlider", "ReportHelpfulLinkLabel", Loc ["STRING_OPTIONS_REPORT_HEALLINKS_DESC"])
--> Anchors
g:NewLabel (frame18, _, "$parentInstancesMiscAnchor", "instancesMiscLabel", Loc ["STRING_OPTIONS_INSTANCES"], "GameFontNormal")
g:NewLabel (frame18, _, "$parentSwitchesAnchor", "switchesAnchorLabel", "Switches:", "GameFontNormal")
g:NewLabel (frame18, _, "$parentTotalBarAnchor", "totalBarAnchorLabel", "Total Bar:", "GameFontNormal")
g:NewLabel (frame18, _, "$parentSwitchesAnchor", "switchesAnchorLabel", Loc ["STRING_OPTIONS_SWITCH_ANCHOR"], "GameFontNormal")
g:NewLabel (frame18, _, "$parentTotalBarAnchor", "totalBarAnchorLabel", Loc ["STRING_OPTIONS_TOTALBAR_ANCHOR"], "GameFontNormal")
g:NewLabel (frame18, _, "$parentReportAnchor", "reportAnchorLabel", Loc ["STRING_OPTIONS_REPORT_ANCHOR"], "GameFontNormal")
--frame18.totalBarPickColorLabel:SetPoint ("left", frame18.totalBarIconTexture, "right", 10, 0)
@@ -1992,12 +2005,8 @@ function window:CreateFrame18()
{tank_icon2, 7},
{"autoCurrentLabel", 10},
--{"totalBarAnchorLabel", 11, true},
--{"totalBarIconLabel", 12},
--{"totalBarPickColorLabel", 13},
--{"totalBarLabel", 14},
--{"totalBarOnlyInGroupLabel", 15},
{"reportAnchorLabel", 11, true},
{"ReportHelpfulLinkLabel", 12},
}
window:arrange_menu (frame18, left_side, x, -90)
@@ -7501,8 +7510,11 @@ function window:update_all (editing_instance)
_G.DetailsOptionsWindow17MenuOnEnterLeaveAlphaIconsTooSwitch.MyObject:SetValue (editing_instance.menu_alpha.ignorebars)
--> window 18
--auto switch
--report
_G.DetailsOptionsWindow18ReportHelpfulLinkSlider.MyObject:SetValue (_detalhes.report_heal_links)
--auto switch
local switch_tank_in_combat = editing_instance.switch_tank_in_combat
if (switch_tank_in_combat) then
if (switch_tank_in_combat [1] == "raid") then
+1 -1
View File
@@ -355,7 +355,7 @@ local lista = {
else
if (IsInRaid()) then
select_output:Select ("RAID")
elseif (IsInParty()) then
elseif (GetNumSubgroupMembers() > 0) then
select_output:Select ("PARTY")
elseif (IsInGuild()) then
select_output:Select ("GUILD")
+5
View File
@@ -1160,6 +1160,11 @@ if not Loc then return end
Loc ["STRING_OPTIONS_AUTO_SWITCH_HEALER_DESC"] = "When in healer specialization, this window show the selected attribute or plugin."
Loc ["STRING_OPTIONS_AUTO_SWITCH_TANK_DESC"] = "When in tank specialization, this window show the selected attribute or plugin."
Loc ["STRING_OPTIONS_SWITCH_ANCHOR"] = "Switches:"
Loc ["STRING_OPTIONS_TOTALBAR_ANCHOR"] = "Total Bar:"
Loc ["STRING_OPTIONS_REPORT_ANCHOR"] = "Report:"
Loc ["STRING_OPTIONS_REPORT_HEALLINKS"] = "Helpful Spell Links"
Loc ["STRING_OPTIONS_REPORT_HEALLINKS_DESC"] = "When sending a report and this option is enabled, |cFF55FF55helpful|r spells are reported with the spell link instead of its name.\n\n|cFFFF5555Harmful|r spells are reported with links by default."
Loc ["STRING_OPTIONS_TOOLBAR_SETTINGS"] = "Left Menu Settings"
Loc ["STRING_OPTIONS_TOOLBAR_SETTINGS_DESC"] = "This options change the main menu on the top of the window."
+7
View File
@@ -765,6 +765,10 @@ L["STRING_OPTIONS_REALMNAME_DESC"] = "Quando ativado, o nome do reino do que o p
\
Charles-Azralon |cFFFFFFFF(desativado)|r\
Charles |cFFFFFFFF(ativado)|r" -- Needs review
L["STRING_OPTIONS_REPORT_ANCHOR"] = "Janela de Reportar:" -- Needs review
L["STRING_OPTIONS_REPORT_HEALLINKS"] = "Links de Magias de Cura" -- Needs review
L["STRING_OPTIONS_REPORT_HEALLINKS_DESC"] = "Quando estiver enviando um relat\195\179rio de morte, as magias de cura ter\195\163o um link ao inv\195\169s do seu nome.\
|cFFFF5555Magias de dano|r j\195\161 possuem o link por padr\195\163o." -- Needs review
L["STRING_OPTIONS_RESET_BUTTON_ANCHOR"] = "Bot\195\163o Reset:"
L["STRING_OPTIONS_RESET_OVERLAY"] = "Sobrepor cor"
L["STRING_OPTIONS_RESET_OVERLAY_DESC"] = "Modifica a cor do bot\195\163o reset." -- Needs review
@@ -881,6 +885,7 @@ L["STRING_OPTIONS_STRETCHTOP"] = "Bot\195\163o de esticar sempre vis\195\173vel"
L["STRING_OPTIONS_STRETCHTOP_DESC"] = "O bot\195\163o de esticar ser\195\161 posto mais alto do que as outras janelas e estar\195\161 sempre vis\195\173vel ao passar o mouse sobre ele.\
\
|cFFFFFF00Importante|r: Movendo a al\195\167a para cima, far\195\161 com que ela as vezes fica em cima de outras janelas como sua mochila entre outros." -- Needs review
L["STRING_OPTIONS_SWITCH_ANCHOR"] = "Troca de Atributos:" -- Needs review
L["STRING_OPTIONS_SWITCHINFO"] = "|cFFF79F81 ESQUERDA DESATIVADO|r |cFF81BEF7 DIREITA ATIVADO|r"
L["STRING_OPTIONS_TESTBARS"] = "Criar Barras de Teste" -- Needs review
L["STRING_OPTIONS_TEXT"] = "Op\195\167\195\181es dos Textos das Barras" -- Needs review
@@ -999,6 +1004,7 @@ L["STRING_OPTIONS_TOOLTIPS_SHOWAMT"] = "Mostrar quantidade"
L["STRING_OPTIONS_TOOLTIPS_SHOWAMT_DESC"] = "Exibe um n\195\186mero indicando quantas abilidades, alvos e pets existem no tooptip." -- Needs review
L["STRING_OPTIONS_TOOLTIPS_TITLE"] = "Tooltips"
L["STRING_OPTIONS_TOOLTIPS_TITLE_DESC"] = "Essa op\195\167\195\163o controla a apar\195\170ncia dos tooltips."
L["STRING_OPTIONS_TOTALBAR_ANCHOR"] = "Barra de Total:" -- Needs review
L["STRING_OPTIONS_WALLPAPER_ALPHA"] = "Transpar\195\170ncia:" -- Needs review
L["STRING_OPTIONS_WALLPAPER_ANCHOR"] = "Sele\195\167\195\163o de papel de parede:"
L["STRING_OPTIONS_WALLPAPER_BLUE"] = "Azul:" -- Needs review
@@ -1224,3 +1230,4 @@ plugins"
L["STRING_YES"] = "Sim"