-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHEADER.h
149 lines (117 loc) · 5.6 KB
/
HEADER.h
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
#ifndef HEADER_H
#define HEADER_H
#include<iostream>
#include<string>
#include<iomanip>
#include<fstream>
#include<sstream>
#include<windows.h>
using namespace std;
//* ANSI COLOR SEQUENCES. *//
#define ANSI_COLOR_RESET "\x1b[0m "
#define ANSI_COLOR_RED "\x1b[31m"
#define ANSI_COLOR_YELLOW "\x1b[33m"
#define ANSI_COLOR_GREEN "\x1b[32m"
#define ANSI_COLOR_BLUE "\033[34m"
#define ANSI_COLOR_ORANGE "\033[38;5;208m"
#define ANSI_COLOR_PINK "\033[38;5;205m"
#define ANSI_COLOR_PURPLE "\033[38;5;165m"
#define ANSI_COLOR_DARK_GREEN "\033[38;5;22m"
#define CLEAR_SCREEN "\x1B[2J\x1B[H"
#define ANSI_COLOR_BOLD_RED "\033[1;31m"
#define ANSI_COLOR_BOLD_GREEN "\033[1;32m"
#define ANSI_COLOR_BOLD_YELLOW "\033[1;33m"
// *[ CLEAR-SCREEN FUNCTION ]* //
void clearScreen(){
cout<<CLEAR_SCREEN; // USING THE DEFINED FUNCTIONALITY.
}
//*ADMIN_DISPLAY_UTILITY*//
void ADMIN_PLAYS(){
clearScreen();
cout<<endl<<endl;
cout<<ANSI_COLOR_BOLD_GREEN<<"\t #########################################################################"<<endl;
cout<<ANSI_COLOR_BOLD_RED<<"\t // __ ________ ___ ___ __ _____ ___ //"<<endl;
cout<<"\t // / \\ | \\| \\ / || \\ (\\ \\| \\ //"<<endl;
cout<<"\t // / \\ (. ___ :)\\ \\ // ||| ||.\\\\ \\ | //"<<endl;
cout<<"\t // /' /\\ \\ |: \\ ) ||/\\\\ \\/. ||: ||: \\. \\\\ | //"<<endl;
cout<<"\t // // __' \\ (| (___\\ ||: \\. ||. ||. \\ \\. | //"<<endl;
cout<<"\t // / / \\\\ \\|: :|. \\ /: |/\\ || \\ \\ | //"<<endl;
cout<<"\t // (___/ \\___(________/|___|\\__/|___(__\\_|_\\___|\\____\\) //"<<ANSI_COLOR_RESET<<endl;
cout<<ANSI_COLOR_BOLD_GREEN<<"\t #########################################################################"<<endl<<ANSI_COLOR_RESET<<endl;
return;
}
//** COVER_TAGS */
void cover_tags(){
clearScreen();
cout<<endl<<endl;
cout<<ANSI_COLOR_BOLD_RED<<"\t _______________________________________________________________________________"<<endl;
cout<<"\t ||_____________________________________________________________________________||"<<ANSI_COLOR_RESET<<endl;
cout<<ANSI_COLOR_BOLD_GREEN<<"\t || _________ ___________.____ .____ ____________________ ________ ||"<<endl;
cout<<"\t || \\_ ___ \\\\_ _____/| | | | \\______ \\______ \\\\_____ \\ ||"<<endl;
cout<<"\t || / \\ \\/ | __)_ | | | | | ___/| _/ / | \\ ||"<<endl;
cout<<"\t || \\ \\____| \\| |___| |___ | | | | \\/ | \\ ||"<<endl;
cout<<"\t || \\______ /_______ /|_______ \\_______ \\ |____| |____|_ /\\_______ / ||"<<endl;
cout<<"\t || \\/ \\/ \\/ \\/ \\/ \\/ ||"<<endl;
cout<<ANSI_COLOR_BOLD_RED<<"\t ||_____________________________________________________________________________||"<<endl;
cout<<"\t |_______________________________________________________________________________|"<<ANSI_COLOR_RESET<<endl<<endl;
return ;
}
// *[ LOADING LINE FUNCTION ]* //
void LOADING_LINE(){
clearScreen();
int star = 20;
int space = 65;
int per = 25;
clearScreen(); // CALLING THE CLEAR SCREEN FUNCTION.
const char* color = ANSI_COLOR_RESET;
cout<<"\n\n\t\t\t\t\t _____________________________________" ;
cout<<"\n\t\t\t\t\t| |";
cout<<color<<ANSI_COLOR_RED<<"\n\t\t\t\t\t| >>> LOADING PLEASE WAIT <<< |"<<ANSI_COLOR_RESET;
cout<<"\n\t\t\t\t\t|_____________________________________|"<<endl;
cout<<"\t\t "<<setfill('-')<<setw(89)<<"-"<<setfill(' ')<<endl;
for(int i=0 ; i<=3 ; i++ )
{
Sleep(400);
if(i==0){
color = ANSI_COLOR_RED;
}
else if(i==1){
color = ANSI_COLOR_PURPLE;
}
else if(i==2){
color = ANSI_COLOR_ORANGE;
}
else if(i==3){
color = ANSI_COLOR_GREEN;
}
cout<<"\t\t | "<<color<<setfill('*')<<setw(star)<<" "<<setfill(' ')<<setw(space)<<" "<<" | "<<per<<" %"<<ANSI_COLOR_RESET<<endl;
star += 20 ;
space -= 20;
per += 25 ;
}
cout<<"\t\t "<<setfill('-')<<setw(89)<<"-"<<setfill(' ');
cout<<ANSI_COLOR_BOLD_GREEN<<"\n\t\t\t\t\t\t ___________________________" ;
cout<<"\n\t\t\t\t\t\t| |";
cout<<"\n\t\t\t\t\t\t| >>> COMPLETED <<< |";
cout<<"\n\t\t\t\t\t\t|___________________________|\n"<<ANSI_COLOR_RESET<<endl;
return;
}
// *[ BUTTONS-MENU ]* //
void BUTTONS()
{
cout<<"\n\t\t ______________________________________";
cout<<"\n\t\t| |";
cout<<ANSI_COLOR_GREEN<<"\n\t\t| > PRESS THE BUTTON {ONE AT A TIME} < |"<<ANSI_COLOR_RESET;
cout<<ANSI_COLOR_RED<<"\n\t\t| __________________________ |";
cout<<"\n\t\t| | | |";
cout<<"\n\t\t| | ' 1 ' ' 2 ' ' 3 ' | |";
cout<<"\n\t\t| | | |";
cout<<"\n\t\t| | ' 4 ' ' 5 ' ' 6 ' | |";
cout<<"\n\t\t| | | |";
cout<<"\n\t\t| | ' 7 ' ' 8 ' ' 9 ' | |";
cout<<"\n\t\t| |__________________________| |";
cout<<"\n\t\t| |";
cout<<"\n\t\t|______________________________________|\n\n"<<ANSI_COLOR_RESET;
return;
}
#endif