Skip to content

Commit

Permalink
feat: reforge qq group dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
fang2hou committed Nov 23, 2024
1 parent 1d2016b commit ebfdd2e
Show file tree
Hide file tree
Showing 12 changed files with 99 additions and 1 deletion.
48 changes: 48 additions & 0 deletions Core/Options.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local W, F, E, L, V, P, G = unpack((select(2, ...)))
local tinsert = tinsert
local tconcat = table.concat

-- Add ElvUI move category
tinsert(E.ConfigModeLayouts, "WINDTOOLS")
Expand Down Expand Up @@ -42,3 +43,50 @@ E.PopupDialogs.WINDTOOLS_EDITBOX = {
preferredIndex = 3,
hideOnEscape = 1,
}

local function green(str)
return "|cff00d1b2" .. str .. "|r"
end

local function red(str)
return "|cffff3860" .. str .. "|r"
end

local function grey(str)
return "|cffbbbbbb" .. str .. "|r"
end

local qqGroupNumbers = tconcat({
format("%s (%d): %s (%s)", L["QQ Group"], 1, "336069019", grey(L["Almost full"])),
format("%s (%d): %s (%s)", L["QQ Group"], 2, "948518444", grey(L["Almost full"])),
format("%s (%d): %s (%s)", L["QQ Group"], 3, "687772809", green(L["Recommended"])),
}, "\n")

local qqGroupDescription = tconcat({
L["This the QQ group for Wind Addons users."],
red(L["!! No talking about specific UI sets !!"]),
"",
L["Click [%s] to show the QQ groups."]:format(green(L["I got it!"])),
}, "\n")

E.PopupDialogs.WINDTOOLS_QQ_GROUP_DIALOG = {
text = qqGroupDescription,
button1 = L["I got it!"],
button2 = _G.CANCEL,
OnAccept = function(self)
self:Hide()
E:StaticPopup_Show("WINDTOOLS_QQ_GROUP_NUMBER_DIALOG")
end,
whileDead = 1,
preferredIndex = 3,
hideOnEscape = 1,
}

E.PopupDialogs.WINDTOOLS_QQ_GROUP_NUMBER_DIALOG = {
text = qqGroupNumbers,
button1 = _G.OKAY,
OnAccept = E.noop,
whileDead = 1,
preferredIndex = 3,
hideOnEscape = 1,
}
5 changes: 5 additions & 0 deletions Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- https://github.com/wind-addons/WindToolsScripts/tree/master/MergeLocales
local L = ElvUI[1].Libs.ACL:NewLocale("ElvUI", "deDE")

L["!! No talking about specific UI sets !!"] = true
L["!keys Command"] = "!keys Kommando"
L["%month%-%day%-%year%"] = true
L["%player% cast %spell% -> %target%"] = "%player% zaubert %spell% -> %target%"
Expand Down Expand Up @@ -156,6 +157,7 @@ L["All Versions"] = "Alle Versionen"
L["All nets can be collected"] = "Alle Netze können eingesammelt werden"
L["Alliance"] = "Allianz"
L["Allow you to use Delete Key for confirming deleting."] = "Ermöglicht die Verwendung der Entf-Taste zum Bestätigen des Löschens."
L["Almost full"] = true
L["Alpha"] = "Transparenz"
L["Alpha Max"] = "Transparenz Max"
L["Alpha Min"] = "Transparenz Min"
Expand Down Expand Up @@ -359,6 +361,7 @@ L["Clear All"] = "Lösche Alles"
L["Clear History"] = "Lösche History"
L["Clear the alt list."] = "Lösche die Alt-Liste."
L["Click Binding"] = "Klick Bindung"
L["Click [%s] to show the QQ groups."] = true
L["Click to clear all marks."] = "Klicke, um alle Markierungen zu löschen."
L["Click to confirm"] = "Klicke zur Bestätigung"
L["Click to open the weekly rewards frame."] = "Klicke um das wöchentliche Belohnungsfenster zu öffnen."
Expand Down Expand Up @@ -1078,6 +1081,7 @@ L["Raw Mouse Acceleration"] = "Beschleunigung der Raw Maus"
L["Ready"] = "Fertig"
L["Ready Check"] = "Bereitschaftscheck"
L["Realm"] = "Server"
L["Recommended"] = true
L["Rectangle Minimap"] = "Rechteck Format Minikarte"
L["Reenable the addons that disabled by debug mode."] = "Aktiviere die Addons, die durch den Debug Modus deaktiviert wurden."
L["Reference"] = "Hinweis"
Expand Down Expand Up @@ -1407,6 +1411,7 @@ L["This module will change the channel when Tab has been pressed."] = "Dieses Mo
L["This module will display a alert frame when entering and leaving combat.\nYou can customize animations and text effects."] = "Dieses Modul zeigt beim Betreten und Verlassen des Kampfes ein Warnfenster an. \n Du kannst Animationen und Texteffekte anpassen."
L["This module will help you to reveal and resize maps."] = "Dieses Modul hilft Dir, beim Anzeigen und Ändern der Kartengröße."
L["This module will record whispers for switching.\n You can set the expiration time here for making a shortlist of recent targets."] = "Dieses Modul zeichnet Flüstern für den Wechsel auf. \n Hier kannst Du die Ablaufzeit festlegen, um eine Auswahlliste der letzten Ziele zu erstellen."
L["This the QQ group for Wind Addons users."] = true
L["Threat Transfer"] = "Bedrohungsübertragung"
L["Ticket Status"] = "Ticketstaus"
L["Tier Set"] = "Tier-Set"
Expand Down
5 changes: 5 additions & 0 deletions Locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- https://github.com/wind-addons/WindToolsScripts/tree/master/MergeLocales
local L = ElvUI[1].Libs.ACL:NewLocale("ElvUI", "enUS", true, true)

L["!! No talking about specific UI sets !!"] = true
L["!keys Command"] = true
L["%month%-%day%-%year%"] = true
L["%player% cast %spell% -> %target%"] = true
Expand Down Expand Up @@ -156,6 +157,7 @@ L["All Versions"] = true
L["All nets can be collected"] = true
L["Alliance"] = true
L["Allow you to use Delete Key for confirming deleting."] = true
L["Almost full"] = true
L["Alpha"] = true
L["Alpha Max"] = true
L["Alpha Min"] = true
Expand Down Expand Up @@ -359,6 +361,7 @@ L["Clear All"] = true
L["Clear History"] = true
L["Clear the alt list."] = true
L["Click Binding"] = true
L["Click [%s] to show the QQ groups."] = true
L["Click to clear all marks."] = true
L["Click to confirm"] = true
L["Click to open the weekly rewards frame."] = true
Expand Down Expand Up @@ -1078,6 +1081,7 @@ L["Raw Mouse Acceleration"] = true
L["Ready"] = true
L["Ready Check"] = true
L["Realm"] = true
L["Recommended"] = true
L["Rectangle Minimap"] = true
L["Reenable the addons that disabled by debug mode."] = true
L["Reference"] = true
Expand Down Expand Up @@ -1407,6 +1411,7 @@ L["This module will change the channel when Tab has been pressed."] = true
L["This module will display a alert frame when entering and leaving combat.\nYou can customize animations and text effects."] = true
L["This module will help you to reveal and resize maps."] = true
L["This module will record whispers for switching.\n You can set the expiration time here for making a shortlist of recent targets."] = true
L["This the QQ group for Wind Addons users."] = true
L["Threat Transfer"] = true
L["Ticket Status"] = true
L["Tier Set"] = true
Expand Down
5 changes: 5 additions & 0 deletions Locales/esMX.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- https://github.com/wind-addons/WindToolsScripts/tree/master/MergeLocales
local L = ElvUI[1].Libs.ACL:NewLocale("ElvUI", "esMX")

L["!! No talking about specific UI sets !!"] = true
L["!keys Command"] = "Comando !keys"
L["%month%-%day%-%year%"] = "%month%-%day%-%year%"
L["%player% cast %spell% -> %target%"] = "%player% lanza %spell% -> %target%"
Expand Down Expand Up @@ -156,6 +157,7 @@ L["All Versions"] = "Todas las versiones"
L["All nets can be collected"] = "Todas las redes se pueden recoger"
L["Alliance"] = "Alianza"
L["Allow you to use Delete Key for confirming deleting."] = "Permitir el uso de la tecla de borrado para confirmar el borrado"
L["Almost full"] = true
L["Alpha"] = "Transparencia"
L["Alpha Max"] = "Transparencia Max"
L["Alpha Min"] = "Transparencia Min"
Expand Down Expand Up @@ -359,6 +361,7 @@ L["Clear All"] = "Limpiar todo"
L["Clear History"] = "Borrar el historial"
L["Clear the alt list."] = "Limpiar la lista de personajes alternativos"
L["Click Binding"] = "Asignación de clics"
L["Click [%s] to show the QQ groups."] = true
L["Click to clear all marks."] = "Hacer clic para borrar todas las marcas"
L["Click to confirm"] = "Haga clic para confirmar"
L["Click to open the weekly rewards frame."] = "Hacer clic para abrir el marco de recompensas semanales."
Expand Down Expand Up @@ -1078,6 +1081,7 @@ L["Raw Mouse Acceleration"] = "Aceleración del ratón bruto"
L["Ready"] = "Listo"
L["Ready Check"] = "Comprobación de la preparación"
L["Realm"] = "Reino"
L["Recommended"] = true
L["Rectangle Minimap"] = "Mapa en rectángulo"
L["Reenable the addons that disabled by debug mode."] = "Reactivar los addons que fueron deshabilitados por el modo de depuración."
L["Reference"] = "Referencia"
Expand Down Expand Up @@ -1407,6 +1411,7 @@ L["This module will change the channel when Tab has been pressed."] = "Este mód
L["This module will display a alert frame when entering and leaving combat.\nYou can customize animations and text effects."] = "Este módulo mostrará una alerta cuando entres y sales de combate.\nPuedes personalizar animaciones y efectos de texto."
L["This module will help you to reveal and resize maps."] = "Este módulo te ayudará a revelar y redimensionar mapas."
L["This module will record whispers for switching.\n You can set the expiration time here for making a shortlist of recent targets."] = "Este módulo registrará susurros para cambiar.\n Puedes establecer el tiempo de expiración aquí para hacer una lista corta de objetivos recientes."
L["This the QQ group for Wind Addons users."] = true
L["Threat Transfer"] = "Transferencia de amenaza"
L["Ticket Status"] = "Estado de la solicitud"
L["Tier Set"] = "Conjunto de nivel"
Expand Down
5 changes: 5 additions & 0 deletions Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- https://github.com/wind-addons/WindToolsScripts/tree/master/MergeLocales
local L = ElvUI[1].Libs.ACL:NewLocale("ElvUI", "frFR")

L["!! No talking about specific UI sets !!"] = true
L["!keys Command"] = true
L["%month%-%day%-%year%"] = "%month%-%day%-%year%"
L["%player% cast %spell% -> %target%"] = "%player% lance %spell% -> %target%"
Expand Down Expand Up @@ -156,6 +157,7 @@ L["All Versions"] = "Toutes les versions"
L["All nets can be collected"] = "Tous les filets peuvent être collectés"
L["Alliance"] = "Alliance"
L["Allow you to use Delete Key for confirming deleting."] = "Utiliser la touche Suppr pour confirmer la suppression de l'objet."
L["Almost full"] = true
L["Alpha"] = "Transparence"
L["Alpha Max"] = "Alpha Max"
L["Alpha Min"] = "Alpha Min"
Expand Down Expand Up @@ -359,6 +361,7 @@ L["Clear All"] = "Tout effacer"
L["Clear History"] = "Effacer l'historique"
L["Clear the alt list."] = "Effacer la liste des personnages secondaires."
L["Click Binding"] = "Cliquez sur le lien"
L["Click [%s] to show the QQ groups."] = true
L["Click to clear all marks."] = "Cliquer pour effacer toutes les marques."
L["Click to confirm"] = "Cliquer pour confirmer"
L["Click to open the weekly rewards frame."] = "Cliquez pour ouvrir le cadre des récompenses hebdomadaires. "
Expand Down Expand Up @@ -1078,6 +1081,7 @@ L["Raw Mouse Acceleration"] = "Accélération de la souris"
L["Ready"] = "Prêt"
L["Ready Check"] = "Vérifier si les joueurs sont prêts"
L["Realm"] = "Royaume"
L["Recommended"] = true
L["Rectangle Minimap"] = "Minimap rectangulaire"
L["Reenable the addons that disabled by debug mode."] = "Réactiver les addons qui ont été désactivés par le mode débogage."
L["Reference"] = "Référence"
Expand Down Expand Up @@ -1407,6 +1411,7 @@ L["This module will change the channel when Tab has been pressed."] = "Ce module
L["This module will display a alert frame when entering and leaving combat.\nYou can customize animations and text effects."] = "Ce module affiche un cadre d'alerte quand vous entrez ou sortez d'un combat.\nVous pouvez personnaliser les animations et les effets de texte."
L["This module will help you to reveal and resize maps."] = "Ce module embellira et redimensionnera les cartes."
L["This module will record whispers for switching.\n You can set the expiration time here for making a shortlist of recent targets."] = "Ce module enregistrera les chuchotements pour la commutation. Vous pouvez régler le temps d'expiration ici pour faire une liste restreinte des cibles récentes."
L["This the QQ group for Wind Addons users."] = true
L["Threat Transfer"] = "Transfert de menace"
L["Ticket Status"] = "Statut du ticket"
L["Tier Set"] = "Ensemble du Set"
Expand Down
5 changes: 5 additions & 0 deletions Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- https://github.com/wind-addons/WindToolsScripts/tree/master/MergeLocales
local L = ElvUI[1].Libs.ACL:NewLocale("ElvUI", "itIT")

L["!! No talking about specific UI sets !!"] = true
L["!keys Command"] = true
L["%month%-%day%-%year%"] = true
L["%player% cast %spell% -> %target%"] = true
Expand Down Expand Up @@ -156,6 +157,7 @@ L["All Versions"] = true
L["All nets can be collected"] = true
L["Alliance"] = true
L["Allow you to use Delete Key for confirming deleting."] = true
L["Almost full"] = true
L["Alpha"] = true
L["Alpha Max"] = true
L["Alpha Min"] = true
Expand Down Expand Up @@ -359,6 +361,7 @@ L["Clear All"] = true
L["Clear History"] = true
L["Clear the alt list."] = true
L["Click Binding"] = true
L["Click [%s] to show the QQ groups."] = true
L["Click to clear all marks."] = true
L["Click to confirm"] = true
L["Click to open the weekly rewards frame."] = true
Expand Down Expand Up @@ -1078,6 +1081,7 @@ L["Raw Mouse Acceleration"] = true
L["Ready"] = true
L["Ready Check"] = true
L["Realm"] = true
L["Recommended"] = true
L["Rectangle Minimap"] = true
L["Reenable the addons that disabled by debug mode."] = true
L["Reference"] = true
Expand Down Expand Up @@ -1407,6 +1411,7 @@ L["This module will change the channel when Tab has been pressed."] = true
L["This module will display a alert frame when entering and leaving combat.\nYou can customize animations and text effects."] = true
L["This module will help you to reveal and resize maps."] = true
L["This module will record whispers for switching.\n You can set the expiration time here for making a shortlist of recent targets."] = true
L["This the QQ group for Wind Addons users."] = true
L["Threat Transfer"] = true
L["Ticket Status"] = true
L["Tier Set"] = true
Expand Down
5 changes: 5 additions & 0 deletions Locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- https://github.com/wind-addons/WindToolsScripts/tree/master/MergeLocales
local L = ElvUI[1].Libs.ACL:NewLocale("ElvUI", "koKR")

L["!! No talking about specific UI sets !!"] = true
L["!keys Command"] = true
L["%month%-%day%-%year%"] = "%year%년 %month%월 %day%일"
L["%player% cast %spell% -> %target%"] = "%player% 시전 %spell% -> %target%"
Expand Down Expand Up @@ -156,6 +157,7 @@ L["All Versions"] = true
L["All nets can be collected"] = true
L["Alliance"] = "얼라이언스"
L["Allow you to use Delete Key for confirming deleting."] = "아이템 파괴 확인을 위해 Delete 키를 사용합니다."
L["Almost full"] = true
L["Alpha"] = "투명도"
L["Alpha Max"] = "최대 알파 값"
L["Alpha Min"] = "최소 알파 값"
Expand Down Expand Up @@ -359,6 +361,7 @@ L["Clear All"] = true
L["Clear History"] = "기록 초기화"
L["Clear the alt list."] = true
L["Click Binding"] = "클릭 바인딩"
L["Click [%s] to show the QQ groups."] = true
L["Click to clear all marks."] = "모든 징표를 제거하려면 클릭하십시오."
L["Click to confirm"] = "승인하려면 클릭하세요."
L["Click to open the weekly rewards frame."] = "금고 보상 보기"
Expand Down Expand Up @@ -1078,6 +1081,7 @@ L["Raw Mouse Acceleration"] = true
L["Ready"] = "준비"
L["Ready Check"] = "전투 준비 확인"
L["Realm"] = "서버명"
L["Recommended"] = true
L["Rectangle Minimap"] = "미니맵 비율 조정"
L["Reenable the addons that disabled by debug mode."] = "디버그 모드에서 비활성화된 애드온을 다시 활성화합니다."
L["Reference"] = true
Expand Down Expand Up @@ -1407,6 +1411,7 @@ L["This module will change the channel when Tab has been pressed."] = "이 모
L["This module will display a alert frame when entering and leaving combat.\nYou can customize animations and text effects."] = "이 모듈은 전투가 시작되거나 종료될 때 알림창을 표시합니다.\n애니메이션과 텍스트 효과를 설정할 수 있습니다."
L["This module will help you to reveal and resize maps."] = "이 모듈은 지도를 표시하고 크기를 조정합니다."
L["This module will record whispers for switching.\n You can set the expiration time here for making a shortlist of recent targets."] = "이 모듈은 귓속말을 기록합니다.\n최근 대상 목록을 만들기 위해 만료 시간을 설정할 수 있습니다."
L["This the QQ group for Wind Addons users."] = true
L["Threat Transfer"] = "위협 이전"
L["Ticket Status"] = "GM 대기표 상태"
L["Tier Set"] = "티어 셋트"
Expand Down
5 changes: 5 additions & 0 deletions Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- https://github.com/wind-addons/WindToolsScripts/tree/master/MergeLocales
local L = ElvUI[1].Libs.ACL:NewLocale("ElvUI", "ptBR")

L["!! No talking about specific UI sets !!"] = true
L["!keys Command"] = true
L["%month%-%day%-%year%"] = true
L["%player% cast %spell% -> %target%"] = true
Expand Down Expand Up @@ -156,6 +157,7 @@ L["All Versions"] = true
L["All nets can be collected"] = true
L["Alliance"] = true
L["Allow you to use Delete Key for confirming deleting."] = true
L["Almost full"] = true
L["Alpha"] = "Transparência"
L["Alpha Max"] = true
L["Alpha Min"] = true
Expand Down Expand Up @@ -359,6 +361,7 @@ L["Clear All"] = true
L["Clear History"] = true
L["Clear the alt list."] = true
L["Click Binding"] = true
L["Click [%s] to show the QQ groups."] = true
L["Click to clear all marks."] = true
L["Click to confirm"] = true
L["Click to open the weekly rewards frame."] = true
Expand Down Expand Up @@ -1078,6 +1081,7 @@ L["Raw Mouse Acceleration"] = true
L["Ready"] = true
L["Ready Check"] = true
L["Realm"] = true
L["Recommended"] = true
L["Rectangle Minimap"] = true
L["Reenable the addons that disabled by debug mode."] = true
L["Reference"] = true
Expand Down Expand Up @@ -1407,6 +1411,7 @@ L["This module will change the channel when Tab has been pressed."] = true
L["This module will display a alert frame when entering and leaving combat.\nYou can customize animations and text effects."] = true
L["This module will help you to reveal and resize maps."] = true
L["This module will record whispers for switching.\n You can set the expiration time here for making a shortlist of recent targets."] = true
L["This the QQ group for Wind Addons users."] = true
L["Threat Transfer"] = true
L["Ticket Status"] = true
L["Tier Set"] = true
Expand Down
5 changes: 5 additions & 0 deletions Locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- https://github.com/wind-addons/WindToolsScripts/tree/master/MergeLocales
local L = ElvUI[1].Libs.ACL:NewLocale("ElvUI", "ruRU")

L["!! No talking about specific UI sets !!"] = true
L["!keys Command"] = "Команда !keys"
L["%month%-%day%-%year%"] = "%day%-%month%-%year%"
L["%player% cast %spell% -> %target%"] = "%player% применяет %spell% -> %target%"
Expand Down Expand Up @@ -156,6 +157,7 @@ L["All Versions"] = "Все версии"
L["All nets can be collected"] = "Все сети могут быть собраны"
L["Alliance"] = "Альянс"
L["Allow you to use Delete Key for confirming deleting."] = "Разрешить Вам использовать кнопку удаления для подтверждения удаления."
L["Almost full"] = true
L["Alpha"] = "Прозрачность"
L["Alpha Max"] = "Максимальная прозрачность"
L["Alpha Min"] = "Минимальная прозрачность"
Expand Down Expand Up @@ -359,6 +361,7 @@ L["Clear All"] = "Очистить все"
L["Clear History"] = "Очистить историю"
L["Clear the alt list."] = "Очистить список альтов."
L["Click Binding"] = "Привязка нажатия"
L["Click [%s] to show the QQ groups."] = true
L["Click to clear all marks."] = "Нажмите, чтобы удалить все отметки."
L["Click to confirm"] = "Подтвердить"
L["Click to open the weekly rewards frame."] = "Нажмите, чтобы открыть фрейм еженедельных наград."
Expand Down Expand Up @@ -1078,6 +1081,7 @@ L["Raw Mouse Acceleration"] = "Ускорение мыши"
L["Ready"] = "Готово"
L["Ready Check"] = "Проверка готовности"
L["Realm"] = "Игровой мир"
L["Recommended"] = true
L["Rectangle Minimap"] = "Прямоугольная миникарта"
L["Reenable the addons that disabled by debug mode."] = "Повторно включите аддоны, отключенные режимом отладки."
L["Reference"] = "Ссылка"
Expand Down Expand Up @@ -1407,6 +1411,7 @@ L["This module will change the channel when Tab has been pressed."] = "Этот
L["This module will display a alert frame when entering and leaving combat.\nYou can customize animations and text effects."] = "Этот модуль будет отображать фрейм предупреждения при входе в бой и выходе из него.\nВы можете настроить анимацию и текстовые эффекты."
L["This module will help you to reveal and resize maps."] = "Этот модуль поможет Вам открывать карты и изменять их размер."
L["This module will record whispers for switching.\n You can set the expiration time here for making a shortlist of recent targets."] = "Этот модуль будет записывать шепоты для переключения. \n Вы можете установить время истечения для получения краткого списка последних целей."
L["This the QQ group for Wind Addons users."] = true
L["Threat Transfer"] = "Перенаправление угрозы"
L["Ticket Status"] = "Статус тикета"
L["Tier Set"] = "Комплекты брони"
Expand Down
Loading

0 comments on commit ebfdd2e

Please sign in to comment.