Overview
All customizable constants are defined inRaidConsumableChecker_Constants.lua. These values control UI appearance, timers, colors, fonts, and default behavior.
Addon Info
Internal addon name used for event registration.
Current version number displayed on load.
Saved Variables
Global saved variables table persisted across game sessions.Structure:Location:
WTF/Account/[AccountName]/SavedVariables/RaidConsumableChecker.luaFields:position- Window position (point, x offset, y offset)ConsumableData.Items- Array of configured consumable itemsConsumableData.Categories- Array of configured categories
The saved variables are automatically created on first load. Manual editing is not recommended - use the in-game configuration UI instead.
UI Dimensions
Window Size
Default window width in pixels (auto-calculated based on items).
Default window height in pixels (auto-calculated based on categories).
Minimum window width to prevent UI from becoming too small.
Outer padding around window content in pixels.
Title Bar
Height of the title bar in pixels.
Content Margins
Left margin for content area in pixels.
Right margin for content area in pixels.
Bottom margin for content area in pixels.
Icon and Item Display
Size of item icons in pixels (width and height).
Horizontal spacing between item icons in pixels.
Category Display
Height of category header text in pixels.
Vertical space between categories in pixels.
Frame Borders
Thickness of item icon borders in pixels.
Colors
All colors use 8-character hex format:
AARRGGBB where AA = alpha, RR = red, GG = green, BB = blue.Frame Background
Main window background color (Black with 80% alpha).
Title Bar
Title bar background color (Dark gray with 90% alpha).
Title bar text color (Gold, fully opaque).
Item Status Borders
Border when buff is active with >5 min remaining (Green).
Border when buff is active with <5 min remaining (Orange).
Border when buff is not active (Red).
Border for items without buff tracking, like potions (Black).
Text Colors
Normal text color (White).
Text color when you have enough items (Green).
Text color when you need more items (Red).
Category header text color (Gold).
Addon name color in chat messages (Light blue).
Highlight color for commands in chat (Gold).
Highlight color for item/category names in chat (White).
Item description text color in tooltips (Gray).
Fonts
Font Files
Font file for title text.
Font file for normal text.
Font Sizes
Font size for window title.
Font size for category headers.
Font size for item names under icons.
Font size for item count numbers.
Font size for buff time remaining display.
Timers and Performance
Seconds between buff scans (only when window is open).
Seconds to wait after using item before updating buffs.
Buff warning threshold in seconds - shows orange border (5 minutes).
Text Strings
Window Title
Main window title text.
Counter Format
Format for item counter display: current/required (e.g., “5/10”).
Slash Commands
Primary slash command.
Alternative slash command.
Third alternative slash command.
Tooltips
Tooltip text for weapon enchant status.
Tooltip hint for clickable items.
Confirmation Dialog
Confirmation message when buff already active.
Accept button text for confirmation dialog.
Cancel button text for confirmation dialog.
Textures and Paths
Base path for all item icons.
Fallback icon when item icon path is invalid or missing.
Texture used for borders and backgrounds.
Behavior
Show item names below icons.
Special Buff Names
Special identifier for weapon enchants like Wizard Oil.
Default Saved Variables
Window Position
Anchor point for window position.
X offset from anchor point.
Y offset from anchor point.
Default Categories
Unique category identifier
Display name for the category
Number of dashes to display on each side of the category name
Default Items
TheDEFAULT_ITEMS array contains the initial item configuration for new installations. See the full list in RaidConsumableChecker_Constants.lua:138-213.
Example Default Item Structure
Customization Examples
Change Buff Scan Rate
To scan buffs every 1 second instead of 2:Adjust Warning Threshold
To show orange warning at 10 minutes (600 seconds):Modify Border Colors
To use blue for active buffs:Change Icon Size
To make icons larger (60x60):Color Format Reference
Hex Color Format: AARRGGBB
| Component | Position | Range | Description |
|---|---|---|---|
| Alpha | 1-2 | 00-FF | Transparency (00=invisible, FF=opaque) |
| Red | 3-4 | 00-FF | Red component |
| Green | 5-6 | 00-FF | Green component |
| Blue | 7-8 | 00-FF | Blue component |
Common Colors
Performance Tuning
These constants allow you to balance visual responsiveness with CPU usage.