forked from SMUnlimited/AMAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playercolors.j
113 lines (110 loc) · 3.82 KB
/
playercolors.j
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
//===========================================================================
// (AMAI) ColorText (Converts the player color to a text version)
//===========================================================================
function ColorText takes player CPlayer returns string
//Required Variables
local playercolor PColor = GetPlayerColor(CPlayer) //Gets the Player's color
//Finds the Nicer Text Version of the Player's Color
if (PColor == PLAYER_COLOR_RED) then
return "Red"
elseif (PColor == PLAYER_COLOR_BLUE) then
return "Blue"
elseif (PColor == PLAYER_COLOR_CYAN) then
return "Cyan"
elseif (PColor == PLAYER_COLOR_PURPLE) then
return "Purple"
elseif (PColor == PLAYER_COLOR_YELLOW) then
return "Yellow"
elseif (PColor == PLAYER_COLOR_ORANGE) then
return "Orange"
elseif (PColor == PLAYER_COLOR_GREEN) then
return "Green"
elseif (PColor == PLAYER_COLOR_PINK) then
return "Pink"
elseif (PColor == PLAYER_COLOR_LIGHT_GRAY) then
return "Light Gray"
elseif (PColor == PLAYER_COLOR_LIGHT_BLUE) then
return "Light Blue"
elseif (PColor == PLAYER_COLOR_AQUA) then
return "Aqua"
elseif (PColor == PLAYER_COLOR_BROWN) then
return "Brown"
elseif (PColor == PLAYER_COLOR_MAROON) then
return "Maroon"
elseif (PColor == PLAYER_COLOR_NAVY) then
return "Navy"
elseif (PColor == PLAYER_COLOR_TURQUOISE) then
return "Turquoise"
elseif (PColor == PLAYER_COLOR_VIOLET) then
return "Violet"
elseif (PColor == PLAYER_COLOR_WHEAT) then
return "Wheat"
elseif (PColor == PLAYER_COLOR_PEACH) then
return "Peach"
elseif (PColor == PLAYER_COLOR_MINT) then
return "Mint"
elseif (PColor == PLAYER_COLOR_LAVENDER) then
return "Lavender"
elseif (PColor == PLAYER_COLOR_COAL) then
return "Coal"
elseif (PColor == PLAYER_COLOR_SNOW) then
return "Snow"
elseif (PColor == PLAYER_COLOR_EMERALD) then
return "Emerald"
elseif (PColor == PLAYER_COLOR_PEANUT) then
return "Peanut"
endif
//Returns text version
return ""
endfunction
function cs2s takes string name, playercolor c returns string
if c == PLAYER_COLOR_RED then
return "|CffFF0000"+name+"|r"
elseif c == PLAYER_COLOR_BLUE then
return "|Cff0064FF"+name+"|r"
elseif c == PLAYER_COLOR_CYAN then
return "|Cff1BE7BA"+name+"|r"
elseif c == PLAYER_COLOR_PURPLE then
return "|Cff550081"+name+"|r"
elseif c == PLAYER_COLOR_YELLOW then
return "|CffFFFC00"+name+"|r "
elseif c == PLAYER_COLOR_ORANGE then
return "|CffFF8A0D"+name+"|r"
elseif c == PLAYER_COLOR_GREEN then
return "|Cff21BF00"+name+"|r"
elseif c == PLAYER_COLOR_PINK then
return "|CffE45CAF"+name+"|r"
elseif c == PLAYER_COLOR_LIGHT_GRAY then
return "|Cff949696"+name+"|r"
elseif c == PLAYER_COLOR_LIGHT_BLUE then
return "|Cff7EBFF1"+name+"|r"
elseif c == PLAYER_COLOR_AQUA then
return "|Cff106247"+name+"|r"
elseif c == PLAYER_COLOR_MAROON then
return "|Cff9C0000"+name+"|r"
elseif c == PLAYER_COLOR_NAVY then
return "|Cff0000C3"+name+"|r"
elseif c == PLAYER_COLOR_TURQUOISE then
return "|Cff00EBFF"+name+"|r"
elseif c == PLAYER_COLOR_VIOLET then
return "|CffBD00FF"+name+"|r"
elseif c == PLAYER_COLOR_WHEAT then
return "|CffECCD87"+name+"|r"
elseif c == PLAYER_COLOR_PEACH then
return "|CffF7A58B"+name+"|r"
elseif c == PLAYER_COLOR_MINT then
return "|CffBFFF81"+name+"|r"
elseif c == PLAYER_COLOR_LAVENDER then
return "|CffDBB9EB"+name+"|r"
elseif c == PLAYER_COLOR_COAL then
return "|Cff4F5055"+name+"|r"
elseif c == PLAYER_COLOR_SNOW then
return "|CffECF0FF"+name+"|r"
elseif c == PLAYER_COLOR_EMERALD then
return "|Cff00781E"+name+"|r"
elseif c == PLAYER_COLOR_PEANUT then
return "|CffA57033"+name+"|r"
else //Brown
return "|Cff4F2B05"+name+"|r"
endif
endfunction