diff --git a/api/config.lua b/api/config.lua index 2d7c3198..a153700b 100644 --- a/api/config.lua +++ b/api/config.lua @@ -557,6 +557,7 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("chat", "text", "input_width", "0") pfUI:UpdateConfig("chat", "text", "input_height", "0") pfUI:UpdateConfig("chat", "text", "outline", "1") + pfUI:UpdateConfig("chat", "text", "mouseover", "0") pfUI:UpdateConfig("chat", "text", "bracket", "[]") pfUI:UpdateConfig("chat", "text", "time", "0") pfUI:UpdateConfig("chat", "text", "timeformat", "%H:%M:%S") diff --git a/env/translations_deDE.lua b/env/translations_deDE.lua index d04e079c..cedf3f6c 100644 --- a/env/translations_deDE.lua +++ b/env/translations_deDE.lua @@ -375,6 +375,7 @@ pfUI_translation["deDE"] = { ["Show Hots as Buff Indicators"] = nil, ["Show Hots of all Classes"] = nil, ["Show Inactive Tracking"] = nil, + ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = nil, ["Show Meters By Default"] = nil, ["Show Players Only"] = nil, diff --git a/env/translations_enUS.lua b/env/translations_enUS.lua index 44890f70..4b29184c 100644 --- a/env/translations_enUS.lua +++ b/env/translations_enUS.lua @@ -375,6 +375,7 @@ pfUI_translation["enUS"] = { ["Show Hots as Buff Indicators"] = nil, ["Show Hots of all Classes"] = nil, ["Show Inactive Tracking"] = nil, + ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = nil, ["Show Meters By Default"] = nil, ["Show Players Only"] = nil, diff --git a/env/translations_esES.lua b/env/translations_esES.lua index ee6c7b54..99c92585 100644 --- a/env/translations_esES.lua +++ b/env/translations_esES.lua @@ -375,6 +375,7 @@ pfUI_translation["esES"] = { ["Show Hots as Buff Indicators"] = "Mostrar Curación Periódica (HoTs) como Indicador de Buffs", ["Show Hots of all Classes"] = "Mostrar Curación Periódica (HoTs) de Todas las Clases", ["Show Inactive Tracking"] = "Mostrar Rastreo Inactivo", + ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = "Mostrar Texto de Macro", ["Show Meters By Default"] = nil, ["Show Players Only"] = "Solamente Mostrar Jugadores", diff --git a/env/translations_frFR.lua b/env/translations_frFR.lua index 8d73af97..0f8efb15 100644 --- a/env/translations_frFR.lua +++ b/env/translations_frFR.lua @@ -375,6 +375,7 @@ pfUI_translation["frFR"] = { ["Show Hots as Buff Indicators"] = "Afficher les soins sur la durée en tant qu'indicateur d'amélioration", ["Show Hots of all Classes"] = "Afficher les soins sur la durée de chaque classe", ["Show Inactive Tracking"] = nil, + ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = "Afficher le texte des macros", ["Show Meters By Default"] = nil, ["Show Players Only"] = "Afficher les joueurs uniquement", diff --git a/env/translations_koKR.lua b/env/translations_koKR.lua index cc6a7baf..b06c7ff9 100644 --- a/env/translations_koKR.lua +++ b/env/translations_koKR.lua @@ -375,6 +375,7 @@ pfUI_translation["koKR"] = { ["Show Hots as Buff Indicators"] = "핫버프 표시기 보기", ["Show Hots of all Classes"] = "모든 클래스 핫버프 보기", ["Show Inactive Tracking"] = nil, + ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = "매크로 텍스트 표시", ["Show Meters By Default"] = nil, ["Show Players Only"] = "플레이어만 보기", diff --git a/env/translations_ruRU.lua b/env/translations_ruRU.lua index f7b83eb9..07419432 100644 --- a/env/translations_ruRU.lua +++ b/env/translations_ruRU.lua @@ -375,6 +375,7 @@ pfUI_translation["ruRU"] = { ["Show Hots as Buff Indicators"] = "Показать лечение со временем (HoT) как индикаторы баффов", ["Show Hots of all Classes"] = "Показать лечение со временем (HoT) всех классов", ["Show Inactive Tracking"] = "Показать неактивное отслеживание", + ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = "Показать текст макросов", ["Show Meters By Default"] = "Показать счетчики по умолчанию", ["Show Players Only"] = "Показать только игроков", diff --git a/env/translations_zhCN.lua b/env/translations_zhCN.lua index ec9cfa99..26669c12 100644 --- a/env/translations_zhCN.lua +++ b/env/translations_zhCN.lua @@ -375,6 +375,7 @@ pfUI_translation["zhCN"] = { ["Show Hots as Buff Indicators"] = "在框架的Buff指示器显示Hot", ["Show Hots of all Classes"] = "显示所有职业的Hot", ["Show Inactive Tracking"] = "显示已激活的追踪图标", + ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = "显示宏的名字", ["Show Meters By Default"] = nil, ["Show Players Only"] = "仅显示自己", diff --git a/env/translations_zhTW.lua b/env/translations_zhTW.lua index c192de26..374627f0 100644 --- a/env/translations_zhTW.lua +++ b/env/translations_zhTW.lua @@ -375,6 +375,7 @@ pfUI_translation["zhTW"] = { ["Show Hots as Buff Indicators"] = "在框架的Buff指示器顯示Hot", ["Show Hots of all Classes"] = "顯示所有職業的Hot", ["Show Inactive Tracking"] = nil, + ["Show Items On Mouseover"] = nil, ["Show Macro Text"] = "顯示巨集的名字", ["Show Meters By Default"] = nil, ["Show Players Only"] = "僅顯示自己", diff --git a/modules/chat.lua b/modules/chat.lua index 6c721cbb..7648d97e 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -736,6 +736,24 @@ pfUI:RegisterModule("chat", function () end ChatFrameEditBox:SetAltArrowKeyMode(false) + if C.chat.text.mouseover == "1" then + for i=1, NUM_CHAT_WINDOWS do + local frame = _G["ChatFrame" .. i] + frame:SetScript("OnHyperlinkEnter", function() + local _, _, linktype = string.find(arg1, "^(.-):(.+)$") + if linktype == "item" then + GameTooltip:SetOwner(this, "ANCHOR_CURSOR") + GameTooltip:SetHyperlink(arg1) + GameTooltip:Show() + end + end) + + frame:SetScript("OnHyperlinkLeave", function() + GameTooltip:Hide() + end) + end + end + -- read and parse whisper color settings local cr, cg, cb, ca = strsplit(",", C.chat.global.whisper) cr, cg, cb = tonumber(cr), tonumber(cg), tonumber(cb) diff --git a/modules/gui.lua b/modules/gui.lua index 62947c66..c56fcaac 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -1129,6 +1129,7 @@ pfUI:RegisterModule("gui", function () CreateConfig(nil, this, T["Inputbox Width"], C.chat.text, "input_width") CreateConfig(nil, this, T["Inputbox Height"], C.chat.text, "input_height") CreateConfig(nil, this, T["Enable Text Shadow"], C.chat.text, "outline", "checkbox") + CreateConfig(nil, this, T["Show Items On Mouseover"], C.chat.text, "mouseover", "checkbox") CreateConfig(nil, this, T["Chat Default Brackets"], C.chat.text, "bracket", nil, nil, nil, nil, "STRING") CreateConfig(nil, this, T["Enable Timestamps"], C.chat.text, "time", "checkbox") CreateConfig(nil, this, T["Timestamp Format"], C.chat.text, "timeformat", nil, nil, nil, nil, "STRING")