-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAHPriceMemory_Constants.lua
More file actions
155 lines (133 loc) · 4.35 KB
/
AHPriceMemory_Constants.lua
File metadata and controls
155 lines (133 loc) · 4.35 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
-- Initialize addon table
if not AHPriceMemory then
AHPriceMemory = {}
end
-- Addon information
AHPriceMemory.ADDON_NAME = "AH Price Memory"
AHPriceMemory.ADDON_PREFIX = "AHPM"
AHPriceMemory.ADDON_VERSION = "1.0.0"
-- Slash commands
AHPriceMemory.SLASH_COMMANDS = {
PRIMARY = "/ahpm",
SECONDARY = "/ahpricememory",
SUBCOMMANDS = {
SHOW = "show"
}
}
-- Default settings
AHPriceMemory.DEFAULT_SETTINGS = {
AUTO_FILL_ENABLED = true,
SHOW_INFO_MESSAGES = false
}
-- UI Constants
AHPriceMemory.UI_CONSTANTS = {
ITEM_HEIGHT = 22,
AUTOFILL_DELAY = 0.2,
}
-- Color configuration
AHPriceMemory.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 = "FF888888", -- 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)
AHPriceMemory.COLORS_RGB = {
LABEL = {1, 0.878, 0.4},
NOT_IN_CACHE = {0.6, 0.6, 0.6},
}
-- UI Text strings
AHPriceMemory.STRINGS = {
-- Checkbox
AUTO_FILL = "Auto-fill",
AUTO_FILL_TOOLTIP_TITLE = "Auto-fill Auction Prices",
AUTO_FILL_TOOLTIP_DESC = "When enabled, automatically fills the Starting Bid and Buyout fields in the Auction House with your last saved prices for each item and stack size.",
SHOW_MESSAGES = "Show Messages",
SHOW_MESSAGES_TOOLTIP_TITLE = "Show Info Messages",
SHOW_MESSAGES_TOOLTIP_DESC = "When enabled, displays informational messages in the chat when prices are saved or auto-filled.",
-- Messages
AUTO_FILL_ENABLED = "Auto-fill enabled",
AUTO_FILL_DISABLED = "Auto-fill disabled",
SHOW_MESSAGES_ENABLED = "Info messages enabled",
SHOW_MESSAGES_DISABLED = "Info messages disabled",
LOADED_WITH = "loaded with",
ITEMS = "items.",
TYPE_FOR_INFO = "Type",
FOR_INFO = "for info.",
USE_COMMAND = "Use",
TO_OPEN_WINDOW = "to open the price database window.",
-- Auto-fill messages
AUTO_FILLED_FOR = "Auto-filled prices for",
SAVED_PRICES_FOR = "Saved prices for",
BID_LABEL = "Bid:",
BUYOUT_LABEL = "Buyout:",
NONE = "none",
-- UI Labels
SEARCH = "Search:",
SORT_BY = "Sort by:",
RARITY = "Rarity:",
CLEAR = "Clear",
SHOWING = "Showing",
OF = "of",
ITEMS_LABEL = "items",
SORTED_BY = "sorted by",
FILTERED_BY = "filtered by",
SEARCH_FILTER = "search:",
ASCENDING = "ascending",
DESCENDING = "descending",
-- Tooltip
SAVED_AUCTION_PRICES = "Saved Auction Prices:",
STACK_SIZE = "Stack Size:",
NOT_IN_CACHE = " (not in cache)",
-- Item display
ITEM_PREFIX = "Item #",
DATABASE_TITLE = " Database",
-- Info command output
INFO_LOADED = "Loaded",
INFO_ITEMS_WITH = "items with",
INFO_STACK_CONFIGS = "stack configurations from saved data.",
}
-- Rarity configuration
AHPriceMemory.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)
AHPriceMemory.RARITY_NAMES = {
"Poor", "Common", "Uncommon", "Rare", "Epic", "Legendary"
}
-- Sort types configuration
AHPriceMemory.SORT_TYPES = {
{key = "id", label = "ID"},
{key = "name", label = "Name"},
{key = "bid", label = "Bid"},
{key = "buyout", label = "Buyout"},
{key = "rarity", label = "Rarity"}
}
-- Sort names (for display)
AHPriceMemory.SORT_NAMES = {
id = "ID",
name = "Name",
bid = "Bid",
buyout = "Buyout",
rarity = "Rarity"
}
-- Alternating row background colors
AHPriceMemory.ROW_COLORS = {
EVEN = {0.2, 0.2, 0.25, 0.6},
ODD = {0.1, 0.1, 0.15, 0.4}
}