-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolor.cpp
55 lines (49 loc) · 1.42 KB
/
color.cpp
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
/*
CODE BY: ALOT OF PEOPLE!!!!!!!!!!!!! but by me: Tkz ;)
to: 2016
www.unknowncheats.me
*/
#include "cvar.h"
#include "color.h"
//===================================================================================================
ColorManager colorList;
#pragma warning(disable:4786)
#pragma warning(disable:4800)
#pragma warning(disable:4244)
#pragma warning(disable:4101)
#pragma warning(disable:4715)
#pragma warning(disable:4018)
//===================================================================================================
void ColorManager::Init()
{
add(255, 255, 255, 180); // Menu Title - 0
add(120, 0, 0, 180); // Menu Content - 1
add(255, 255, 0, 255); // Terrorist - 2
add(0, 255, 255, 255); // Counter-Terrorist - 3
add(255, 66, 0, 255); // Aimbot Target - 4
add(255, 255, 0, 0); // Entity Esp Weapon - 5
add(255, 255, 0, 0); // Entity Esp Hostage - 6
add(255, 55, 0, 150); // Menu - Deselected - 7
add(0, 100, 100, 150); // Menu - Selected - 8
}
ColorEntry * ColorManager::get(int index)
{
if (index < entrys.size())
return &entrys[index];
else
return &entrys[0];
}
void ColorManager::add(int r, int g, int b, int a)
{
ColorEntry tmp;
tmp.r = r;
tmp.g = g;
tmp.b = b;
tmp.a = a;
tmp.onebased_r = r / 255;
tmp.onebased_g = g / 255;
tmp.onebased_b = b / 255;
tmp.onebased_a = a / 255;
entrys.push_back(tmp);
currentIndex++;
}