mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
panel: add total line to gold info panel
This commit is contained in:
Vendored
+1
@@ -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,
|
||||
|
||||
Vendored
+1
@@ -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,
|
||||
|
||||
Vendored
+1
@@ -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",
|
||||
|
||||
Vendored
+1
@@ -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,
|
||||
|
||||
Vendored
+1
@@ -712,6 +712,7 @@ pfUI_translation["koKR"] = {
|
||||
["Thick Outline"] = nil,
|
||||
["Thirdparty"] = "서드파티",
|
||||
["This Session"] = "이번 세션",
|
||||
["Total Gold"] = "총 금",
|
||||
["Threshold To Trust Health Estimation"] = nil,
|
||||
["Time"] = "시간",
|
||||
["Timer"] = nil,
|
||||
|
||||
Vendored
+1
@@ -713,6 +713,7 @@ pfUI_translation["ruRU"] = {
|
||||
["Thick Outline"] = "Толстый контурный", -- font style
|
||||
["Thirdparty"] = "Другие аддоны",
|
||||
["This Session"] = "Эта сессия",
|
||||
["Total Gold"] = "Всего золота",
|
||||
["Threshold To Trust Health Estimation"] = "Точность подсчетов здоровья",
|
||||
["Time"] = "Время",
|
||||
["Timer"] = "Таймер",
|
||||
|
||||
Vendored
+1
@@ -715,6 +715,7 @@ pfUI_translation["zhCN"] = {
|
||||
["Thick Outline"] = "粗轮廓",
|
||||
["Thirdparty"] = "第三方插件接口",
|
||||
["This Session"] = "本次登录收益",
|
||||
["Total Gold"] = "总黄金",
|
||||
["Threshold To Trust Health Estimation"] = "信任生命值预估的阈值",
|
||||
["Time"] = "时间",
|
||||
["Timer"] = "计时器",
|
||||
|
||||
Vendored
+1
@@ -713,6 +713,7 @@ pfUI_translation["zhTW"] = {
|
||||
["Thick Outline"] = nil,
|
||||
["Thirdparty"] = "協力廠商外掛程式介面",
|
||||
["This Session"] = "本次登錄收益",
|
||||
["Total Gold"] = "總金量",
|
||||
["Threshold To Trust Health Estimation"] = nil,
|
||||
["Time"] = "計時器",
|
||||
["Timer"] = nil,
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user