File Details
TargetRangeBox_2.0.0.zip
- R
- Feb 9, 2026
- 8.42 KB
- 15
- 5.5.3+1
- MoP Classic + 1
File Name
TargetRangeBox_2.0.0.zip
Supported Versions
- 5.5.3
- 2.5.5
Added AoE and cone spell range support for spells that do not report range through the normal range API:
- Added reliable range handling for Arcane Explosion (10 yards) and Dragon’s Breath (12 yards) even though they are not traditional ranged spells.
Added a proxy system for AoE and cone range checks:
- Added a new AoE / Cone Proxies section to the options panel with 10 Yard Range and 12 Yard Range proxy fields.
- Allowed each proxy field to accept either a spell (if the class knows it) or an item that supports IsItemInRange.
Added universal fallback range detection for solo play:
- Added CheckInteractDistance fallback for custom AoE spells when no normal range API is available.
- Mapped 10 yard detection to interact index 3.
- Mapped 12 yard detection to interact index 2.
- Enabled Mage 10y and 12y behavior to function solo without any proxy spell or item.
Added proxy color swatches for AoE and cone range wins:
- Added color selection boxes for the 10 Yard Range and 12 Yard Range proxies.
- Configured the main range box to tint using the proxy color when an AoE or cone proxy wins instead of the spell slot color.
Added optional Rogue group shared 10 yard proxy support:
- Enabled Rogues running TargetRangeBox to broadcast Sap in-range results for the current target to party or raid members.
- Allowed other TargetRangeBox users to consume this data as a high-quality 10 yard signal when available.
- Designed the feature to work automatically with no additional user commands required.
Added a working /trb slash command to open the TargetRangeBox options panel directly:
- Configured /trb to open directly to the TargetRangeBox entry in the AddOns or Settings UI instead of the general game options tab.
- Resolved issues that could cause duplicate TargetRangeBox entries in the options list.
Improved the options panel layout and organization:
- Reworked the options UI into a cleaner two-column layout for better readability and usability.
- Placed toggles, colors, spell slots 1–5, proxies, and profile selection on the left side.
- Placed display settings, spell slots 6–10, and profile actions on the right side.
- Removed experimental scroll frame code for a cleaner and more stable layout. (removed later in final edit).
Added quality of life improvements to edit boxes:
- Added DEL buttons to instantly clear text in all spell and item entry boxes.
- Added DEL buttons to the proxy fields and profile name field.
- Added an OK & DEL button to the profile name field to match the behavior of other edit boxes.
Initial cleanup and refactor:
- Removed redundant locals, duplicate checks, and legacy scaffolding that was no longer referenced.
- Consolidated default handling so all first-run behavior is driven strictly from the defaults table.
- Simplified and clarified range-checking flow while preserving identical runtime behavior.
- Normalized helper utilities (CopyDefaults, DeepCopy, CleanName) and removed unused variants.
Default behavior changes (first run only):
- “Show Box” is enabled by default on first load.
- “Show Box / No Target” is enabled by default on first load.
- “Lock (click-through)” is disabled by default on first load, allowing the box to be moved immediately.
- Default box size increased to 40 pixels.
- Default transparency set to 1.00 (fully opaque).
- All spell/item name fields start empty on first load.
- 10-yard and 12-yard proxy name fields start empty on first load.
- Spell slot 10 default color set to white (#ffffff).
- Spell slot 9 default color set to golden yellow (#ffc832).
- 10-yard proxy color default set to white (#ffffff).
- 12-yard proxy color default set to golden yellow (#ffc832).
UI and options panel improvements:
- Added “10 yd” and “12 yd” labels next to the proxy color swatches to mirror numbered spell rows.
- Re-wired checkbox references (Show Box, Show Box/No Target, Lock) into Options._ui for live syncing.
- Ensured options panel checkboxes visually update when settings are changed via slash commands.
- Maintained embedded profiles UI layout while removing obsolete UI glue code.
Slash command enhancements:
- Added /trb lock to enable click-through locking.
- Added /trb unlock to disable click-through locking and allow movement.
- Added /trb show to enable the box (equivalent to checking “Show Box”).
- Added /trb hide to disable the box (equivalent to unchecking “Show Box”).
- Added /trb show nt to enable “Show Box / No Target”.
- Added /trb hide nt to disable “Show Box / No Target”.
- Updated slash handling so all slash-driven changes immediately reflect in the options UI if it is open.
First-run experience:
- Added a one-time welcome message on first addon load:
“TargetRangeBox Loaded: Type (/trb) to open the options menu.” - Implemented _firstRunComplete marker to ensure the welcome message only appears once per character.
Internal stability and safety:
- Preserved profile save/load/delete/reset behavior exactly as before.
- Maintained full backward compatibility with existing SavedVariables and profiles.
- Kept remote Rogue Sap 10-yard proxy logic intact while removing unnecessary rechecks.
- Ensured all new defaults apply only on fresh installs or first run, never overwriting existing user settings.
Net result:
- Cleaner, more maintainable codebase with identical runtime behavior.
- Improved first-time user experience with sensible defaults and guidance.
- More powerful and scriptable control via slash commands without UI desync issues.