Constants File
For advanced users who want to customize the visual appearance and behavior of RCC beyond what the in-game UI offers, edit theRaidConsumableChecker_Constants.lua file.
Location:
Changes to the Constants file require a
/reload to take effect.Customizable Constants
All constants are defined in theRCC_Constants table with detailed inline comments.
UI Dimensions
Default window width in pixels.
- Auto-calculated based on number of items if needed
- Minimum enforced by
WINDOW_MIN_WIDTH
Default window height in pixels.
- Auto-calculated based on number of categories
- Accounts for title bar and padding
Minimum window width in pixels.
Outer padding around window content.
Size of item icons (width and height).
Horizontal spacing between item icons.
Height of category header text.
Vertical space between categories.
Colors
All colors use ARGB hex format:"AARRGGBB"
Format:
Example:
"AARRGGBB" where AA = alpha, RR = red, GG = green, BB = blueExample:
"FF00FF00" = fully opaque greenBackground Colors
Border Colors
These control the colored borders around item icons:Border when buff is active with >5 min remaining.
Border when buff is active with <5 min remaining.
Border when buff is not active.
Border for items without buff tracking (instant potions).
Text Colors
Fonts
Font file for title text.
Font file for normal text.
Font Sizes
Timers and Performance
Seconds between buff scans (only when window is open).
- Lower = more responsive, higher CPU usage
- Higher = less responsive, lower CPU usage
Seconds to wait after using item before updating buffs.
- Prevents race conditions with game server
Buff warning threshold in seconds.
- Shows orange border when buff has less than this time remaining
- Default: 300 seconds = 5 minutes
Display Settings
Show item names below icons.Set to
false to hide item labels and show icons only.Main window title text.
Format for item counter display.
- Uses Lua string formatting
- Default: “current/required” (e.g., “5/10”)
Special Keywords
Special identifier for weapon enchants.
Customization Examples
Example: Change Border Colors
Make borders more vibrant:RaidConsumableChecker_Constants.lua
Example: Larger Icons
Increase icon size and spacing:RaidConsumableChecker_Constants.lua
Example: Change Warning Threshold
Show orange border at 10 minutes instead of 5:RaidConsumableChecker_Constants.lua
Example: Hide Item Names
Show icons only without labels:RaidConsumableChecker_Constants.lua
Example: Custom Color Scheme
Create a dark purple theme:RaidConsumableChecker_Constants.lua
Slash Commands
Customize the slash commands:RaidConsumableChecker_Constants.lua
Custom Commands
Tooltip Customization
RaidConsumableChecker_Constants.lua
Custom Tooltips
Confirmation Dialog
Customize the buff overwrite confirmation:RaidConsumableChecker_Constants.lua
Color Format Reference
ARGB Hex Colors
Format:"AARRGGBB"
Color Examples
- WoW Class Colors
- Quality Colors
- Custom Themes
Performance Tuning
Optimize for your system:- High Performance
- Balanced
- Low Performance
Fast updates, higher CPU usage:
Buff scans only run when the window is open, so performance impact is minimal.
Restoring Defaults
If you break something:
Or manually revert specific constants to their default values (listed in each section above).
Best Practices
Always Backup Before Editing
Always Backup Before Editing
Copy the file before making changes:
Test Changes Incrementally
Test Changes Incrementally
Change one thing at a time, then
/reload to test:- Edit one constant
- Save file
/reloadin-game- Verify it works
- Repeat
Use Comments
Use Comments
Add comments to track your changes:
Validate Hex Colors
Validate Hex Colors
Make sure colors are 8 characters (AARRGGBB):❌
✅
"FF0000" (missing alpha)✅
"FFFF0000" (correct)Troubleshooting
Next Steps
Configuration Overview
Back to configuration system overview
Item Configuration
Configure items and consumables