diff --git a/api/config.lua b/api/config.lua index 7dd2114cf..2730aaed5 100644 --- a/api/config.lua +++ b/api/config.lua @@ -551,6 +551,7 @@ function pfUI:LoadConfig() end pfUI:UpdateConfig("bars", nil, "keydown", "0") + pfUI:UpdateConfig("bars", nil, "mousedown", "0") pfUI:UpdateConfig("bars", nil, "altself", "0") pfUI:UpdateConfig("bars", nil, "rightself", "0") pfUI:UpdateConfig("bars", nil, "animation", "zoomfade") diff --git a/env/translations_deDE.lua b/env/translations_deDE.lua index 4df027d2c..b7c779898 100644 --- a/env/translations_deDE.lua +++ b/env/translations_deDE.lua @@ -813,6 +813,7 @@ pfUI_translation["deDE"] = { ["Tracked Reputation"] = nil, ["Tracking Icon Size"] = nil, ["Trigger Actions On Key Down"] = nil, + ["Trigger Actions On Mouse Down"] = nil, ["UI-Scale"] = nil, ["Unbuffed"] = nil, ["Unit Frame Border Size"] = nil, diff --git a/env/translations_enUS.lua b/env/translations_enUS.lua index 841d7c7f0..62b4e9ec6 100644 --- a/env/translations_enUS.lua +++ b/env/translations_enUS.lua @@ -813,6 +813,7 @@ pfUI_translation["enUS"] = { ["Tracked Reputation"] = nil, ["Tracking Icon Size"] = nil, ["Trigger Actions On Key Down"] = nil, + ["Trigger Actions On Mouse Down"] = nil, ["UI-Scale"] = nil, ["Unbuffed"] = nil, ["Unit Frame Border Size"] = nil, diff --git a/env/translations_esES.lua b/env/translations_esES.lua index 40b985032..64c2459ab 100644 --- a/env/translations_esES.lua +++ b/env/translations_esES.lua @@ -813,6 +813,7 @@ pfUI_translation["esES"] = { ["Tracked Reputation"] = "Reputación rastreada", ["Tracking Icon Size"] = "Tamaño del icono de rastreo", ["Trigger Actions On Key Down"] = "Disparar acciones por presionar la tecla abajo", + ["Trigger Actions On Mouse Down"] = nil, ["UI-Scale"] = "Escala de IU", ["Unbuffed"] = "Sin beneficios", ["Unit Frame Border Size"] = "Tamaño del borde del marco de unidad", diff --git a/env/translations_frFR.lua b/env/translations_frFR.lua index 5d0d14b25..29cdda620 100644 --- a/env/translations_frFR.lua +++ b/env/translations_frFR.lua @@ -813,6 +813,7 @@ pfUI_translation["frFR"] = { ["Tracked Reputation"] = nil, ["Tracking Icon Size"] = "Taille de l'icône de suivi", ["Trigger Actions On Key Down"] = "Déclencher des actions sur la touche enfoncée", + ["Trigger Actions On Mouse Down"] = nil, ["UI-Scale"] = "Echelle de l'interface", ["Unbuffed"] = "Sans Améliorations", ["Unit Frame Border Size"] = "Taille de la bordure des cadres d'unité", diff --git a/env/translations_koKR.lua b/env/translations_koKR.lua index 8bc621f58..b2033dde8 100644 --- a/env/translations_koKR.lua +++ b/env/translations_koKR.lua @@ -813,6 +813,7 @@ pfUI_translation["koKR"] = { ["Tracked Reputation"] = nil, ["Tracking Icon Size"] = nil, ["Trigger Actions On Key Down"] = nil, + ["Trigger Actions On Mouse Down"] = nil, ["UI-Scale"] = "UI-크기", ["Unbuffed"] = nil, ["Unit Frame Border Size"] = "유닛프레임 테두리 크기", diff --git a/env/translations_ruRU.lua b/env/translations_ruRU.lua index a6f600095..254a05076 100644 --- a/env/translations_ruRU.lua +++ b/env/translations_ruRU.lua @@ -813,6 +813,7 @@ pfUI_translation["ruRU"] = { ["Tracked Reputation"] = "Отслеживаемая репутация", ["Tracking Icon Size"] = "Размер иконки отслеживания", ["Trigger Actions On Key Down"] = "Активация действий при нажатии клавиши (а не ее отпускании)", + ["Trigger Actions On Mouse Down"] = nil, ["UI-Scale"] = "Масштаб пользовательского интерфейса", ["Unbuffed"] = "Без баффа", ["Unit Frame Border Size"] = "Размер границы окна юнита", diff --git a/env/translations_zhCN.lua b/env/translations_zhCN.lua index 4dfaf4bca..8a12749ee 100644 --- a/env/translations_zhCN.lua +++ b/env/translations_zhCN.lua @@ -813,6 +813,7 @@ pfUI_translation["zhCN"] = { ["Tracked Reputation"] = "被追踪的声望", ["Tracking Icon Size"] = "追踪图标大小", ["Trigger Actions On Key Down"] = "按下即施法", + ["Trigger Actions On Mouse Down"] = nil, ["UI-Scale"] = "UI缩放比例", ["Unbuffed"] = "该Buff缺失者", ["Unit Frame Border Size"] = "头像边框大小", diff --git a/env/translations_zhTW.lua b/env/translations_zhTW.lua index 6f8862323..7c89316b8 100644 --- a/env/translations_zhTW.lua +++ b/env/translations_zhTW.lua @@ -813,6 +813,7 @@ pfUI_translation["zhTW"] = { ["Tracked Reputation"] = nil, ["Tracking Icon Size"] = "追蹤圖示大小", ["Trigger Actions On Key Down"] = nil, + ["Trigger Actions On Mouse Down"] = nil, ["UI-Scale"] = "UI縮放比例", ["Unbuffed"] = "該Buff缺失者", ["Unit Frame Border Size"] = "頭像邊框大小", diff --git a/modules/actionbar.lua b/modules/actionbar.lua index eabebc554..decb9f7dc 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -1142,8 +1142,8 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function () end end - -- set keydown option - if C.bars.keydown == "1" then + -- set mousdown option + if C.bars.mousedown == "1" then f:RegisterForClicks("LeftButtonDown", "RightButtonDown") else f:RegisterForClicks("LeftButtonUp", "RightButtonUp") diff --git a/modules/gui.lua b/modules/gui.lua index 2827caa8b..3b565ec97 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -2009,6 +2009,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function () CreateGUIEntry(T["Actionbar"], T["General"], function() CreateConfig(U["bars"], T["Trigger Actions On Key Down"], C.bars, "keydown", "checkbox") + CreateConfig(U["bars"], T["Trigger Actions On Mouse Down"], C.bars, "mousedown", "checkbox") CreateConfig(U["bars"], T["Self Cast: Alt Key"], C.bars, "altself", "checkbox") CreateConfig(U["bars"], T["Self Cast: Right Click"], C.bars, "rightself", "checkbox") CreateConfig(U["bars"], T["Button Animation"], C.bars, "animation", "dropdown", pfUI.gui.dropdowns.actionbuttonanimations)