panel: add total line to gold info panel

This commit is contained in:
bhhandley
2024-10-06 03:03:24 -05:00
committed by GitHub
parent d503aee6b1
commit d466fdd2db
9 changed files with 11 additions and 0 deletions
+1
View File
@@ -713,6 +713,7 @@ pfUI_translation["deDE"] = {
["Thick Outline"] = nil,
["Thirdparty"] = nil,
["This Session"] = nil,
["Total Gold"] = nil,
["Threshold To Trust Health Estimation"] = nil,
["Time"] = nil,
["Timer"] = nil,
+1
View File
@@ -713,6 +713,7 @@ pfUI_translation["enUS"] = {
["Thick Outline"] = nil,
["Thirdparty"] = nil,
["This Session"] = nil,
["Total Gold"] = nil,
["Threshold To Trust Health Estimation"] = nil,
["Time"] = nil,
["Timer"] = nil,
+1
View File
@@ -713,6 +713,7 @@ pfUI_translation["esES"] = {
["Thick Outline"] = "Contorno grueso",
["Thirdparty"] = "Terceros",
["This Session"] = "Esta sesión",
["Total Gold"] = "Oro Total",
["Threshold To Trust Health Estimation"] = "Umbral para confiar en la estimación de salud",
["Time"] = "Tiempo",
["Timer"] = "Temporizador",
+1
View File
@@ -713,6 +713,7 @@ pfUI_translation["frFR"] = {
["Thick Outline"] = "Contour épais",
["Thirdparty"] = "Autres addons",
["This Session"] = "Session Actuelle",
["Total Gold"] = "Or Total",
["Threshold To Trust Health Estimation"] = "Seuil de confiance pour l'estimation de la santé",
["Time"] = "Heure",
["Timer"] = nil,
+1
View File
@@ -712,6 +712,7 @@ pfUI_translation["koKR"] = {
["Thick Outline"] = nil,
["Thirdparty"] = "서드파티",
["This Session"] = "이번 세션",
["Total Gold"] = "총 금",
["Threshold To Trust Health Estimation"] = nil,
["Time"] = "시간",
["Timer"] = nil,
+1
View File
@@ -713,6 +713,7 @@ pfUI_translation["ruRU"] = {
["Thick Outline"] = "Толстый контурный", -- font style
["Thirdparty"] = "Другие аддоны",
["This Session"] = "Эта сессия",
["Total Gold"] = "Всего золота",
["Threshold To Trust Health Estimation"] = "Точность подсчетов здоровья",
["Time"] = "Время",
["Timer"] = "Таймер",
+1
View File
@@ -715,6 +715,7 @@ pfUI_translation["zhCN"] = {
["Thick Outline"] = "粗轮廓",
["Thirdparty"] = "第三方插件接口",
["This Session"] = "本次登录收益",
["Total Gold"] = "总黄金",
["Threshold To Trust Health Estimation"] = "信任生命值预估的阈值",
["Time"] = "时间",
["Timer"] = "计时器",
+1
View File
@@ -713,6 +713,7 @@ pfUI_translation["zhTW"] = {
["Thick Outline"] = nil,
["Thirdparty"] = "協力廠商外掛程式介面",
["This Session"] = "本次登錄收益",
["Total Gold"] = "總金量",
["Threshold To Trust Health Estimation"] = nil,
["Time"] = "計時器",
["Timer"] = nil,
+3
View File
@@ -277,13 +277,16 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function()
GameTooltip:AddDoubleLine(T["Login"] .. ":", CreateGoldString(pfUI.panel.initMoney))
GameTooltip:AddDoubleLine(T["Now"] .. ":", CreateGoldString(GetMoney()))
GameTooltip:AddDoubleLine("|cffffffff","")
local totalgold = 0
for name, gold in pairs(pfUI_cache["gold"][GetRealmName()]) do
totalgold = totalgold + gold
if name ~= UnitName("player") then
GameTooltip:AddDoubleLine(name .. ":", CreateGoldString(gold))
end
end
GameTooltip:AddDoubleLine("|cffffffff","")
GameTooltip:AddDoubleLine(T["This Session"] .. ":", dmod .. CreateGoldString(math.abs(pfUI.panel.diffMoney)))
GameTooltip:AddDoubleLine(T["Total Gold"] .. ":", CreateGoldString(totalgold))
GameTooltip:Show()
end
widget:SetScript("OnEvent", function()