chat: add option to show items on mouseover

This commit is contained in:
shagu
2018-04-22 15:07:22 +02:00
parent cd5f33439f
commit f1f411302b
11 changed files with 28 additions and 0 deletions
+1
View File
@@ -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")
+1
View File
@@ -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,
+1
View File
@@ -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,
+1
View File
@@ -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",
+1
View File
@@ -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",
+1
View File
@@ -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"] = "플레이어만 보기",
+1
View File
@@ -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"] = "Показать только игроков",
+1
View File
@@ -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"] = "仅显示自己",
+1
View File
@@ -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"] = "僅顯示自己",
+18
View File
@@ -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)
+1
View File
@@ -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")