Anchor Grow

Reposition Health and Target Frame based on CDM

File Details

AnchorGrow.zip

  • R
  • Jan 28, 2026
  • 16.04 KB
  • 31
  • 12.0.1
  • Retail

File Name

AnchorGrow.zip

Supported Versions

  • 12.0.1
## Version 1.2.0

### Major Refactoring
- **Complete Code Restructure**: Professional reorganization with clean separation of concerns
- **New File Structure**:
  - `Constants.lua` - All constants, colors, and default settings centralized
  - `Utils.lua` - Utility functions for frame validation and detection
  - `Core.lua` - Clean initialization and event handling
  - `Positioning.lua` - Well-organized frame positioning logic
  - `Config.lua` - Modular UI creation with helper functions

### Code Quality Improvements
- **Documentation**: Added LuaDoc-style comments with `@param` and `@return` annotations
- **Consistent Naming**: Standardized function names (e.g., `GetPetFrame()` instead of `getPetFrame()`)
- **Section Headers**: Clear visual separation of code sections
- **Helper Functions**: Extracted common UI patterns into reusable functions
- **Constants Usage**: All magic strings and numbers moved to Constants.lua

### New Features
- **Pet Frame Repositioning**: Position pet frame relative to CDM with Y-axis freedom
- **Target of Target Repositioning**: Position ToT frame with user-controlled Y position
- **Target Castbar Repositioning**: Position target castbar independently
- **X Offset System**: Frames maintain relative position when gap changes
- **Mover Integration**: Full ElvUI mover support with drag-to-save functionality

### Technical Improvements
- **Version Constant**: Version number centralized in `addon.VERSION`
- **Message Templates**: Standardized messages in `addon.MESSAGES`
- **Timing Constants**: All delays centralized in `addon.TIMING`
- **Color Definitions**: Complete color palette in `addon.COLORS`

---