How foprc/choretracker works
Project Type & Purpose
• The project is a WoW addon, as indicated by the .toc file (ChoreTracker.toc), lua source files, and WoW-specific libraries.
• Its purpose is to assist players by tracking various in-game chores (quests or tasks related to events, professions, etc.), with a user-friendly UI.
Analyzing the File Structure
• Key Top-Level Directories:
• AceGUI & Libs/AceGUI-3.0: These provide the underlying UI framework and widget system for customization.
• Data: Organized subdirectories (Chores, Professions, Timers) that hold configuration and data logic for different chore types and events.
• Modules: Contains distinct functionality modules (Display, Options, Scanner, Timers) that likely separate concerns in the addon.
• Libs: Contains several dependencies (AceAddon-3.0, AceBucket-3.0, AceConfig, AceConsole, AceDB, AceEvent, etc.) that indicate an event-driven and modular design.
• Other Files:
• The .toc and .lua files (e.g., ChoreTracker.lua) signify entry points and core execution flows.
• GitHub workflows for release automation are also provided.
Key Components
a. User Interface (UI) Layer:
• AceGUI framework (with custom skins/widgets from AceGUI and SharedMediaWidgets) representing the addon’s graphical interface.
• UI components such as Frames and Widgets (contained in AceGUI/ and various Libs/AceGUI-3.0/widgets).
b. Core Addon Logic:
• The main entry point (ChoreTracker.lua and the .toc file) which registers and bootstraps the addon.
• Modules: Display, Options, Scanner, Timers – each handling specific aspects of chore tracking.
c. Data & Configuration Layer:
• Data folder (subdirectories for Chores, Professions, Timers): Contains chore-specific scripts (including profession-specific chores) that feed data into the addon.
• Static assets (images in Assets) used for creating visual indicators.
d. Dependency Libraries:
• Ace libraries (AceAddon, AceBucket, AceConfig, AceConsole, AceDB, AceEvent, etc.) that provide the fundamental event handling, configuration, and utility functions.
• LibCandyBar and LibSharedMedia for additional UI components and theme management.
e. External Integration:
• Although it is a WoW addon, consider the integration with the game client’s API and the event system provided by the WoW engine.
Final Steps
• Entry point with a clear label (e.g., “ChoreTracker Loader (ChoreTracker.toc & ChoreTracker.lua)”).
• The Modules, which in turn interface with:
◦ The UI Layer (AceGUI elements, assets).
◦ The Data Layer (Chore and Profession data).
◦ The external libraries which manage events, configuration, and add-on methods.
• Every element (from configuration libraries to assets) is distinctly labeled and visually separated.