Anchor Grow

Reposition Health and Target Frame based on CDM
Back to Files

AnchorGrow.zip

File nameAnchorGrow.zip
Uploaded
Jan 28, 2026
Downloads
35
Size
16.0 KB
Flavors
Retail
File ID
7543112
Type
R
Release
Supported game versions
  • 12.0.1

What's new

## 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`

---

This mod has no additional files