From bb7e0d2c271d1670d33de852d8a099bc4cc8e1c2 Mon Sep 17 00:00:00 2001 From: andrew6180 <16847730+andrew6180@users.noreply.github.com> Date: Fri, 17 May 2024 15:08:08 -0700 Subject: [PATCH] Work on Ascension Backport --- .github/ISSUE_TEMPLATE/bug_report.md | 43 - .github/ISSUE_TEMPLATE/bug_report.yml | 77 + .github/ISSUE_TEMPLATE/config.yml | 1 + .github/ISSUE_TEMPLATE/feature_request.md | 20 + .github/PULL_REQUEST_TEPMLATE.md | 28 + .github/workflows/release.yml | 35 - .gitignore | 67 - .pkgmeta | 10 - CHANGELOG.md | 8 + Definitions.lua | 1 - Details.toc | 5 +- Details_Cata.toc | 172 - Details_Classic.toc | 167 - Details_Wrath.toc | 167 - Libs/AceAddon-3.0/AceAddon-3.0.lua | 649 -- Libs/AceAddon-3.0/AceAddon-3.0.xml | 4 - Libs/AceComm-3.0/AceComm-3.0.lua | 301 - Libs/AceComm-3.0/AceComm-3.0.xml | 5 - Libs/AceComm-3.0/ChatThrottleLib.lua | 534 -- Libs/AceLocale-3.0/AceLocale-3.0.lua | 133 - Libs/AceLocale-3.0/AceLocale-3.0.xml | 4 - Libs/AceSerializer-3.0/AceSerializer-3.0.lua | 287 - Libs/AceSerializer-3.0/AceSerializer-3.0.xml | 4 - Libs/AceTimer-3.0/AceTimer-3.0.lua | 278 - Libs/AceTimer-3.0/AceTimer-3.0.xml | 4 - .../CallbackHandler-1.0.lua | 202 - .../CallbackHandler-1.0.xml | 4 - Libs/DF/.gitignore | 11 - Libs/DF/auras.lua | 27 +- Libs/DF/buildmenu.lua | 6 +- Libs/DF/button.lua | 20 +- Libs/DF/charts.lua | 14 +- Libs/DF/colors.lua | 17 +- Libs/DF/containers.lua | 6 +- Libs/DF/cooltip.lua | 52 +- Libs/DF/definitions.lua | 15 - Libs/DF/dropdown.lua | 2 +- Libs/DF/editor.lua | 14 +- Libs/DF/externals.lua | 21 +- Libs/DF/frames.lua | 45 +- Libs/DF/fw.lua | 703 +- Libs/DF/header.lua | 6 +- Libs/DF/icon.lua | 4 +- Libs/DF/icongeneric.lua | 6 +- Libs/DF/iteminfo.lua | 12 +- Libs/DF/keybind.lua | 8 +- Libs/DF/loadconditions.lua | 456 +- Libs/DF/math.lua | 2 +- Libs/DF/mixins.lua | 134 +- Libs/DF/panel.lua | 71 +- Libs/DF/picture.lua | 71 +- Libs/DF/pictureedit.lua | 24 +- Libs/DF/rounded_panel.lua | 45 +- Libs/DF/scrollbox.examples.lua | 2 +- Libs/DF/scrollbox.lua | 1 - Libs/DF/slider.lua | 1 - Libs/DF/spells.lua | 801 +-- Libs/DF/textentry.lua | 2 +- Libs/DF/timebar.lua | 8 +- Libs/DF/unitframe.lua | 65 +- Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua | 470 -- Libs/LibDBIcon-1.0/lib.xml | 6 - .../Changelog-libdatabroker-1-1-v1.1.4.txt | 33 - Libs/LibDataBroker-1.1/LibDataBroker-1.1.lua | 90 - Libs/LibDataBroker-1.1/README.textile | 13 - Libs/LibDeflate/LibDeflate.lua | 3536 ---------- Libs/LibDeflate/lib.xml | 3 - Libs/LibGraph-2.0/1-1.tga | Bin 21663 -> 0 bytes Libs/LibGraph-2.0/1-128.tga | Bin 13781 -> 0 bytes Libs/LibGraph-2.0/1-16.tga | Bin 14332 -> 0 bytes Libs/LibGraph-2.0/1-2.tga | Bin 18611 -> 0 bytes Libs/LibGraph-2.0/1-32.tga | Bin 13995 -> 0 bytes Libs/LibGraph-2.0/1-4.tga | Bin 14824 -> 0 bytes Libs/LibGraph-2.0/1-64.tga | Bin 13859 -> 0 bytes Libs/LibGraph-2.0/1-8.tga | Bin 14863 -> 0 bytes Libs/LibGraph-2.0/LibGraph-2.0.lua | 2268 ------- Libs/LibGraph-2.0/line.tga | Bin 764 -> 0 bytes Libs/LibGraph-2.0/sline.tga | Bin 684 -> 0 bytes Libs/LibGraph-2.0/triangle.tga | Bin 6152 -> 0 bytes Libs/LibLuaServer/LICENSE | 21 - Libs/LibLuaServer/LibLuaServer.lua | 5791 ----------------- Libs/LibLuaServer/LibLuaServer.toc | 8 - Libs/LibOpenRaid/.gitignore | 42 - Libs/LibOpenRaid/Deprecated.lua | 120 - Libs/LibOpenRaid/Functions.lua | 29 +- Libs/LibOpenRaid/GetPlayerInformation.lua | 766 +-- Libs/LibOpenRaid/LICENSE | 2 +- Libs/LibOpenRaid/LibOpenRaid.lua | 288 +- Libs/LibOpenRaid/LibOpenRaid.toc | 5 - Libs/LibOpenRaid/README.md | 2 +- .../LibOpenRaid/ThingsToMantain_Ascension.lua | 499 ++ Libs/LibOpenRaid/ThingsToMantain_Cata.lua | 701 -- .../ThingsToMantain_Dragonflight.lua | 1152 ---- Libs/LibOpenRaid/ThingsToMantain_Era.lua | 312 - .../ThingsToMantain_Shadowlands.lua | 679 -- Libs/LibOpenRaid/ThingsToMantain_Wrath.lua | 697 -- Libs/LibOpenRaid/docs.txt | 2 +- Libs/LibOpenRaid/lib.xml | 9 +- .../LibSharedMedia-3.0/LibSharedMedia-3.0.lua | 300 - Libs/LibSharedMedia-3.0/lib.xml | 3 - Libs/LibStub/LibStub.lua | 30 - Libs/LibTranslit/LibTranslit-1.0.lua | 113 - Libs/LibTranslit/LibTranslit-1.0.toc | 13 - Libs/LibTranslit/LibTranslit-1.0.xml | 4 - Libs/LibTranslit/README.md | 10 - Libs/LibWindow-1.1/LibWindow-1.1.lua | 317 - Libs/NickTag-1.0/NickTag-1.0.lua | 1099 ---- Libs/NickTag-1.0/NickTag-1.0.toc | 5 - Libs/NickTag-1.0/NickTag-1.0.xml | 3 - Libs/libs.xml | 16 +- boot.lua | 79 +- classes/class_damage.lua | 431 +- classes/class_spelltable.lua | 17 +- classes/class_utility.lua | 16 - classes/container_actors.lua | 109 - classes/container_segments.lua | 2 +- core/control.lua | 20 +- core/gears.lua | 790 +-- core/network.lua | 105 +- core/parser.lua | 1268 +--- core/plugins.lua | 2 +- core/plugins_statusbar.lua | 6 +- core/util.lua | 15 +- core/windows.lua | 6 +- frames/anime.lua | 343 +- frames/window_all_in_one.lua | 8 +- .../breakdown_spells_genericframes.lua | 4 +- .../breakdown_spells_phaseframes.lua | 4 +- .../breakdown_spells_spellframes.lua | 7 +- .../breakdown_spells_targetframes.lua | 4 +- .../window_playerbreakdown.lua | 2 +- .../window_playerbreakdown_auras.lua | 17 - .../window_playerbreakdown_compare.lua | 2 +- .../window_playerbreakdown_list.lua | 13 +- .../window_playerbreakdown_spells.lua | 4 +- frames/window_copy.lua | 2 +- frames/window_currentdps.lua | 29 +- frames/window_custom.lua | 4 +- frames/window_dump.lua | 4 +- frames/window_eventtracker.lua | 11 +- frames/window_forge.lua | 2 +- frames/window_main.lua | 200 +- frames/window_mythicplus/deprecated.lua | 2 +- frames/window_mythicplus/window_chart.lua | 12 +- .../window_mythicplus/window_end_of_run.lua | 155 +- frames/window_options2.lua | 6 +- frames/window_options2_sections.lua | 32 +- frames/window_report.lua | 23 +- frames/window_runcode.lua | 2 +- frames/window_scrolldamage.lua | 4 +- frames/window_spellcategory.lua | 2 +- frames/window_statistics.lua | 4 +- frames/window_wa.lua | 6 +- frames/window_welcome.lua | 11 +- functions/autorun.lua | 4 - functions/classes.lua | 18 +- functions/currentdps.lua | 2 +- functions/deathrecap.lua | 682 -- functions/ej_cache.lua | 4 - functions/immersion.lua | 47 +- functions/mythicdungeon/data_capture.lua | 5 +- functions/mythicdungeon/mythicdungeon.lua | 31 +- functions/mythicdungeon/segments.lua | 4 +- functions/plater.lua | 4 +- functions/playerclass.lua | 45 +- functions/profiles.lua | 256 +- functions/raidinfo.lua | 2 +- functions/slash.lua | 18 +- functions/spec_augmentation.lua | 597 -- functions/spellcache.lua | 239 +- functions/spells.lua | 4162 +----------- functions/testbars.lua | 133 +- functions/textures.lua | 2 +- images/{BantoBar.blp => BantoBar.tga} | Bin ...os_captures.blp => atributos_captures.tga} | Bin ...nes_misc.blp => atributos_icones_misc.tga} | Bin images/{autoshot.blp => autoshot.tga} | Bin images/{background.blp => background.tga} | Bin images/{bar4.blp => bar4.tga} | Bin images/{bar4_glass.blp => bar4_glass.tga} | Bin images/{bar4_reverse.blp => bar4_reverse.tga} | Bin images/{bar4_vidro.blp => bar4_vidro.tga} | Bin ...etalhes2_end.blp => bar_detalhes2_end.tga} | Bin images/{bar_flat.blp => bar_flat.tga} | Bin images/{bar_serenity.blp => bar_serenity.tga} | Bin images/{bar_skyline.blp => bar_skyline.tga} | Bin images/bar_textures/bar_of_bars.blp | Bin 0 -> 44932 bytes images/bar_textures/bar_of_bars.png | Bin 11379 -> 0 bytes images/bar_textures/bar_rounded.blp | Bin 0 -> 12164 bytes images/bar_textures/bar_rounded.png | Bin 2146 -> 0 bytes images/bar_textures/bar_skyline_compact.blp | Bin 0 -> 12164 bytes images/bar_textures/bar_skyline_compact.png | Bin 4557 -> 0 bytes images/{border_1.blp => border_1.tga} | Bin images/{border_2.blp => border_2.tga} | Bin images/{border_3.blp => border_3.tga} | Bin ...{border_welcome.blp => border_welcome.tga} | Bin ...overlay.blp => button_disable_overlay.tga} | Bin images/classes.blp | Bin 0 -> 700244 bytes images/classes.tga | Bin 1048620 -> 0 bytes images/classes_alpha.blp | Bin 0 -> 700244 bytes images/classes_small.blp | Bin 0 -> 175956 bytes images/classes_small.tga | Bin 262188 -> 0 bytes images/classes_small_alpha.blp | Bin 0 -> 175956 bytes images/classes_small_alpha.tga | Bin 262188 -> 0 bytes images/classes_small_alpha_bw.blp | Bin 0 -> 175956 bytes images/classes_small_alpha_bw.tga | Bin 262188 -> 0 bytes images/classes_small_bw.blp | Bin 0 -> 175956 bytes images/classes_small_bw.tga | Bin 262188 -> 0 bytes images/{clock.blp => clock.tga} | Bin images/common-iconmask.blp | Bin 0 -> 6676 bytes images/common-iconmask.png | Bin 302 -> 0 bytes ...ltip_selected.blp => cooltip_selected.tga} | Bin images/{copy.blp => copy.tga} | Bin .../{custom_icones.blp => custom_icones.tga} | Bin ...{default_button.blp => default_button.tga} | Bin images/{espadas.blp => espadas.tga} | Bin ..._leftright.blp => highlight_leftright.tga} | Bin ...hlight_updown.blp => highlight_updown.tga} | Bin images/{icone_bg.blp => icone_bg.tga} | Bin ...{icone_bg_fundo.blp => icone_bg_fundo.tga} | Bin images/{icones_barra.blp => icones_barra.tga} | Bin ...etaken.blp => info_window_damagetaken.tga} | Bin images/{key_alt.blp => key_alt.tga} | Bin images/{key_ctrl.blp => key_ctrl.tga} | Bin images/{key_shift.blp => key_shift.tga} | Bin images/{knob.blp => knob.tga} | Bin images/masks/white_rounded_512x512.blp | Bin 0 -> 350740 bytes images/masks/white_rounded_512x512.png | Bin 4619 -> 0 bytes images/{melee.blp => melee.tga} | Bin images/{minimap.blp => minimap.tga} | Bin images/{modo_icones.blp => modo_icones.tga} | Bin ...rlay_detalhes.blp => overlay_detalhes.tga} | Bin .../{report_button.blp => report_button.tga} | Bin ...frame_icons.blp => report_frame_icons.tga} | Bin .../{reset_button2.blp => reset_button2.tga} | Bin .../{classic_skin.tga => classic_skin.blp} | Bin ...lassic_skin_v1.tga => classic_skin_v1.blp} | Bin images/skins/darktheme.blp | Bin 1399316 -> 0 bytes .../{default_skin.tga => default_skin.blp} | Bin images/skins/{flat_skin.tga => flat_skin.blp} | Bin images/skins/{overwatch.tga => overwatch.blp} | Bin ...implygray_skin.tga => simplygray_skin.blp} | Bin images/{small_icons.blp => small_icons.tga} | Bin images/spells/burning_frenzy_tier4.blp | Bin 0 -> 6676 bytes images/spells/burning_frenzy_tier4.jpg | Bin 12826 -> 0 bytes images/spells/elf_face_right.blp | Bin 0 -> 6676 bytes images/spells/elf_face_right.jpg | Bin 7256 -> 0 bytes images/spells/eruption_tier4.blp | Bin 0 -> 6676 bytes images/spells/eruption_tier4.jpg | Bin 12450 -> 0 bytes images/spells/lil_dragon_left.blp | Bin 0 -> 6676 bytes images/spells/lil_dragon_left.jpg | Bin 7691 -> 0 bytes images/spells/prescience_time.blp | Bin 0 -> 6676 bytes images/spells/prescience_time.jpg | Bin 6459 -> 0 bytes .../spells/spell_druid_bearhug_blackwhite.blp | Bin 0 -> 6676 bytes .../spells/spell_druid_bearhug_blackwhite.jpg | Bin 7518 -> 0 bytes .../{toolbar_icons.blp => toolbar_icons.tga} | Bin ...ns_shadow.blp => toolbar_icons_shadow.tga} | Bin images/{verticalline.blp => verticalline.tga} | Bin locales/Details-deDE.lua | 1704 ++++- locales/Details-enUS.lua | 27 +- locales/Details-esES.lua | 1401 +++- locales/Details-esMX.lua | 1398 +++- locales/Details-frFR.lua | 1391 +++- locales/Details-itIT.lua | 1417 +++- locales/Details-koKR.lua | 1725 ++++- locales/Details-ptBR.lua | 1678 ++++- locales/Details-ruRU.lua | 1689 ++++- locales/Details-zhCN.lua | 1568 ++++- locales/Details-zhTW.lua | 1681 ++++- .../Details_DataStorage.lua | 84 +- .../Details_DataStorage.toc | 20 +- .../Details_EncounterDetails.lua | 1898 +++--- .../Details_EncounterDetails.toc | 42 +- plugins/Details_EncounterDetails/embeds.xml | 6 +- plugins/Details_EncounterDetails/enUS.lua | 136 +- plugins/Details_EncounterDetails/frames.lua | 1036 +-- plugins/Details_EncounterDetails/ptBR.lua | 122 +- .../Details_RaidCheck/Details_RaidCheck.lua | 2160 +++--- .../Details_RaidCheck/Details_RaidCheck.toc | 26 +- .../Libs/AceLocale-3.0/AceLocale-3.0.lua | 274 +- .../Libs/AceLocale-3.0/AceLocale-3.0.xml | 6 +- .../Libs/LibStub/LibStub.lua | 102 +- .../Libs/LibStub/LibStub.toc | 26 +- .../Libs/LibStub/tests/test.lua | 80 +- .../Libs/LibStub/tests/test2.lua | 54 +- .../Libs/LibStub/tests/test3.lua | 26 +- .../Libs/LibStub/tests/test4.lua | 80 +- plugins/Details_RaidCheck/embeds.xml | 14 +- plugins/Details_Streamer/Details_Streamer.lua | 5244 +++++++-------- plugins/Details_Streamer/Details_Streamer.toc | 28 +- .../Details_Streamer/Libs/LibStub/LibStub.lua | 102 +- .../Details_Streamer/Libs/LibStub/LibStub.toc | 26 +- .../Libs/LibStub/tests/test.lua | 80 +- .../Libs/LibStub/tests/test2.lua | 54 +- .../Libs/LibStub/tests/test3.lua | 26 +- .../Libs/LibStub/tests/test4.lua | 80 +- plugins/Details_Streamer/embeds.xml | 12 +- .../Details_TinyThreat/Details_TinyThreat.lua | 1894 +++--- .../Details_TinyThreat/Details_TinyThreat.toc | 34 +- .../Libs/AceLocale-3.0/AceLocale-3.0.lua | 274 +- .../Libs/AceLocale-3.0/AceLocale-3.0.xml | 8 +- .../Libs/LibStub/LibStub.lua | 102 +- .../Libs/LibStub/LibStub.toc | 26 +- .../Libs/LibStub/tests/test.lua | 82 +- .../Libs/LibStub/tests/test2.lua | 54 +- .../Libs/LibStub/tests/test3.lua | 28 +- .../Libs/LibStub/tests/test4.lua | 82 +- plugins/Details_TinyThreat/embeds.xml | 14 +- plugins/Details_TinyThreat/enUS.lua | 32 +- plugins/Details_TinyThreat/ptBR.lua | 14 +- plugins/Details_Vanguard/Details_Vanguard.lua | 2328 +++---- plugins/Details_Vanguard/Details_Vanguard.toc | 30 +- .../Libs/AceLocale-3.0/AceLocale-3.0.lua | 274 +- .../Libs/AceLocale-3.0/AceLocale-3.0.xml | 8 +- .../Details_Vanguard/Libs/LibStub/LibStub.lua | 102 +- .../Details_Vanguard/Libs/LibStub/LibStub.toc | 26 +- .../Libs/LibStub/tests/test.lua | 82 +- .../Libs/LibStub/tests/test2.lua | 54 +- .../Libs/LibStub/tests/test3.lua | 28 +- .../Libs/LibStub/tests/test4.lua | 82 +- plugins/Details_Vanguard/embeds.xml | 14 +- plugins/Details_Vanguard/enUS.lua | 46 +- plugins/Details_Vanguard/ptBR.lua | 46 +- startup.lua | 68 +- textures.lua | 2 +- 325 files changed, 26995 insertions(+), 41741 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/PULL_REQUEST_TEPMLATE.md delete mode 100644 .github/workflows/release.yml delete mode 100644 .gitignore delete mode 100644 .pkgmeta create mode 100644 CHANGELOG.md delete mode 100644 Details_Cata.toc delete mode 100644 Details_Classic.toc delete mode 100644 Details_Wrath.toc delete mode 100644 Libs/AceAddon-3.0/AceAddon-3.0.lua delete mode 100644 Libs/AceAddon-3.0/AceAddon-3.0.xml delete mode 100644 Libs/AceComm-3.0/AceComm-3.0.lua delete mode 100644 Libs/AceComm-3.0/AceComm-3.0.xml delete mode 100644 Libs/AceComm-3.0/ChatThrottleLib.lua delete mode 100644 Libs/AceLocale-3.0/AceLocale-3.0.lua delete mode 100644 Libs/AceLocale-3.0/AceLocale-3.0.xml delete mode 100644 Libs/AceSerializer-3.0/AceSerializer-3.0.lua delete mode 100644 Libs/AceSerializer-3.0/AceSerializer-3.0.xml delete mode 100644 Libs/AceTimer-3.0/AceTimer-3.0.lua delete mode 100644 Libs/AceTimer-3.0/AceTimer-3.0.xml delete mode 100644 Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua delete mode 100644 Libs/CallbackHandler-1.0/CallbackHandler-1.0.xml delete mode 100644 Libs/DF/.gitignore delete mode 100644 Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua delete mode 100644 Libs/LibDBIcon-1.0/lib.xml delete mode 100644 Libs/LibDataBroker-1.1/Changelog-libdatabroker-1-1-v1.1.4.txt delete mode 100644 Libs/LibDataBroker-1.1/LibDataBroker-1.1.lua delete mode 100644 Libs/LibDataBroker-1.1/README.textile delete mode 100644 Libs/LibDeflate/LibDeflate.lua delete mode 100644 Libs/LibDeflate/lib.xml delete mode 100644 Libs/LibGraph-2.0/1-1.tga delete mode 100644 Libs/LibGraph-2.0/1-128.tga delete mode 100644 Libs/LibGraph-2.0/1-16.tga delete mode 100644 Libs/LibGraph-2.0/1-2.tga delete mode 100644 Libs/LibGraph-2.0/1-32.tga delete mode 100644 Libs/LibGraph-2.0/1-4.tga delete mode 100644 Libs/LibGraph-2.0/1-64.tga delete mode 100644 Libs/LibGraph-2.0/1-8.tga delete mode 100644 Libs/LibGraph-2.0/LibGraph-2.0.lua delete mode 100644 Libs/LibGraph-2.0/line.tga delete mode 100644 Libs/LibGraph-2.0/sline.tga delete mode 100644 Libs/LibGraph-2.0/triangle.tga delete mode 100644 Libs/LibLuaServer/LICENSE delete mode 100644 Libs/LibLuaServer/LibLuaServer.lua delete mode 100644 Libs/LibLuaServer/LibLuaServer.toc delete mode 100644 Libs/LibOpenRaid/.gitignore delete mode 100644 Libs/LibOpenRaid/Deprecated.lua delete mode 100644 Libs/LibOpenRaid/LibOpenRaid.toc create mode 100644 Libs/LibOpenRaid/ThingsToMantain_Ascension.lua delete mode 100644 Libs/LibOpenRaid/ThingsToMantain_Cata.lua delete mode 100644 Libs/LibOpenRaid/ThingsToMantain_Dragonflight.lua delete mode 100644 Libs/LibOpenRaid/ThingsToMantain_Era.lua delete mode 100644 Libs/LibOpenRaid/ThingsToMantain_Shadowlands.lua delete mode 100644 Libs/LibOpenRaid/ThingsToMantain_Wrath.lua delete mode 100644 Libs/LibSharedMedia-3.0/LibSharedMedia-3.0.lua delete mode 100644 Libs/LibSharedMedia-3.0/lib.xml delete mode 100644 Libs/LibStub/LibStub.lua delete mode 100644 Libs/LibTranslit/LibTranslit-1.0.lua delete mode 100644 Libs/LibTranslit/LibTranslit-1.0.toc delete mode 100644 Libs/LibTranslit/LibTranslit-1.0.xml delete mode 100644 Libs/LibTranslit/README.md delete mode 100644 Libs/LibWindow-1.1/LibWindow-1.1.lua delete mode 100644 Libs/NickTag-1.0/NickTag-1.0.lua delete mode 100644 Libs/NickTag-1.0/NickTag-1.0.toc delete mode 100644 Libs/NickTag-1.0/NickTag-1.0.xml delete mode 100644 functions/deathrecap.lua delete mode 100644 functions/spec_augmentation.lua rename images/{BantoBar.blp => BantoBar.tga} (100%) rename images/{atributos_captures.blp => atributos_captures.tga} (100%) rename images/{atributos_icones_misc.blp => atributos_icones_misc.tga} (100%) rename images/{autoshot.blp => autoshot.tga} (100%) rename images/{background.blp => background.tga} (100%) rename images/{bar4.blp => bar4.tga} (100%) rename images/{bar4_glass.blp => bar4_glass.tga} (100%) rename images/{bar4_reverse.blp => bar4_reverse.tga} (100%) rename images/{bar4_vidro.blp => bar4_vidro.tga} (100%) rename images/{bar_detalhes2_end.blp => bar_detalhes2_end.tga} (100%) rename images/{bar_flat.blp => bar_flat.tga} (100%) rename images/{bar_serenity.blp => bar_serenity.tga} (100%) rename images/{bar_skyline.blp => bar_skyline.tga} (100%) create mode 100644 images/bar_textures/bar_of_bars.blp delete mode 100644 images/bar_textures/bar_of_bars.png create mode 100644 images/bar_textures/bar_rounded.blp delete mode 100644 images/bar_textures/bar_rounded.png create mode 100644 images/bar_textures/bar_skyline_compact.blp delete mode 100644 images/bar_textures/bar_skyline_compact.png rename images/{border_1.blp => border_1.tga} (100%) rename images/{border_2.blp => border_2.tga} (100%) rename images/{border_3.blp => border_3.tga} (100%) rename images/{border_welcome.blp => border_welcome.tga} (100%) rename images/{button_disable_overlay.blp => button_disable_overlay.tga} (100%) create mode 100644 images/classes.blp delete mode 100644 images/classes.tga create mode 100644 images/classes_alpha.blp create mode 100644 images/classes_small.blp delete mode 100644 images/classes_small.tga create mode 100644 images/classes_small_alpha.blp delete mode 100644 images/classes_small_alpha.tga create mode 100644 images/classes_small_alpha_bw.blp delete mode 100644 images/classes_small_alpha_bw.tga create mode 100644 images/classes_small_bw.blp delete mode 100644 images/classes_small_bw.tga rename images/{clock.blp => clock.tga} (100%) create mode 100644 images/common-iconmask.blp delete mode 100644 images/common-iconmask.png rename images/{cooltip_selected.blp => cooltip_selected.tga} (100%) rename images/{copy.blp => copy.tga} (100%) rename images/{custom_icones.blp => custom_icones.tga} (100%) rename images/{default_button.blp => default_button.tga} (100%) rename images/{espadas.blp => espadas.tga} (100%) rename images/{highlight_leftright.blp => highlight_leftright.tga} (100%) rename images/{highlight_updown.blp => highlight_updown.tga} (100%) rename images/{icone_bg.blp => icone_bg.tga} (100%) rename images/{icone_bg_fundo.blp => icone_bg_fundo.tga} (100%) rename images/{icones_barra.blp => icones_barra.tga} (100%) rename images/{info_window_damagetaken.blp => info_window_damagetaken.tga} (100%) rename images/{key_alt.blp => key_alt.tga} (100%) rename images/{key_ctrl.blp => key_ctrl.tga} (100%) rename images/{key_shift.blp => key_shift.tga} (100%) rename images/{knob.blp => knob.tga} (100%) create mode 100644 images/masks/white_rounded_512x512.blp delete mode 100644 images/masks/white_rounded_512x512.png rename images/{melee.blp => melee.tga} (100%) rename images/{minimap.blp => minimap.tga} (100%) rename images/{modo_icones.blp => modo_icones.tga} (100%) rename images/{overlay_detalhes.blp => overlay_detalhes.tga} (100%) rename images/{report_button.blp => report_button.tga} (100%) rename images/{report_frame_icons.blp => report_frame_icons.tga} (100%) rename images/{reset_button2.blp => reset_button2.tga} (100%) rename images/skins/{classic_skin.tga => classic_skin.blp} (100%) rename images/skins/{classic_skin_v1.tga => classic_skin_v1.blp} (100%) delete mode 100644 images/skins/darktheme.blp rename images/skins/{default_skin.tga => default_skin.blp} (100%) rename images/skins/{flat_skin.tga => flat_skin.blp} (100%) rename images/skins/{overwatch.tga => overwatch.blp} (100%) rename images/skins/{simplygray_skin.tga => simplygray_skin.blp} (100%) rename images/{small_icons.blp => small_icons.tga} (100%) create mode 100644 images/spells/burning_frenzy_tier4.blp delete mode 100644 images/spells/burning_frenzy_tier4.jpg create mode 100644 images/spells/elf_face_right.blp delete mode 100644 images/spells/elf_face_right.jpg create mode 100644 images/spells/eruption_tier4.blp delete mode 100644 images/spells/eruption_tier4.jpg create mode 100644 images/spells/lil_dragon_left.blp delete mode 100644 images/spells/lil_dragon_left.jpg create mode 100644 images/spells/prescience_time.blp delete mode 100644 images/spells/prescience_time.jpg create mode 100644 images/spells/spell_druid_bearhug_blackwhite.blp delete mode 100644 images/spells/spell_druid_bearhug_blackwhite.jpg rename images/{toolbar_icons.blp => toolbar_icons.tga} (100%) rename images/{toolbar_icons_shadow.blp => toolbar_icons_shadow.tga} (100%) rename images/{verticalline.blp => verticalline.tga} (100%) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 88123a7d..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -name: Bug report -about: Create a bug report -title: '' -labels: '' -assignees: '' - ---- - -### **Before Start!** -**Make sure the bug also happen when Details! is the only addon enabled.** - -**Game and Details! version** -Use /details to grab these two. - - -**Describe the bug** -- Steps to Reproduce (what did you do to make the bug happen): - -- Result (what happens when you follow the steps above): - -- Expected (what you think the expected behavior would be when following the steps): - -- When the bug started (a date, wow path release, details update, etc)? - -- Additional information: - - -**Lua Error** -Post here lua errors, if you aren't getting any, use */console scriptErrors 1* - - -**Screenshots** -Post images of the bug if necessary. - - -**Combat Log** -Include a link to a combatlog file if the error is about not detecting a skill, usable item or item proc. -The log can be as simple as hitting a mob with white damage and using the item/skill. - - -**Other Information** -If necessary, add more info here. diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 00000000..cb7b4328 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,77 @@ +name: "Bug Report" +description: Create a report to help us improve this addon +labels: '🐛 Bug' +body: +- type: markdown + attributes: + value: | + Please search for existing issues before creating a new one. + +- type: textarea + attributes: + label: Description + description: What did you expect to happen and what happened instead? + validations: + required: true + +- type: dropdown + id: flavor + attributes: + label: Realm + description: What realm did this occur on? + options: + - Area 52 (Default) + - Seasonal + - Grizzly Hills + - Rexxar + - Other + validations: + required: true + +- type: checkboxes + id: testing + attributes: + label: Tested with only this addon + description: Did you try having just this addon as the only enabled addon and everything else disabled? + options: + - label: "Yes" + - label: "No" + validations: + required: true + +- type: textarea + attributes: + label: Lua Error + description: | + Do you have an error log of what happened? If you don't see any errors, make sure that error reporting is enabled (`/console scriptErrors 1`) + validations: + required: false + +- type: textarea + attributes: + label: Reproduction Steps + description: Please list out the steps to reproduce your bug. + placeholder: | + 1. Go to '...' + 2. Click on '....' + 3. Scroll down to '....' + 4. See error + validations: + required: true + +- type: input + attributes: + label: Last Good Version + description: | + Was it working in a previous version? If yes, which update did it stop working? If you don't know, when was the last date you were aware it was working + placeholder: "MM/DD/YYYY" + validations: + required: false + +- type: textarea + attributes: + label: Screenshots + description: If applicable, add screenshots to help explain your problem. + placeholder: Click here to attach your screenshots via the editor button in the top right. + validations: + required: false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..ec4bb386 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..bbcbbe7d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/PULL_REQUEST_TEPMLATE.md b/.github/PULL_REQUEST_TEPMLATE.md new file mode 100644 index 00000000..30d2afab --- /dev/null +++ b/.github/PULL_REQUEST_TEPMLATE.md @@ -0,0 +1,28 @@ +# Description + +Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. + +Fixes #(issue) + +## Type of change + +Please delete options that are not relevant. + +- [ ] Bug fix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) + +## How Has This Been Tested + +Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration + +- [ ] Test A +- [ ] Test B + +## Checklist + + +- [ ] I have performed a self-review of my own code +- [ ] I have commented my code, particularly in hard-to-understand areas + + \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 24e76a46..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Release AddOn - -#on: [push] -on: - push: - branches: - - master - tags: - - '**' - -env: - CF_API_KEY: ${{ secrets.CF_API_KEY }} - WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }} - -jobs: -# full_package_release: -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v3 -# with: -# fetch-depth: 0 - -# - uses: BigWigsMods/packager@v2 - - standalone_release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - uses: BigWigsMods/packager@v2 - with: - pkgmeta: package_sa.pkgmeta - args: -a qv63A7Gb diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 395319e2..00000000 --- a/.gitignore +++ /dev/null @@ -1,67 +0,0 @@ -images/NoDetails/ -otherplugins/ -Blizzard_APIDocumentationGenerated/ -.tmp.driveupload/ -core/parser - FF.lua -core/parser_original.lua -core/windows - Copy.lua -functions/savedata - Copy.lua -*.psd -Libs/DF/all_addons.blp -Libs/DF/all_addons.tga -Libs/DF/background.blp -Libs/DF/border_1.blp -Libs/DF/border_2.blp -Libs/DF/border_3.blp -Libs/DF/cooltip_background.blp -Libs/DF/feedback_sites.blp -Libs/DF/icons.blp -Libs/DF/mail.blp -plugins/Details_EncounterDetails/images/boss_icons.png -locales/Details-zhTW.lua -locales/Details-zhCN.lua -locales/Details-ruRU.lua -locales/Details-ptBR.lua -locales/Details-koKR.lua -locales/Details-itIT.lua -locales/Details-frFR.lua -locales/Details-esMX.lua -locales/Details-esES.lua -locales/Details-enUS.lua -locales/Details-deDE.lua -Libs/LibTranslit/.pkgmeta -a.lua -functions/pack2.lua -*.json -*.afphoto -wowapi.lua -plugins/Details_TinyThreat/Details_TinyThreat_original.lua -Descriptions.lua -plugins/Details_EncounterDetails/.github/workflows/release.yml -plugins/Details_RaidCheck/.github/workflows/release.yml -plugins/Details_Streamer/.github/workflows/release.yml -plugins/Details_TinyThreat/.github/workflows/release.yml -plugins/Details_Vanguard/.github/workflows/release.yml -photoshop/ten_years_skin.tga -*.yml -plugins/Details_EncounterDetails/Libs/LibLuaServer/LuaServerDefinitions.lua -plugins/Details_EncounterDetails/Definitions.lua -*.afphoto~lock~ -annotations.txt -plugins/Details_Compare2/Definitions.lua -plugins/Details_Compare2/DF/ -plugins/Details_Compare2/LibLuaServer/ -images/castlog_image.png -images/castlog_image2.png -images/castlog_image3.png -images/castlog_raidcooldowns.png -images/chartviewer.png -images/getalpha_version.png -images/icons2.png -images/myself.png -images/package_addons.png -images/patreon_stuff.png -images/plater_darktheme_skin.png -images/Tutorial/DetailsMainWindow.png -Details.cpp -images/DETAILS_NEWS.png diff --git a/.pkgmeta b/.pkgmeta deleted file mode 100644 index cd0c7542..00000000 --- a/.pkgmeta +++ /dev/null @@ -1,10 +0,0 @@ -package-as: Details - -move-folders: - Details/plugins/Details_EncounterDetails: Details_EncounterDetails - Details/plugins/Details_TinyThreat: Details_TinyThreat - Details/plugins/Details_Vanguard: Details_Vanguard - Details/plugins/Details_DataStorage: Details_DataStorage - Details/plugins/Details_RaidCheck: Details_RaidCheck - Details/plugins/Details_Streamer: Details_Streamer - Details/plugins/Details_Compare2: Details_Compare2 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..378d393a --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,8 @@ +# Details! Damage Meter + +## [Details.20240508.12717.156](https://github.com/Tercioo/Details-Damage-Meter/tree/Details.20240508.12717.156) (2024-05-08) +[Full Changelog](https://github.com/Tercioo/Details-Damage-Meter/compare/Details.20240407.12708.156...Details.20240508.12717.156) + +- Version Bump +- Fixed an error when manually selection the tooltip anchor position +- Plugins toc Update diff --git a/Definitions.lua b/Definitions.lua index e13b1d06..96e9d65c 100644 --- a/Definitions.lua +++ b/Definitions.lua @@ -437,7 +437,6 @@ ---@field damage_taken number amount of damage the actor took during the segment ---@field damage_from table store the name of the actors which damaged the actor, format: [actorName] = true ---@field totalabsorbed number amount of damage dealt by the actor by got absorbed by the target, this is a "ABSORB" type of miss but still counts as damage done ----@field augmentedSpellsContainer spellcontainer ---@class actorheal : actor ---@field healing_taken number amount of healing the actor took during the segment diff --git a/Details.toc b/Details.toc index 0b76924f..1abbc382 100644 --- a/Details.toc +++ b/Details.toc @@ -1,12 +1,11 @@ ## Interface: 100207 -## Interface-Cata: 40400 ## Title: Details! Damage Meter ## Notes: Essential tool to impress that chick in your raid. ## Notes-ruRU: Незаменимый инструмент, чтобы произвести впечатление на цыпочку в вашем рейде. ## SavedVariables: _detalhes_global, __details_backup, __details_debug ## SavedVariablesPerCharacter: _detalhes_database ## OptionalDeps: Ace3, LibSharedMedia-3.0, LibWindow-1.1, LibDBIcon-1.0, NickTag-1.0, LibDataBroker-1.1, LibGraph-2.0 -## Version: #@project-version@ +## Version: #Details.20240508.12717.156 ## IconTexture: Interface\AddOns\Details\images\minimap ## X-Curse-Project-ID: 61284 @@ -66,7 +65,6 @@ functions\pack.lua functions\immersion.lua functions\schedules.lua functions\autorun.lua -functions\deathrecap.lua functions\plater.lua functions\deathmenu.lua functions\macros.lua @@ -165,7 +163,6 @@ core\network.lua core\parser.lua -functions\spec_augmentation.lua functions\loaddata.lua startup.lua diff --git a/Details_Cata.toc b/Details_Cata.toc deleted file mode 100644 index 999536a6..00000000 --- a/Details_Cata.toc +++ /dev/null @@ -1,172 +0,0 @@ -## Interface: 40400 -## Title: Details! Damage Meter -## Notes: Essential tool to impress that chick in your raid. -## Notes-ruRU: Незаменимый инструмент, чтобы произвести впечатление на цыпочку в вашем рейде. -## SavedVariables: _detalhes_global, __details_backup, __details_debug -## SavedVariablesPerCharacter: _detalhes_database -## OptionalDeps: Ace3, LibSharedMedia-3.0, LibWindow-1.1, LibDBIcon-1.0, NickTag-1.0, LibDataBroker-1.1, LibGraph-2.0 -## Version: #@project-version@ -## IconTexture: Interface\AddOns\Details\images\minimap - -## X-Curse-Project-ID: 61284 -## X-Wago-ID: 25NRDlK3 - -#@no-lib-strip@ -Libs\libs.xml -#@end-no-lib-strip@ - -locales\Details-enUS.lua -locales\Details-deDE.lua -locales\Details-esES.lua -locales\Details-esMX.lua -locales\Details-frFR.lua -locales\Details-itIT.lua -locales\Details-koKR.lua -locales\Details-ptBR.lua -locales\Details-ruRU.lua -locales\Details-zhCN.lua -locales\Details-zhTW.lua - -Definitions.lua - -boot.lua -indent.lua -core\util.lua -functions\mixin.lua -API.lua -textures.lua - -functions\ej_cache.lua -functions\events.lua -functions\private.lua -functions\profiles.lua -functions\hooks.lua -functions\bossmods.lua -functions\coach.lua -functions\skins.lua -functions\boss.lua -functions\spells.lua -functions\classes.lua -functions\buff.lua -functions\spellcache.lua -functions\attributes.lua -functions\savedata.lua -functions\slash.lua -functions\playerclass.lua -functions\timedata.lua -functions\currentdps.lua -functions\report.lua -functions\rowanimation.lua -functions\raidinfo.lua -functions\mythicdungeon\mythicdungeon.lua -functions\mythicdungeon\data_capture.lua -functions\mythicdungeon\segments.lua -functions\pack.lua -functions\immersion.lua -functions\schedules.lua -functions\autorun.lua -functions\deathrecap.lua -functions\plater.lua -functions\deathmenu.lua -functions\macros.lua -functions\testbars.lua -functions\editmode.lua -functions\warcraftlogs.lua -functions\textures.lua -functions\journal.lua - -core\aura_scan.lua -core\timemachine.lua - -frames\anime.lua -frames\anime.xml -frames\fw_mods.lua -frames\toolbar_button.xml - -frames\window_copy.lua -frames\window_options2.lua -frames\window_options2_sections.lua -frames\window_api.lua -frames\window_cdtracker.lua -frames\window_breakdown\window_playerbreakdown.lua -frames\window_breakdown\window_playerbreakdown_list.lua -frames\window_breakdown\window_playerbreakdown_compare.lua -frames\window_breakdown\window_playerbreakdown_avoidance.lua -frames\window_breakdown\window_playerbreakdown_auras.lua -frames\window_breakdown\window_playerbreakdown_spells.lua -frames\window_breakdown\window_playerbreakdown_spells_options.lua -frames\window_breakdown\breakdown_spells_genericframes.lua -frames\window_breakdown\breakdown_spells_spellframes.lua -frames\window_breakdown\breakdown_spells_targetframes.lua -frames\window_breakdown\breakdown_spells_phaseframes.lua -frames\window_mythicplus\window_mythic_breakdown.lua -frames\window_mythicplus\window_end_of_run.lua -frames\window_mythicplus\window_chart.lua -frames\window_report.lua -frames\window_main.lua -frames\window_custom.lua -frames\window_welcome.lua -frames\window_news.lua -frames\window_wa.lua -frames\window_forge.lua -frames\window_spellcategory.lua -frames\window_switch.lua -frames\window_scrolldamage.lua -frames\window_dump.lua -frames\window_eventtracker.lua -frames\window_currentdps.lua -frames\window_benchmark.lua -frames\window_runcode.lua -frames\window_plater.lua -frames\window_macros.lua -frames\window_profiler.lua -frames\window_rowtexteditor.lua -frames\window_brokertexteditor.lua -frames\window_bookmark.lua -frames\window_classcolor.lua -frames\window_statistics.lua -frames\window_aura_tracker.lua - -classes\class_error.lua -classes\class_spelltable.lua -classes\class_combat.lua -classes\class_damage.lua -classes\class_spelldamage.lua -classes\class_heal.lua -classes\class_spellhealing.lua -classes\class_resources.lua -classes\class_spellresources.lua -classes\class_utility.lua -classes\class_spellutility.lua -classes\include_instance.lua -classes\class_instance.lua - -classes\class_custom.lua -classes\custom_damagedone.lua -classes\custom_healingdone.lua - -core\control.lua - -classes\container_actors.lua -classes\container_spells.lua -classes\container_segments.lua -classes\container_pets.lua - -core\plugins.lua -core\plugins_toolbar.lua -core\plugins_statusbar.lua -core\plugins_raid.lua -core\plugins_solo.lua -core\gears.lua -core\windows.lua -core\meta.lua -core\network.lua - -core\parser.lua - -functions\spec_augmentation.lua -functions\loaddata.lua - -startup.lua - -functions\api2.lua diff --git a/Details_Classic.toc b/Details_Classic.toc deleted file mode 100644 index 4392dea5..00000000 --- a/Details_Classic.toc +++ /dev/null @@ -1,167 +0,0 @@ -## Interface: 11502 -## Title: Details! Damage Meter -## Notes: Essential tool to impress that chick in your raid. -## Notes-ruRU: Незаменимый инструмент, чтобы произвести впечатление на цыпочку в вашем рейде. -## SavedVariables: _detalhes_global, __details_backup -## SavedVariablesPerCharacter: _detalhes_database -## OptionalDeps: Ace3, LibSharedMedia-3.0, LibWindow-1.1, LibDBIcon-1.0, NickTag-1.0, LibDataBroker-1.1, LibItemUpgradeInfo-1.0, LibGroupInSpecT-1.1, LibGraph-2.0 -## Version: #@project-version@ -## IconTexture: Interface\AddOns\Details\images\minimap - -#@no-lib-strip@ -Libs\libs.xml -#@end-no-lib-strip@ - -locales\Details-enUS.lua -locales\Details-deDE.lua -locales\Details-esES.lua -locales\Details-esMX.lua -locales\Details-frFR.lua -locales\Details-itIT.lua -locales\Details-koKR.lua -locales\Details-ptBR.lua -locales\Details-ruRU.lua -locales\Details-zhCN.lua -locales\Details-zhTW.lua - -Definitions.lua - -boot.lua -indent.lua -core\util.lua -functions\mixin.lua -API.lua -textures.lua - -functions\ej_cache.lua -functions\private.lua -functions\profiles.lua -functions\hooks.lua -functions\bossmods.lua -functions\coach.lua -functions\skins.lua -functions\boss.lua -functions\spells.lua -functions\events.lua -functions\classes.lua -functions\buff.lua -functions\spellcache.lua -functions\attributes.lua -functions\savedata.lua -functions\slash.lua -functions\playerclass.lua -functions\timedata.lua -functions\currentdps.lua -functions\report.lua -functions\rowanimation.lua -functions\raidinfo.lua -functions\mythicdungeon\mythicdungeon.lua -functions\mythicdungeon\data_capture.lua -functions\mythicdungeon\segments.lua -functions\pack.lua -functions\immersion.lua -functions\schedules.lua -functions\autorun.lua -functions\deathrecap.lua -functions\plater.lua -functions\deathmenu.lua -functions\macros.lua -functions\testbars.lua -functions\warcraftlogs.lua -functions\textures.lua - -core\aura_scan.lua -core\timemachine.lua - -frames\anime.lua -frames\anime.xml -frames\fw_mods.lua -frames\toolbar_button.xml - -frames\window_copy.lua -frames\window_options2.lua -frames\window_options2_sections.lua -frames\window_api.lua -frames\window_cdtracker.lua -frames\window_breakdown\window_playerbreakdown.lua -frames\window_breakdown\window_playerbreakdown_list.lua -frames\window_breakdown\window_playerbreakdown_compare.lua -frames\window_breakdown\window_playerbreakdown_avoidance.lua -frames\window_breakdown\window_playerbreakdown_auras.lua -frames\window_breakdown\window_playerbreakdown_spells.lua -frames\window_breakdown\window_playerbreakdown_spells_options.lua -frames\window_breakdown\breakdown_spells_genericframes.lua -frames\window_breakdown\breakdown_spells_spellframes.lua -frames\window_breakdown\breakdown_spells_targetframes.lua -frames\window_breakdown\breakdown_spells_phaseframes.lua -frames\window_mythicplus\window_mythic_breakdown.lua -frames\window_mythicplus\window_end_of_run.lua -frames\window_mythicplus\window_chart.lua -frames\window_report.lua -frames\window_main.lua -frames\window_custom.lua -frames\window_welcome.lua -frames\window_news.lua -frames\window_wa.lua -frames\window_spellcategory.lua -frames\window_forge.lua -frames\window_switch.lua -frames\window_scrolldamage.lua -frames\window_dump.lua -frames\window_eventtracker.lua -frames\window_currentdps.lua -frames\window_benchmark.lua -frames\window_runcode.lua -frames\window_plater.lua -frames\window_macros.lua -frames\window_profiler.lua -frames\window_rowtexteditor.lua -frames\window_brokertexteditor.lua -frames\window_bookmark.lua -frames\window_classcolor.lua -frames\window_statistics.lua - -classes\class_error.lua -classes\class_spelltable.lua -classes\class_combat.lua -classes\class_damage.lua -classes\class_spelldamage.lua -classes\class_heal.lua -classes\class_spellhealing.lua -classes\class_resources.lua -classes\class_spellresources.lua -classes\class_utility.lua -classes\class_spellutility.lua -classes\include_instance.lua -classes\class_instance.lua - -classes\class_custom.lua -classes\custom_damagedone.lua -classes\custom_healingdone.lua - -core\control.lua - -classes\container_actors.lua -classes\container_spells.lua -classes\container_segments.lua -classes\container_pets.lua - -core\plugins.lua -core\plugins_toolbar.lua -core\plugins_statusbar.lua -core\plugins_raid.lua -core\plugins_solo.lua -core\gears.lua -core\windows.lua -core\meta.lua -core\network.lua - -core\parser.lua -#core\parser_timewalk.lua - -functions\spec_augmentation.lua -functions\loaddata.lua - -startup.lua - -functions\api2.lua diff --git a/Details_Wrath.toc b/Details_Wrath.toc deleted file mode 100644 index 2db94203..00000000 --- a/Details_Wrath.toc +++ /dev/null @@ -1,167 +0,0 @@ -## Interface: 30403 -## Title: Details! Damage Meter -## Notes: Essential tool to impress that chick in your raid. -## Notes-ruRU: Незаменимый инструмент, чтобы произвести впечатление на цыпочку в вашем рейде. -## SavedVariables: _detalhes_global, __details_backup -## SavedVariablesPerCharacter: _detalhes_database -## OptionalDeps: Ace3, LibSharedMedia-3.0, LibWindow-1.1, LibDBIcon-1.0, NickTag-1.0, LibDataBroker-1.1, LibItemUpgradeInfo-1.0, LibGroupInSpecT-1.1, LibGraph-2.0 -## Version: #@project-version@ -## IconTexture: Interface\AddOns\Details\images\minimap - -#@no-lib-strip@ -Libs\libs.xml -#@end-no-lib-strip@ - -locales\Details-enUS.lua -locales\Details-deDE.lua -locales\Details-esES.lua -locales\Details-esMX.lua -locales\Details-frFR.lua -locales\Details-itIT.lua -locales\Details-koKR.lua -locales\Details-ptBR.lua -locales\Details-ruRU.lua -locales\Details-zhCN.lua -locales\Details-zhTW.lua - -Definitions.lua - -boot.lua -indent.lua -core\util.lua -functions\mixin.lua -API.lua -textures.lua - -functions\ej_cache.lua -functions\private.lua -functions\profiles.lua -functions\hooks.lua -functions\bossmods.lua -functions\coach.lua -functions\skins.lua -functions\boss.lua -functions\spells.lua -functions\events.lua -functions\classes.lua -functions\buff.lua -functions\spellcache.lua -functions\attributes.lua -functions\savedata.lua -functions\slash.lua -functions\playerclass.lua -functions\timedata.lua -functions\currentdps.lua -functions\report.lua -functions\rowanimation.lua -functions\raidinfo.lua -functions\mythicdungeon\mythicdungeon.lua -functions\mythicdungeon\data_capture.lua -functions\mythicdungeon\segments.lua -functions\pack.lua -functions\immersion.lua -functions\schedules.lua -functions\autorun.lua -functions\deathrecap.lua -functions\plater.lua -functions\deathmenu.lua -functions\macros.lua -functions\testbars.lua -functions\warcraftlogs.lua -functions\textures.lua - -core\aura_scan.lua -core\timemachine.lua - -frames\anime.lua -frames\anime.xml -frames\fw_mods.lua -frames\toolbar_button.xml - -frames\window_copy.lua -frames\window_options2.lua -frames\window_options2_sections.lua -frames\window_api.lua -frames\window_cdtracker.lua -frames\window_breakdown\window_playerbreakdown.lua -frames\window_breakdown\window_playerbreakdown_list.lua -frames\window_breakdown\window_playerbreakdown_compare.lua -frames\window_breakdown\window_playerbreakdown_avoidance.lua -frames\window_breakdown\window_playerbreakdown_auras.lua -frames\window_breakdown\window_playerbreakdown_spells.lua -frames\window_breakdown\window_playerbreakdown_spells_options.lua -frames\window_breakdown\breakdown_spells_genericframes.lua -frames\window_breakdown\breakdown_spells_spellframes.lua -frames\window_breakdown\breakdown_spells_targetframes.lua -frames\window_breakdown\breakdown_spells_phaseframes.lua -frames\window_mythicplus\window_mythic_breakdown.lua -frames\window_mythicplus\window_end_of_run.lua -frames\window_mythicplus\window_chart.lua -frames\window_report.lua -frames\window_main.lua -frames\window_custom.lua -frames\window_welcome.lua -frames\window_news.lua -frames\window_wa.lua -frames\window_spellcategory.lua -frames\window_forge.lua -frames\window_switch.lua -frames\window_scrolldamage.lua -frames\window_dump.lua -frames\window_eventtracker.lua -frames\window_currentdps.lua -frames\window_benchmark.lua -frames\window_runcode.lua -frames\window_plater.lua -frames\window_macros.lua -frames\window_profiler.lua -frames\window_rowtexteditor.lua -frames\window_brokertexteditor.lua -frames\window_bookmark.lua -frames\window_classcolor.lua -frames\window_statistics.lua - -classes\class_error.lua -classes\class_spelltable.lua -classes\class_combat.lua -classes\class_damage.lua -classes\class_spelldamage.lua -classes\class_heal.lua -classes\class_spellhealing.lua -classes\class_resources.lua -classes\class_spellresources.lua -classes\class_utility.lua -classes\class_spellutility.lua -classes\include_instance.lua -classes\class_instance.lua - -classes\class_custom.lua -classes\custom_damagedone.lua -classes\custom_healingdone.lua - -core\control.lua - -classes\container_actors.lua -classes\container_spells.lua -classes\container_segments.lua -classes\container_pets.lua - -core\plugins.lua -core\plugins_toolbar.lua -core\plugins_statusbar.lua -core\plugins_raid.lua -core\plugins_solo.lua -core\gears.lua -core\windows.lua -core\meta.lua -core\network.lua - -core\parser.lua -#core\parser_timewalk.lua - -functions\spec_augmentation.lua -functions\loaddata.lua - -startup.lua - -functions\api2.lua diff --git a/Libs/AceAddon-3.0/AceAddon-3.0.lua b/Libs/AceAddon-3.0/AceAddon-3.0.lua deleted file mode 100644 index 0ea93d19..00000000 --- a/Libs/AceAddon-3.0/AceAddon-3.0.lua +++ /dev/null @@ -1,649 +0,0 @@ ---- **AceAddon-3.0** provides a template for creating addon objects. --- It'll provide you with a set of callback functions that allow you to simplify the loading --- process of your addon.\\ --- Callbacks provided are:\\ --- * **OnInitialize**, which is called directly after the addon is fully loaded. --- * **OnEnable** which gets called during the PLAYER_LOGIN event, when most of the data provided by the game is already present. --- * **OnDisable**, which is only called when your addon is manually being disabled. --- @usage --- -- A small (but complete) addon, that doesn't do anything, --- -- but shows usage of the callbacks. --- local MyAddon = LibStub("AceAddon-3.0"):NewAddon("MyAddon") --- --- function MyAddon:OnInitialize() --- -- do init tasks here, like loading the Saved Variables, --- -- or setting up slash commands. --- end --- --- function MyAddon:OnEnable() --- -- Do more initialization here, that really enables the use of your addon. --- -- Register Events, Hook functions, Create Frames, Get information from --- -- the game that wasn't available in OnInitialize --- end --- --- function MyAddon:OnDisable() --- -- Unhook, Unregister Events, Hide frames that you created. --- -- You would probably only use an OnDisable if you want to --- -- build a "standby" mode, or be able to toggle modules on/off. --- end --- @class file --- @name AceAddon-3.0.lua --- @release $Id: AceAddon-3.0.lua 1284 2022-09-25 09:15:30Z nevcairiel $ - -local MAJOR, MINOR = "AceAddon-3.0", 13 -local AceAddon, oldminor = LibStub:NewLibrary(MAJOR, MINOR) - -if not AceAddon then return end -- No Upgrade needed. - -AceAddon.frame = AceAddon.frame or CreateFrame("Frame", "AceAddon30Frame") -- Our very own frame -AceAddon.addons = AceAddon.addons or {} -- addons in general -AceAddon.statuses = AceAddon.statuses or {} -- statuses of addon. -AceAddon.initializequeue = AceAddon.initializequeue or {} -- addons that are new and not initialized -AceAddon.enablequeue = AceAddon.enablequeue or {} -- addons that are initialized and waiting to be enabled -AceAddon.embeds = AceAddon.embeds or setmetatable({}, {__index = function(tbl, key) tbl[key] = {} return tbl[key] end }) -- contains a list of libraries embedded in an addon - --- Lua APIs -local tinsert, tconcat, tremove = table.insert, table.concat, table.remove -local fmt, tostring = string.format, tostring -local select, pairs, next, type, unpack = select, pairs, next, type, unpack -local loadstring, assert, error = loadstring, assert, error -local setmetatable, getmetatable, rawset, rawget = setmetatable, getmetatable, rawset, rawget - ---[[ - xpcall safecall implementation -]] -local xpcall = xpcall - -local function errorhandler(err) - return geterrorhandler()(err) -end - -local function safecall(func, ...) - -- we check to see if the func is passed is actually a function here and don't error when it isn't - -- this safecall is used for optional functions like OnInitialize OnEnable etc. When they are not - -- present execution should continue without hinderance - if type(func) == "function" then - return xpcall(func, errorhandler, ...) - end -end - --- local functions that will be implemented further down -local Enable, Disable, EnableModule, DisableModule, Embed, NewModule, GetModule, GetName, SetDefaultModuleState, SetDefaultModuleLibraries, SetEnabledState, SetDefaultModulePrototype - --- used in the addon metatable -local function addontostring( self ) return self.name end - --- Check if the addon is queued for initialization -local function queuedForInitialization(addon) - for i = 1, #AceAddon.initializequeue do - if AceAddon.initializequeue[i] == addon then - return true - end - end - return false -end - ---- Create a new AceAddon-3.0 addon. --- Any libraries you specified will be embeded, and the addon will be scheduled for --- its OnInitialize and OnEnable callbacks. --- The final addon object, with all libraries embeded, will be returned. --- @paramsig [object ,]name[, lib, ...] --- @param object Table to use as a base for the addon (optional) --- @param name Name of the addon object to create --- @param lib List of libraries to embed into the addon --- @usage --- -- Create a simple addon object --- MyAddon = LibStub("AceAddon-3.0"):NewAddon("MyAddon", "AceEvent-3.0") --- --- -- Create a Addon object based on the table of a frame --- local MyFrame = CreateFrame("Frame") --- MyAddon = LibStub("AceAddon-3.0"):NewAddon(MyFrame, "MyAddon", "AceEvent-3.0") -function AceAddon:NewAddon(objectorname, ...) - local object,name - local i=1 - if type(objectorname)=="table" then - object=objectorname - name=... - i=2 - else - name=objectorname - end - if type(name)~="string" then - error(("Usage: NewAddon([object,] name, [lib, lib, lib, ...]): 'name' - string expected got '%s'."):format(type(name)), 2) - end - if self.addons[name] then - error(("Usage: NewAddon([object,] name, [lib, lib, lib, ...]): 'name' - Addon '%s' already exists."):format(name), 2) - end - - object = object or {} - object.name = name - - local addonmeta = {} - local oldmeta = getmetatable(object) - if oldmeta then - for k, v in pairs(oldmeta) do addonmeta[k] = v end - end - addonmeta.__tostring = addontostring - - setmetatable( object, addonmeta ) - self.addons[name] = object - object.modules = {} - object.orderedModules = {} - object.defaultModuleLibraries = {} - Embed( object ) -- embed NewModule, GetModule methods - self:EmbedLibraries(object, select(i,...)) - - -- add to queue of addons to be initialized upon ADDON_LOADED - tinsert(self.initializequeue, object) - return object -end - - ---- Get the addon object by its name from the internal AceAddon registry. --- Throws an error if the addon object cannot be found (except if silent is set). --- @param name unique name of the addon object --- @param silent if true, the addon is optional, silently return nil if its not found --- @usage --- -- Get the Addon --- MyAddon = LibStub("AceAddon-3.0"):GetAddon("MyAddon") -function AceAddon:GetAddon(name, silent) - if not silent and not self.addons[name] then - error(("Usage: GetAddon(name): 'name' - Cannot find an AceAddon '%s'."):format(tostring(name)), 2) - end - return self.addons[name] -end - --- - Embed a list of libraries into the specified addon. --- This function will try to embed all of the listed libraries into the addon --- and error if a single one fails. --- --- **Note:** This function is for internal use by :NewAddon/:NewModule --- @paramsig addon, [lib, ...] --- @param addon addon object to embed the libs in --- @param lib List of libraries to embed into the addon -function AceAddon:EmbedLibraries(addon, ...) - for i=1,select("#", ... ) do - local libname = select(i, ...) - self:EmbedLibrary(addon, libname, false, 4) - end -end - --- - Embed a library into the addon object. --- This function will check if the specified library is registered with LibStub --- and if it has a :Embed function to call. It'll error if any of those conditions --- fails. --- --- **Note:** This function is for internal use by :EmbedLibraries --- @paramsig addon, libname[, silent[, offset]] --- @param addon addon object to embed the library in --- @param libname name of the library to embed --- @param silent marks an embed to fail silently if the library doesn't exist (optional) --- @param offset will push the error messages back to said offset, defaults to 2 (optional) -function AceAddon:EmbedLibrary(addon, libname, silent, offset) - local lib = LibStub:GetLibrary(libname, true) - if not lib and not silent then - error(("Usage: EmbedLibrary(addon, libname, silent, offset): 'libname' - Cannot find a library instance of %q."):format(tostring(libname)), offset or 2) - elseif lib and type(lib.Embed) == "function" then - lib:Embed(addon) - tinsert(self.embeds[addon], libname) - return true - elseif lib then - error(("Usage: EmbedLibrary(addon, libname, silent, offset): 'libname' - Library '%s' is not Embed capable"):format(libname), offset or 2) - end -end - ---- Return the specified module from an addon object. --- Throws an error if the addon object cannot be found (except if silent is set) --- @name //addon//:GetModule --- @paramsig name[, silent] --- @param name unique name of the module --- @param silent if true, the module is optional, silently return nil if its not found (optional) --- @usage --- -- Get the Addon --- MyAddon = LibStub("AceAddon-3.0"):GetAddon("MyAddon") --- -- Get the Module --- MyModule = MyAddon:GetModule("MyModule") -function GetModule(self, name, silent) - if not self.modules[name] and not silent then - error(("Usage: GetModule(name, silent): 'name' - Cannot find module '%s'."):format(tostring(name)), 2) - end - return self.modules[name] -end - -local function IsModuleTrue(self) return true end - ---- Create a new module for the addon. --- The new module can have its own embeded libraries and/or use a module prototype to be mixed into the module.\\ --- A module has the same functionality as a real addon, it can have modules of its own, and has the same API as --- an addon object. --- @name //addon//:NewModule --- @paramsig name[, prototype|lib[, lib, ...]] --- @param name unique name of the module --- @param prototype object to derive this module from, methods and values from this table will be mixed into the module (optional) --- @param lib List of libraries to embed into the addon --- @usage --- -- Create a module with some embeded libraries --- MyModule = MyAddon:NewModule("MyModule", "AceEvent-3.0", "AceHook-3.0") --- --- -- Create a module with a prototype --- local prototype = { OnEnable = function(self) print("OnEnable called!") end } --- MyModule = MyAddon:NewModule("MyModule", prototype, "AceEvent-3.0", "AceHook-3.0") -function NewModule(self, name, prototype, ...) - if type(name) ~= "string" then error(("Usage: NewModule(name, [prototype, [lib, lib, lib, ...]): 'name' - string expected got '%s'."):format(type(name)), 2) end - if type(prototype) ~= "string" and type(prototype) ~= "table" and type(prototype) ~= "nil" then error(("Usage: NewModule(name, [prototype, [lib, lib, lib, ...]): 'prototype' - table (prototype), string (lib) or nil expected got '%s'."):format(type(prototype)), 2) end - - if self.modules[name] then error(("Usage: NewModule(name, [prototype, [lib, lib, lib, ...]): 'name' - Module '%s' already exists."):format(name), 2) end - - -- modules are basically addons. We treat them as such. They will be added to the initializequeue properly as well. - -- NewModule can only be called after the parent addon is present thus the modules will be initialized after their parent is. - local module = AceAddon:NewAddon(fmt("%s_%s", self.name or tostring(self), name)) - - module.IsModule = IsModuleTrue - module:SetEnabledState(self.defaultModuleState) - module.moduleName = name - - if type(prototype) == "string" then - AceAddon:EmbedLibraries(module, prototype, ...) - else - AceAddon:EmbedLibraries(module, ...) - end - AceAddon:EmbedLibraries(module, unpack(self.defaultModuleLibraries)) - - if not prototype or type(prototype) == "string" then - prototype = self.defaultModulePrototype or nil - end - - if type(prototype) == "table" then - local mt = getmetatable(module) - mt.__index = prototype - setmetatable(module, mt) -- More of a Base class type feel. - end - - safecall(self.OnModuleCreated, self, module) -- Was in Ace2 and I think it could be a cool thing to have handy. - self.modules[name] = module - tinsert(self.orderedModules, module) - - return module -end - ---- Returns the real name of the addon or module, without any prefix. --- @name //addon//:GetName --- @paramsig --- @usage --- print(MyAddon:GetName()) --- -- prints "MyAddon" -function GetName(self) - return self.moduleName or self.name -end - ---- Enables the Addon, if possible, return true or false depending on success. --- This internally calls AceAddon:EnableAddon(), thus dispatching a OnEnable callback --- and enabling all modules of the addon (unless explicitly disabled).\\ --- :Enable() also sets the internal `enableState` variable to true --- @name //addon//:Enable --- @paramsig --- @usage --- -- Enable MyModule --- MyAddon = LibStub("AceAddon-3.0"):GetAddon("MyAddon") --- MyModule = MyAddon:GetModule("MyModule") --- MyModule:Enable() -function Enable(self) - self:SetEnabledState(true) - - -- nevcairiel 2013-04-27: don't enable an addon/module if its queued for init still - -- it'll be enabled after the init process - if not queuedForInitialization(self) then - return AceAddon:EnableAddon(self) - end -end - ---- Disables the Addon, if possible, return true or false depending on success. --- This internally calls AceAddon:DisableAddon(), thus dispatching a OnDisable callback --- and disabling all modules of the addon.\\ --- :Disable() also sets the internal `enableState` variable to false --- @name //addon//:Disable --- @paramsig --- @usage --- -- Disable MyAddon --- MyAddon = LibStub("AceAddon-3.0"):GetAddon("MyAddon") --- MyAddon:Disable() -function Disable(self) - self:SetEnabledState(false) - return AceAddon:DisableAddon(self) -end - ---- Enables the Module, if possible, return true or false depending on success. --- Short-hand function that retrieves the module via `:GetModule` and calls `:Enable` on the module object. --- @name //addon//:EnableModule --- @paramsig name --- @usage --- -- Enable MyModule using :GetModule --- MyAddon = LibStub("AceAddon-3.0"):GetAddon("MyAddon") --- MyModule = MyAddon:GetModule("MyModule") --- MyModule:Enable() --- --- -- Enable MyModule using the short-hand --- MyAddon = LibStub("AceAddon-3.0"):GetAddon("MyAddon") --- MyAddon:EnableModule("MyModule") -function EnableModule(self, name) - local module = self:GetModule( name ) - return module:Enable() -end - ---- Disables the Module, if possible, return true or false depending on success. --- Short-hand function that retrieves the module via `:GetModule` and calls `:Disable` on the module object. --- @name //addon//:DisableModule --- @paramsig name --- @usage --- -- Disable MyModule using :GetModule --- MyAddon = LibStub("AceAddon-3.0"):GetAddon("MyAddon") --- MyModule = MyAddon:GetModule("MyModule") --- MyModule:Disable() --- --- -- Disable MyModule using the short-hand --- MyAddon = LibStub("AceAddon-3.0"):GetAddon("MyAddon") --- MyAddon:DisableModule("MyModule") -function DisableModule(self, name) - local module = self:GetModule( name ) - return module:Disable() -end - ---- Set the default libraries to be mixed into all modules created by this object. --- Note that you can only change the default module libraries before any module is created. --- @name //addon//:SetDefaultModuleLibraries --- @paramsig lib[, lib, ...] --- @param lib List of libraries to embed into the addon --- @usage --- -- Create the addon object --- MyAddon = LibStub("AceAddon-3.0"):NewAddon("MyAddon") --- -- Configure default libraries for modules (all modules need AceEvent-3.0) --- MyAddon:SetDefaultModuleLibraries("AceEvent-3.0") --- -- Create a module --- MyModule = MyAddon:NewModule("MyModule") -function SetDefaultModuleLibraries(self, ...) - if next(self.modules) then - error("Usage: SetDefaultModuleLibraries(...): cannot change the module defaults after a module has been registered.", 2) - end - self.defaultModuleLibraries = {...} -end - ---- Set the default state in which new modules are being created. --- Note that you can only change the default state before any module is created. --- @name //addon//:SetDefaultModuleState --- @paramsig state --- @param state Default state for new modules, true for enabled, false for disabled --- @usage --- -- Create the addon object --- MyAddon = LibStub("AceAddon-3.0"):NewAddon("MyAddon") --- -- Set the default state to "disabled" --- MyAddon:SetDefaultModuleState(false) --- -- Create a module and explicilty enable it --- MyModule = MyAddon:NewModule("MyModule") --- MyModule:Enable() -function SetDefaultModuleState(self, state) - if next(self.modules) then - error("Usage: SetDefaultModuleState(state): cannot change the module defaults after a module has been registered.", 2) - end - self.defaultModuleState = state -end - ---- Set the default prototype to use for new modules on creation. --- Note that you can only change the default prototype before any module is created. --- @name //addon//:SetDefaultModulePrototype --- @paramsig prototype --- @param prototype Default prototype for the new modules (table) --- @usage --- -- Define a prototype --- local prototype = { OnEnable = function(self) print("OnEnable called!") end } --- -- Set the default prototype --- MyAddon:SetDefaultModulePrototype(prototype) --- -- Create a module and explicitly Enable it --- MyModule = MyAddon:NewModule("MyModule") --- MyModule:Enable() --- -- should print "OnEnable called!" now --- @see NewModule -function SetDefaultModulePrototype(self, prototype) - if next(self.modules) then - error("Usage: SetDefaultModulePrototype(prototype): cannot change the module defaults after a module has been registered.", 2) - end - if type(prototype) ~= "table" then - error(("Usage: SetDefaultModulePrototype(prototype): 'prototype' - table expected got '%s'."):format(type(prototype)), 2) - end - self.defaultModulePrototype = prototype -end - ---- Set the state of an addon or module --- This should only be called before any enabling actually happend, e.g. in/before OnInitialize. --- @name //addon//:SetEnabledState --- @paramsig state --- @param state the state of an addon or module (enabled=true, disabled=false) -function SetEnabledState(self, state) - self.enabledState = state -end - - ---- Return an iterator of all modules associated to the addon. --- @name //addon//:IterateModules --- @paramsig --- @usage --- -- Enable all modules --- for name, module in MyAddon:IterateModules() do --- module:Enable() --- end -local function IterateModules(self) return pairs(self.modules) end - --- Returns an iterator of all embeds in the addon --- @name //addon//:IterateEmbeds --- @paramsig -local function IterateEmbeds(self) return pairs(AceAddon.embeds[self]) end - ---- Query the enabledState of an addon. --- @name //addon//:IsEnabled --- @paramsig --- @usage --- if MyAddon:IsEnabled() then --- MyAddon:Disable() --- end -local function IsEnabled(self) return self.enabledState end -local mixins = { - NewModule = NewModule, - GetModule = GetModule, - Enable = Enable, - Disable = Disable, - EnableModule = EnableModule, - DisableModule = DisableModule, - IsEnabled = IsEnabled, - SetDefaultModuleLibraries = SetDefaultModuleLibraries, - SetDefaultModuleState = SetDefaultModuleState, - SetDefaultModulePrototype = SetDefaultModulePrototype, - SetEnabledState = SetEnabledState, - IterateModules = IterateModules, - IterateEmbeds = IterateEmbeds, - GetName = GetName, -} -local function IsModule(self) return false end -local pmixins = { - defaultModuleState = true, - enabledState = true, - IsModule = IsModule, -} --- Embed( target ) --- target (object) - target object to embed aceaddon in --- --- this is a local function specifically since it's meant to be only called internally -function Embed(target, skipPMixins) - for k, v in pairs(mixins) do - target[k] = v - end - if not skipPMixins then - for k, v in pairs(pmixins) do - target[k] = target[k] or v - end - end -end - - --- - Initialize the addon after creation. --- This function is only used internally during the ADDON_LOADED event --- It will call the **OnInitialize** function on the addon object (if present), --- and the **OnEmbedInitialize** function on all embeded libraries. --- --- **Note:** Do not call this function manually, unless you're absolutely sure that you know what you are doing. --- @param addon addon object to intialize -function AceAddon:InitializeAddon(addon) - safecall(addon.OnInitialize, addon) - - local embeds = self.embeds[addon] - for i = 1, #embeds do - local lib = LibStub:GetLibrary(embeds[i], true) - if lib then safecall(lib.OnEmbedInitialize, lib, addon) end - end - - -- we don't call InitializeAddon on modules specifically, this is handled - -- from the event handler and only done _once_ -end - --- - Enable the addon after creation. --- Note: This function is only used internally during the PLAYER_LOGIN event, or during ADDON_LOADED, --- if IsLoggedIn() already returns true at that point, e.g. for LoD Addons. --- It will call the **OnEnable** function on the addon object (if present), --- and the **OnEmbedEnable** function on all embeded libraries.\\ --- This function does not toggle the enable state of the addon itself, and will return early if the addon is disabled. --- --- **Note:** Do not call this function manually, unless you're absolutely sure that you know what you are doing. --- Use :Enable on the addon itself instead. --- @param addon addon object to enable -function AceAddon:EnableAddon(addon) - if type(addon) == "string" then addon = AceAddon:GetAddon(addon) end - if self.statuses[addon.name] or not addon.enabledState then return false end - - -- set the statuses first, before calling the OnEnable. this allows for Disabling of the addon in OnEnable. - self.statuses[addon.name] = true - - safecall(addon.OnEnable, addon) - - -- make sure we're still enabled before continueing - if self.statuses[addon.name] then - local embeds = self.embeds[addon] - for i = 1, #embeds do - local lib = LibStub:GetLibrary(embeds[i], true) - if lib then safecall(lib.OnEmbedEnable, lib, addon) end - end - - -- enable possible modules. - local modules = addon.orderedModules - for i = 1, #modules do - self:EnableAddon(modules[i]) - end - end - return self.statuses[addon.name] -- return true if we're disabled -end - --- - Disable the addon --- Note: This function is only used internally. --- It will call the **OnDisable** function on the addon object (if present), --- and the **OnEmbedDisable** function on all embeded libraries.\\ --- This function does not toggle the enable state of the addon itself, and will return early if the addon is still enabled. --- --- **Note:** Do not call this function manually, unless you're absolutely sure that you know what you are doing. --- Use :Disable on the addon itself instead. --- @param addon addon object to enable -function AceAddon:DisableAddon(addon) - if type(addon) == "string" then addon = AceAddon:GetAddon(addon) end - if not self.statuses[addon.name] then return false end - - -- set statuses first before calling OnDisable, this allows for aborting the disable in OnDisable. - self.statuses[addon.name] = false - - safecall( addon.OnDisable, addon ) - - -- make sure we're still disabling... - if not self.statuses[addon.name] then - local embeds = self.embeds[addon] - for i = 1, #embeds do - local lib = LibStub:GetLibrary(embeds[i], true) - if lib then safecall(lib.OnEmbedDisable, lib, addon) end - end - -- disable possible modules. - local modules = addon.orderedModules - for i = 1, #modules do - self:DisableAddon(modules[i]) - end - end - - return not self.statuses[addon.name] -- return true if we're disabled -end - ---- Get an iterator over all registered addons. --- @usage --- -- Print a list of all installed AceAddon's --- for name, addon in AceAddon:IterateAddons() do --- print("Addon: " .. name) --- end -function AceAddon:IterateAddons() return pairs(self.addons) end - ---- Get an iterator over the internal status registry. --- @usage --- -- Print a list of all enabled addons --- for name, status in AceAddon:IterateAddonStatus() do --- if status then --- print("EnabledAddon: " .. name) --- end --- end -function AceAddon:IterateAddonStatus() return pairs(self.statuses) end - --- Following Iterators are deprecated, and their addon specific versions should be used --- e.g. addon:IterateEmbeds() instead of :IterateEmbedsOnAddon(addon) -function AceAddon:IterateEmbedsOnAddon(addon) return pairs(self.embeds[addon]) end -function AceAddon:IterateModulesOfAddon(addon) return pairs(addon.modules) end - --- Blizzard AddOns which can load very early in the loading process and mess with Ace3 addon loading -local BlizzardEarlyLoadAddons = { - Blizzard_DebugTools = true, - Blizzard_TimeManager = true, - Blizzard_BattlefieldMap = true, - Blizzard_MapCanvas = true, - Blizzard_SharedMapDataProviders = true, - Blizzard_CombatLog = true, -} - --- Event Handling -local function onEvent(this, event, arg1) - -- 2020-08-28 nevcairiel - ignore the load event of Blizzard addons which occur early in the loading process - if (event == "ADDON_LOADED" and (arg1 == nil or not BlizzardEarlyLoadAddons[arg1])) or event == "PLAYER_LOGIN" then - -- if a addon loads another addon, recursion could happen here, so we need to validate the table on every iteration - while(#AceAddon.initializequeue > 0) do - local addon = tremove(AceAddon.initializequeue, 1) - -- this might be an issue with recursion - TODO: validate - if event == "ADDON_LOADED" then addon.baseName = arg1 end - AceAddon:InitializeAddon(addon) - tinsert(AceAddon.enablequeue, addon) - end - - if IsLoggedIn() then - while(#AceAddon.enablequeue > 0) do - local addon = tremove(AceAddon.enablequeue, 1) - AceAddon:EnableAddon(addon) - end - end - end -end - -AceAddon.frame:RegisterEvent("ADDON_LOADED") -AceAddon.frame:RegisterEvent("PLAYER_LOGIN") -AceAddon.frame:SetScript("OnEvent", onEvent) - --- upgrade embeded -for name, addon in pairs(AceAddon.addons) do - Embed(addon, true) -end - --- 2010-10-27 nevcairiel - add new "orderedModules" table -if oldminor and oldminor < 10 then - for name, addon in pairs(AceAddon.addons) do - addon.orderedModules = {} - for module_name, module in pairs(addon.modules) do - tinsert(addon.orderedModules, module) - end - end -end diff --git a/Libs/AceAddon-3.0/AceAddon-3.0.xml b/Libs/AceAddon-3.0/AceAddon-3.0.xml deleted file mode 100644 index c6070085..00000000 --- a/Libs/AceAddon-3.0/AceAddon-3.0.xml +++ /dev/null @@ -1,4 +0,0 @@ - -