Skip to content

Commit

Permalink
Fixed lua error and nostalkgeek special syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tdymel committed Mar 19, 2017
1 parent 25c271e commit 45f480c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DPSMate/DPSMate.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- Global Variables
DPSMate = {}
DPSMate.VERSION = 105
DPSMate.VERSION = 106
DPSMate.LOCALE = GetLocale()
DPSMate.SYNCVERSION = DPSMate.VERSION..DPSMate.LOCALE
DPSMate.Parser = CreateFrame("Frame", nil, UIParent)
Expand Down
2 changes: 2 additions & 0 deletions DPSMate_!frFR/DPSMate_ParserFRFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1246,4 +1246,6 @@ if (GetLocale() == "frFR") then
return
end
end
local gsub = string.gsub
DPSMate.Parser:SetScript("OnEvent", function() this[event](gsub(arg1, "DE", "de")) end)
end
12 changes: 10 additions & 2 deletions DPSMate_Deaths/DPSMate_Details_DeathsTotal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,16 @@ function DPSMate.Modules.DetailsDeathsTotal:UpdateRow(row, a, b, c, d, e, f, g,
else
_G("DPSMate_Details_Deaths_Total_LogDetails_Row"..row.."_CombatTime"):SetText("")
end
_G("DPSMate_Details_Deaths_Total_LogDetails_Row"..row.."_Victim"):SetText("|cFF"..hexClassColor[DPSMateUser[c][2] or "warrior"]..c.."|r")
_G("DPSMate_Details_Deaths_Total_LogDetails_Row"..row.."_Cause"):SetText("|cFF"..hexClassColor[DPSMateUser[h][2] or "warrior"]..h.."|r")
if c=="" then
_G("DPSMate_Details_Deaths_Total_LogDetails_Row"..row.."_Victim"):SetText("|cFF"..hexClassColor["warrior"]..c.."|r")
else
_G("DPSMate_Details_Deaths_Total_LogDetails_Row"..row.."_Victim"):SetText("|cFF"..hexClassColor[DPSMateUser[c][2] or "warrior"]..c.."|r")
end
if h=="" then
_G("DPSMate_Details_Deaths_Total_LogDetails_Row"..row.."_Cause"):SetText("|cFF"..hexClassColor["warrior"]..h.."|r")
else
_G("DPSMate_Details_Deaths_Total_LogDetails_Row"..row.."_Cause"):SetText("|cFF"..hexClassColor[DPSMateUser[h][2] or "warrior"]..h.."|r")
end
_G("DPSMate_Details_Deaths_Total_LogDetails_Row"..row.."_Over"):SetText(strformat("%.2f", d).."s")
_G("DPSMate_Details_Deaths_Total_LogDetails_Row"..row.."_Ability"):SetText(e)
_G("DPSMate_Details_Deaths_Total_LogDetails_Row"..row.."_HealIn"):SetText("+"..f)
Expand Down

0 comments on commit 45f480c

Please sign in to comment.