-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVendorPriceScan_Constants.lua
More file actions
134 lines (116 loc) · 3.79 KB
/
Copy pathVendorPriceScan_Constants.lua
File metadata and controls
134 lines (116 loc) · 3.79 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
-- Initialize addon table
if not VendorPriceScan then
VendorPriceScan = {}
end
-- Addon information
VendorPriceScan.ADDON_NAME = "Vendor Price Scan"
VendorPriceScan.ADDON_PREFIX = "VPS"
VendorPriceScan.ADDON_VERSION = "1.0.0"
-- Slash commands
VendorPriceScan.SLASH_COMMANDS = {
PRIMARY = "/vps",
SECONDARY = "/vendorpricescan",
SUBCOMMANDS = {
SHOW = "show"
}
}
-- UI Constants
VendorPriceScan.UI_CONSTANTS = {
ITEM_HEIGHT = 22,
VERTICAL_OFFSET = -5,
CONTENT_HEIGHT_PADDING = 10,
}
-- Color configuration
VendorPriceScan.COLORS = {
-- Normal money colors (for main prices)
GOLD = "FFFFDB00", -- Bright gold/yellow
SILVER = "FFC0C0C0", -- Bright silver/grey
COPPER = "FFCC6600", -- Bright copper/orange
-- Dimmed money colors (for secondary prices like "each")
GOLD_DIM = "FFB8A070", -- Muted gold/beige
SILVER_DIM = "FF909090", -- Muted silver/grey
COPPER_DIM = "FF996644", -- Muted copper/brown
-- UI colors
NUMBER_DIM = "FFAAAAAA", -- Grey for dimmed numbers
LABEL = "FFFFE066", -- Golden/yellow for labels (Search, Sort by, etc)
-- Chat colors
MAGE_BLUE = "FF3FC7EB", -- Mage blue color
}
-- Pre-calculated RGB colors (0-1 range for SetTextColor)
VendorPriceScan.COLORS_RGB = {
LABEL = {0.93, 0.88, 0.40},
NOT_IN_CACHE = {0.6, 0.6, 0.6},
}
-- UI Text strings
VendorPriceScan.STRINGS = {
-- Welcome message
LOADED_WITH = "loaded with",
ITEMS_LOWERCASE = "items.",
TYPE_FOR_INFO = "Type",
FOR_INFO = "for info.",
-- Slash command messages
LOADED_ITEMS = "Loaded",
ITEMS_FROM_DATA = "items from saved data.",
VISIT_VENDOR = "Visit a vendor to scan items in your bags.",
USE_COMMAND = "Use",
TO_OPEN_WINDOW = "to open the database window.",
-- UI Labels
SEARCH = "Search:",
SORT_BY = "Sort by:",
RARITY = "Rarity:",
CLEAR = "Clear",
SHOWING = "Showing",
OF = "of",
ITEMS = "items",
SORTED_BY = "sorted by",
FILTERED_BY = "filtered by",
SEARCH_FILTER = "search:",
ASCENDING = "ascending",
DESCENDING = "descending",
SHOW_TOOLTIPS = "Show prices in tooltips",
TOOLTIP_CHECKBOX_DESC = "When enabled, vendor prices will be displayed in item tooltips. When disabled, prices are still scanned and saved, but not shown.",
SHOW_TOOLTIP_TITLE = "Show 'Vendor Price:' label",
TOOLTIP_TITLE_CHECKBOX_DESC = "When enabled, tooltips will show 'Vendor Price:' before the price. When disabled, only the price is shown.",
-- Tooltip
VENDOR_PRICE = "Vendor Price:",
EACH = "each",
NOT_IN_CACHE = " (not in cache)",
-- Item display
ITEM_PREFIX = "Item #",
ID_PREFIX = " [ID ",
ID_SUFFIX = "]",
DATABASE_TITLE = " Database",
}
-- Rarity configuration
VendorPriceScan.RARITY_TYPES = {
{key = -1, label = "All", color = {1, 1, 1}},
{key = 0, label = "Poor", color = {0.62, 0.62, 0.62}},
{key = 1, label = "Common", color = {1, 1, 1}},
{key = 2, label = "Uncommon", color = {0.12, 1, 0}},
{key = 3, label = "Rare", color = {0, 0.44, 0.87}},
{key = 4, label = "Epic", color = {0.64, 0.21, 0.93}},
{key = 5, label = "Legendary", color = {1, 0.5, 0}}
}
-- Rarity names (for filter display)
VendorPriceScan.RARITY_NAMES = {
"Poor", "Common", "Uncommon", "Rare", "Epic", "Legendary"
}
-- Sort types configuration
VendorPriceScan.SORT_TYPES = {
{key = "id", label = "ID"},
{key = "name", label = "Name"},
{key = "price", label = "Price"},
{key = "rarity", label = "Rarity"}
}
-- Sort names (for display)
VendorPriceScan.SORT_NAMES = {
id = "ID",
name = "Name",
price = "Price",
rarity = "Rarity"
}
-- Alternating row background colors
VendorPriceScan.ROW_COLORS = {
EVEN = {0.2, 0.2, 0.25, 0.6},
ODD = {0.1, 0.1, 0.15, 0.4}
}