-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAHPriceChecker_Constants.lua
More file actions
97 lines (82 loc) · 3.43 KB
/
Copy pathAHPriceChecker_Constants.lua
File metadata and controls
97 lines (82 loc) · 3.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
-- Initialize addon table
if not AHPriceChecker then
AHPriceChecker = {}
end
-- Addon information
AHPriceChecker.ADDON_NAME = "AH Price Checker"
AHPriceChecker.ADDON_PREFIX = "AHPC"
AHPriceChecker.ADDON_VERSION = "1.0.0"
-- Slash commands
AHPriceChecker.SLASH_COMMANDS = {
PRIMARY = "/ahpc",
SECONDARY = "/ahpricechecker",
SUBCOMMANDS = {
-- Reserved for future subcommands
}
}
-- Data source configuration
AHPriceChecker.DATA_SOURCES = {
LOCAL_FILE = "AHPriceChecker_VendorPrices.lua", -- Local database file (optional)
LOCAL_VAR_NAME = "AHPriceChecker_Data", -- Variable name in local file
SAVEDVAR_NAME = "VendorPriceScan_Data", -- SavedVariable from VendorPriceScan addon
}
-- Settings (user configurable)
AHPriceChecker.SETTINGS = {
-- ADVANCED: Set to false if you want your local database file to take
-- priority over personally scanned vendor prices. Only change if you
-- maintain a custom, curated price database.
-- true = Personal scans override local database (recommended)
-- false = Local database overrides personal scans
prioritizeScannedData = true
}
-- UI Configuration
AHPriceChecker.UI = {
-- Profit Items checkbox
CHECKBOX_LABEL = "Profit Items",
CHECKBOX_OFFSET_X = 70, -- Horizontal position of checkbox
CHECKBOX_OFFSET_Y = -12, -- Vertical position of checkbox
-- Unit Price checkbox
CHECKBOX2_LABEL = "Show Unit Prices",
CHECKBOX2_OFFSET_X = 170, -- Horizontal position of second checkbox
CHECKBOX2_OFFSET_Y = -12, -- Vertical position of second checkbox
-- Profit info text
INFO_TEXT_OFFSET_X = 422, -- Horizontal position of profit text
INFO_TEXT_OFFSET_Y = 12, -- Vertical position of profit text
UPDATE_INTERVAL = 0.05, -- Update frequency in seconds
}
-- Colors (all with FF prefix for alpha channel)
AHPriceChecker.COLORS = {
-- Money colors (matching VendorPriceScan)
GOLD = "FFFFDB00", -- Bright gold/yellow
SILVER = "FFC0C0C0", -- Bright silver/grey
COPPER = "FFCC6600", -- Bright copper/orange
-- Chat colors (matching VendorPriceScan)
MAGE_BLUE = "FF3FC7EB", -- Mage blue color for separators and titles
ERROR = "FFFF0000", -- Red for errors
-- UI colors
PROFIT_TEXT = "FF00FF00", -- Green for profit display in AH
WARNING = "FFFF3333", -- Light red for warnings
}
-- Chat messages
AHPriceChecker.MESSAGES = {
-- Welcome message
WELCOME_LOADED = "loaded with",
WELCOME_ITEMS = "items.",
WELCOME_TYPE = "Type",
WELCOME_FOR_INFO = "for info.",
-- Info command messages
LOADED_FROM_LOCAL = "Loaded from local file:",
LOADED_FROM_SAVEDVAR = "Loaded from VendorPriceScan:",
CUSTOM_OVERRIDES = "overrides applied.",
FINAL_DATABASE = "Final database:",
ITEMS_TEXT = "items with vendor prices.",
-- Warning messages (when data sources exist but are empty)
WARNING_PREFIX = "WARNING!",
WARNING_NO_ITEMS = "No vendor prices loaded yet.",
WARNING_SOLUTION = "Visit vendors with VendorPriceScan to scan prices, or add data to AHPriceChecker_VendorPrices.lua",
-- Error messages (when no data sources available)
ERROR_PREFIX = "ERROR!",
ERROR_NO_DATABASE = "No price data available.",
ERROR_SOLUTION_1 = "Enable VendorPriceScan addon and scan vendors, OR",
ERROR_SOLUTION_2 = "Add a price database to AHPriceChecker_VendorPrices.lua",
}