From 5a3a962c90e83b1a9fd3a77bf533cd1571484086 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Sat, 8 Aug 2026 16:16:33 -0500 Subject: [PATCH] Remove dead unitframes showtooltip setting The mouseover-scripts migration dropped the unit frame OnEnter/OnLeave handlers that read C.unitframes[unit].showtooltip, so nothing consulted the setting anymore. The engine mouseover (driven by the frame's unit attribute) now shows the native tooltip unconditionally, so the option could not gate it even if a reader remained. Drop the config default, the "Enable Mouseover Tooltip" GUI checkbox, and the now-orphaned locale string from all translation files. --- api/config.lua | 1 - env/translations_deDE.lua | 1 - env/translations_enUS.lua | 1 - env/translations_esES.lua | 1 - env/translations_frFR.lua | 1 - env/translations_koKR.lua | 1 - env/translations_ruRU.lua | 1 - env/translations_zhCN.lua | 1 - env/translations_zhTW.lua | 1 - modules/gui.lua | 1 - 10 files changed, 10 deletions(-) diff --git a/api/config.lua b/api/config.lua index 58a7b65b..f8b1b5b1 100644 --- a/api/config.lua +++ b/api/config.lua @@ -554,7 +554,6 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("unitframes", unit, "glowaggro", "1") pfUI:UpdateConfig("unitframes", unit, "glowcombat", "1") - pfUI:UpdateConfig("unitframes", unit, "showtooltip", "1") pfUI:UpdateConfig("unitframes", unit, "healthcolor", "1") pfUI:UpdateConfig("unitframes", unit, "powercolor", "1") pfUI:UpdateConfig("unitframes", unit, "levelcolor", "1") diff --git a/env/translations_deDE.lua b/env/translations_deDE.lua index 4a64b8e6..c5db6bd1 100644 --- a/env/translations_deDE.lua +++ b/env/translations_deDE.lua @@ -290,7 +290,6 @@ pfUI_translation["deDE"] = { ["Enable Mana Ticks"] = nil, ["Enable Micro Bar"] = nil, ["Enable Mouselook With Right Click"] = nil, - ["Enable Mouseover Tooltip"] = nil, ["Enable Movable Bags"] = nil, ["Enable Offscreen Frame Positions"] = nil, ["Enable Overlap"] = nil, diff --git a/env/translations_enUS.lua b/env/translations_enUS.lua index b0997dce..7a8a7def 100644 --- a/env/translations_enUS.lua +++ b/env/translations_enUS.lua @@ -293,7 +293,6 @@ pfUI_translation["enUS"] = { ["Enable Mana Ticks"] = nil, ["Enable Micro Bar"] = nil, ["Enable Mouselook With Right Click"] = nil, - ["Enable Mouseover Tooltip"] = nil, ["Enable Movable Bags"] = nil, ["Enable Offscreen Frame Positions"] = nil, ["Enable Overlap"] = nil, diff --git a/env/translations_esES.lua b/env/translations_esES.lua index d91dc05d..f76e1b93 100644 --- a/env/translations_esES.lua +++ b/env/translations_esES.lua @@ -290,7 +290,6 @@ pfUI_translation["esES"] = { ["Enable Mana Ticks"] = "Activar el indicador de pulsos del maná", ["Enable Micro Bar"] = "Activar microbarra", ["Enable Mouselook With Right Click"] = "Mirar usando el puntero con clic derecho", - ["Enable Mouseover Tooltip"] = "Activar la descripción emergente al pasar el puntero", ["Enable Movable Bags"] = "Permitir mover las bolsas", ["Enable Offscreen Frame Positions"] = "Permitir mover los marcos fuera de la pantalla", ["Enable Overlap"] = "Permitir superposición", diff --git a/env/translations_frFR.lua b/env/translations_frFR.lua index 111eb323..f87ad848 100644 --- a/env/translations_frFR.lua +++ b/env/translations_frFR.lua @@ -290,7 +290,6 @@ pfUI_translation["frFR"] = { ["Enable Mana Ticks"] = "Activer les Ticks de mana", ["Enable Micro Bar"] = "Activer la barre des menus miniature", ["Enable Mouselook With Right Click"] = "Activer le déplacement de la caméra avec le clic droit", - ["Enable Mouseover Tooltip"] = "Activer l'infobulle au passage de la souris", ["Enable Movable Bags"] = "Activer les sacs mobiles", ["Enable Offscreen Frame Positions"] = "Activer le positionnement des cadres en dehors de l'écran", ["Enable Overlap"] = "Activer la superposition", diff --git a/env/translations_koKR.lua b/env/translations_koKR.lua index a55f76e5..bf8e9b89 100644 --- a/env/translations_koKR.lua +++ b/env/translations_koKR.lua @@ -290,7 +290,6 @@ pfUI_translation["koKR"] = { ["Enable Mana Ticks"] = nil, ["Enable Micro Bar"] = "미니바 보기(블리자드 마이크로바)", ["Enable Mouselook With Right Click"] = "오른쪽 클릭 Mouselook 사용", - ["Enable Mouseover Tooltip"] = nil, ["Enable Movable Bags"] = nil, ["Enable Offscreen Frame Positions"] = "오프스크린 프레임 위치 활성화", ["Enable Overlap"] = "겹쳐서 표시", diff --git a/env/translations_ruRU.lua b/env/translations_ruRU.lua index bbf03514..e8496153 100644 --- a/env/translations_ruRU.lua +++ b/env/translations_ruRU.lua @@ -290,7 +290,6 @@ pfUI_translation["ruRU"] = { ["Enable Mana Ticks"] = "Включить восполнение маны", ["Enable Micro Bar"] = "Включить панель микро меню", ["Enable Mouselook With Right Click"] = "Включить нажатие правой кнопки мыши на индикаторе здоровья", - ["Enable Mouseover Tooltip"] = "Включить подсказку при наведении мыши", ["Enable Movable Bags"] = "Включить подвижные сумки", ["Enable Offscreen Frame Positions"] = "Включить расположение окон за пределами экрана", ["Enable Overlap"] = "Включить перекрытие", diff --git a/env/translations_zhCN.lua b/env/translations_zhCN.lua index 00888532..d78c2f09 100644 --- a/env/translations_zhCN.lua +++ b/env/translations_zhCN.lua @@ -290,7 +290,6 @@ pfUI_translation["zhCN"] = { ["Enable Mana Ticks"] = "显示法力值刻度", ["Enable Micro Bar"] = "显示菜单栏", ["Enable Mouselook With Right Click"] = "启动右键移动镜头", - ["Enable Mouseover Tooltip"] = "启用鼠标悬停工具提示", ["Enable Movable Bags"] = "启用可移动包裹", ["Enable Offscreen Frame Positions"] = "允许本插件所有框体移出屏幕边缘", ["Enable Overlap"] = "叠加显示", diff --git a/env/translations_zhTW.lua b/env/translations_zhTW.lua index e8bfc955..f0eb90b0 100644 --- a/env/translations_zhTW.lua +++ b/env/translations_zhTW.lua @@ -290,7 +290,6 @@ pfUI_translation["zhTW"] = { ["Enable Mana Ticks"] = nil, ["Enable Micro Bar"] = "顯示功能表列", ["Enable Mouselook With Right Click"] = "啟動右鍵移動鏡頭", - ["Enable Mouseover Tooltip"] = "啟用滑鼠懸停工具提示", ["Enable Movable Bags"] = "啟用可移動包裹", ["Enable Offscreen Frame Positions"] = "啟用螢幕框架固定", ["Enable Overlap"] = "疊加顯示", diff --git a/modules/gui.lua b/modules/gui.lua index dd02a599..09066f42 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -2240,7 +2240,6 @@ pfUI:RegisterModule("gui", function () -- build config entries CreateConfig(U[c], T["Display Frame"] .. ": " .. t, C.unitframes[c], "visible", "checkbox") - CreateConfig(U[c], T["Enable Mouseover Tooltip"], C.unitframes[c], "showtooltip", "checkbox") CreateConfig(U[c], T["Default Transparency"], C.unitframes[c], "alpha_visible", "dropdown", pfUI.gui.dropdowns.percent_small) CreateConfig(U[c], T["Out Of Range Transparency"], C.unitframes[c], "alpha_outrange", "dropdown", pfUI.gui.dropdowns.percent_small) CreateConfig(U[c], T["Offline Transparency"], C.unitframes[c], "alpha_offline", "dropdown", pfUI.gui.dropdowns.percent_small)