File Details
WoWFishCounterv1.2.zip
- R
- Jul 2, 2025
- 4.37 KB
- 13
- 11.2.0+1
- Retail
File Name
WoWFishCounterv1.2.zip
Supported Versions
- 11.2.0
- 11.1.7
WoWFishCounter: Version 1.2 Changelog
This version introduces major improvements to UI, functionality, and code structure.
___________________________________________________________________________________________________________________________
New Features
1. Corrected formatting:
* The displayed information is now divided into three separate columns.
* This creates an even and organized list.
2. Global History Mode:
* The "History" mode has been changed. Instead of showing history on a per-zone basis, it now shows a single, global history of all items ever caught, regardless of zone.
3. Rare Fish Sound Alert:
* A new function playRareSound has been added. When you catch an item of Rare quality (blue) or higher, it will play the RAID_WARNING sound to alert you.
___________________________________________________________________________________________________________________________
Bug Fixes & UI Improvements
1. FIXED: Column Text Overlap:
* The primary bug from the original version has been completely resolved. The new version no longer uses three separate .
* Solution: It now uses a single, wide FontString and creates a formatted, table-like layout within the text itself. The padRight function ensures each "column" is aligned correctly, preventing any overlap regardless of item name length.
2. Improved Frame Aesthetics:
* The frame's backdrop has been changed from the basic BackdropTemplate to the standard UI-Tooltip-Background, giving it a more polished, default-UI look.
3. Dynamic Sizing:
* The frame now dynamically resizes its width and height based on the content of the single text block, ensuring all data is always visible and the frame is sized appropriately.
___________________________________________________________________________________________________________________________
Code & Architecture Changes (Refactoring)
1. Single FontString Display:
* The entire data display (Item, Chance, Total) is now rendered into a single FontString (fontLines[1]). This is the core architectural change that fixes the text overlap bug and simplifies the layout code.
2. Centralized Event Handling & Logic Abstraction:
* A dedicated events frame now handles all game events (LOOT_OPENED, ZONE_CHANGED*, ADDON_LOADED).
* The logic for processing loot has been moved from the OnEvent script directly into its own function, handleLoot, improving code readability.
3. Safe Addon Initialization:
* The addon now uses the ADDON_LOADED event to safely initialize its database variables (historyData, historyOrder). This is a more robust practice than initializing at the top of the file.
4. Monospace Formatting:
* The padRight helper function was created to add trailing spaces to strings, which, combined with the font choice, simulates a monospace table layout.
___________________________________________________________________________________________________________________________
Functional Changes & Removals
1. REMOVED: Per-Zone History:
* As a consequence of the move to a global history model, the ability to view fish statistics for a specific zone has been removed. The history command now shows all catches from all zones combined.
2. REMOVED: Manual Session Reset Command:
* The /fc reset command has been removed because the session now resets automatically when changing zones.
3. CHANGED: Slash Commands:
* The slash commands have been simplified and made more explicit.
* Old Commands: /fc reset, /fc mode, /fc hide
* New Commands: /fc session, /fc history, /fc exit (or hide), /fc show (or open)