-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprint.lua
More file actions
27 lines (24 loc) · 780 Bytes
/
print.lua
File metadata and controls
27 lines (24 loc) · 780 Bytes
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
FBPrint = {}
FBPrint.Colors = {
["red"] = {1.0, 0.0, 0.0},
["green"] = {0.0, 1.0, 0.0},
["blue"] = {0.0, 0.0, 1.0},
["yellow"] = {1.0, 1.0, 0.0},
["cyan"] = {0.0, 1.0, 1.0},
["magenta"]= {1.0, 0.0, 1.0},
["white"] = {1.0, 1.0, 1.0},
["gray"] = {0.5, 0.5, 0.5},
["black"] = {0.0, 0.0, 0.0},
["orange"] = {1.0, 0.5, 0.0},
["purple"] = {0.5, 0.0, 0.5},
}
function FBPrint.Chat(msg, color)
local c = FBPrint.Colors[color] or FBPrint.Colors["gray"]
ChatFrame1:AddMessage("FastBinding - "..msg, c[1], c[2], c[3])
end
function FBPrint.Debug(msg, color)
if FastBinding.Debug then
local c = FBPrint.Colors[color] or FBPrint.Colors["red"]
ChatFrame1:AddMessage("[DEBUG] - "..msg, c[1], c[2], c[3])
end
end