Skip to content

Commit

Permalink
panel: add total line to gold info panel
Browse files Browse the repository at this point in the history
  • Loading branch information
bhhandley authored Oct 6, 2024
1 parent d503aee commit d466fdd
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions env/translations_deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions env/translations_enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions env/translations_esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions env/translations_frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions env/translations_koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ pfUI_translation["koKR"] = {
["Thick Outline"] = nil,
["Thirdparty"] = "서드파티",
["This Session"] = "이번 세션",
["Total Gold"] = "총 금",
["Threshold To Trust Health Estimation"] = nil,
["Time"] = "시간",
["Timer"] = nil,
Expand Down
1 change: 1 addition & 0 deletions env/translations_ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ pfUI_translation["ruRU"] = {
["Thick Outline"] = "Толстый контурный", -- font style
["Thirdparty"] = "Другие аддоны",
["This Session"] = "Эта сессия",
["Total Gold"] = "Всего золота",
["Threshold To Trust Health Estimation"] = "Точность подсчетов здоровья",
["Time"] = "Время",
["Timer"] = "Таймер",
Expand Down
1 change: 1 addition & 0 deletions env/translations_zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ pfUI_translation["zhCN"] = {
["Thick Outline"] = "粗轮廓",
["Thirdparty"] = "第三方插件接口",
["This Session"] = "本次登录收益",
["Total Gold"] = "总黄金",
["Threshold To Trust Health Estimation"] = "信任生命值预估的阈值",
["Time"] = "时间",
["Timer"] = "计时器",
Expand Down
1 change: 1 addition & 0 deletions env/translations_zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ pfUI_translation["zhTW"] = {
["Thick Outline"] = nil,
["Thirdparty"] = "協力廠商外掛程式介面",
["This Session"] = "本次登錄收益",
["Total Gold"] = "總金量",
["Threshold To Trust Health Estimation"] = nil,
["Time"] = "計時器",
["Timer"] = nil,
Expand Down
3 changes: 3 additions & 0 deletions modules/panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d466fdd

Please sign in to comment.