panel: add total line to gold info panel

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