SuppressGuildAchievements

Suppress unwanted guild achievement notifications

File Details

SuppressGuildAchievements.zip v1.7.5

  • R
  • Aug 8, 2024
  • 9.75 KB
  • 43
  • 11.0.2
  • Retail

File Name

SuppressGuildAchievements.zip

Supported Versions

  • 11.0.2

Version 1.7.5

Added Features:


Bug Fix:
/sga clear - Clears text chat history 
This wasnt working on 1.7.4

  1. Simulated Achievement Popup:

    • Function SimulateAchievementPopup to simulate GUI achievement popups for testing.
  2. New Test Commands:

    • /sga test1 to enable all suppressions and loggings, then run the tests.
    • /sga test2 to disable all suppressions and loggings, then run the tests.
    • /sga test3 to suppress GUI achievements and log text achievements only, then run the tests.
  3. Comprehensive Status Reporting:

    • Enhanced /sga status to report the current status of all suppression and logging settings in a clear and ordered manner.
  4. Detailed Load Message:

    • Added commands to toggle detailed load messages:
      • /sga showloadmessage enable
      • /sga showloadmessage disable
Removed Features:
  1. Guild and Personal Achievement Lists:
    • Removed the need for GuildAchievementsList and PersonalAchievementsList to streamline the addon functionality.
  2. Global SaveSettings Functionality:
    • Removed global SaveSettings calls to simplify code and avoid unnecessary complexity.
Code Restructuring:
  1. Commands Restructure:

    • Updated command handler to include new test configurations and detailed load message toggling.
  2. Functions Restructure:

    • Split core functionalities into separate Lua files:
      • Core.lua for main initialization and setup.
      • Commands.lua for command handling and testing.
      • Functions.lua for suppression and logging functionalities.
  3. Simplified Function Calls:

    • Simplified logging and suppression enabling/disabling functions to ensure they work seamlessly without the need for saved settings.
Bug Fixes:
  1. Command Error Handling:

    • Fixed errors related to undefined SaveSettings by either defining it properly or removing its calls where not necessary.
  2. Achievement Event Handling:

    • Enhanced HandleAchievementEvents to correctly handle suppression and logging of achievement events for guild achievements, guild members' achievements, and personal achievements.

Detailed Changes

Core.lua

  • Added initialization and setup code for the addon.
  • Ensured all global variables and settings are correctly initialized.

Commands.lua

  • Added new command handler for:
    • /sga test1
    • /sga test2
    • /sga test3
  • Enhanced existing commands to provide better user feedback and logging.

Functions.lua

  • Added new functions:
    • SimulateAchievementPopup
    • RunTestConfig
  • Updated functions for enabling/disabling logging and suppression:
    • EnableLogging
    • EnableGUILogging
    • EnableTextLogging
    • EnableSuppression
    • EnableGUISuppression
    • EnableTextSuppression
  • Improved event handling in HandleAchievementEvents.

Instructions for Users

  1. New Test Commands: Use /sga test1, /sga test2, and /sga test3
    To quickly switch between different states of suppression and logging, and run comprehensive tests.
  2. Detailed Load Message: Toggle detailed load messages using /sga showloadmessage enable or /sga showloadmessage disable.
  3. Status Reporting: Check the current status of suppression and logging settings using /sga status.

Future Plans

  • Additional customization options for users to define specific achievements to suppress.
  • Improved UI for easier management of addon settings.