-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextra_functions.cpp
110 lines (83 loc) · 3.86 KB
/
extra_functions.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
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
#include "HEADER.h"
using namespace std;
// *[ LOADING LINE FUNCTION ]* //
void LOADING_LINE(){
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<<"\n\t\t\t\t\t\t ___________________________" ;
cout<<"\n\t\t\t\t\t\t| |";
cout<<color<<ANSI_COLOR_GREEN<<"\n\t\t\t\t\t\t| >>> COMPLETED <<< |"<<ANSI_COLOR_RESET;
cout<<"\n\t\t\t\t\t\t|___________________________|\n"<<endl;
return;
}
// *[ CLEAR-SCREEN FUNCTION ]* //
void clearScreen(){
cout<<CLEAR_SCREEN; // USING THE DEFINED FUNCTIONALITY.
}
// *[ 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;
}
void LMS(){
Sleep(1000);
cout<<endl<<endl;
cout<<ANSI_COLOR_PURPLE<<"\t\t___________________________________________________________________"<<endl;
cout<<"\t\t___________________________________________________________________"<<endl<<ANSI_COLOR_RESET;
cout<<ANSI_COLOR_BOLD_RED<<"\t\t||| |||"<<endl;
cout<<"\t\t||| LL M M M M SSSSS |||"<<endl;
cout<<"\t\t||| LL M M MM MM M M S S |||"<<endl;
cout<<"\t\t||| LL M M MM MM M M S |||"<<endl;
cout<<ANSI_COLOR_BOLD_GREEN<<"\t\t||| LL M M MM M M SSSSS |||"<<endl;
cout<<"\t\t||| LL M M M M S |||"<<endl;
cout<<"\t\t||| LL M M M M S S |||"<<endl;
cout<<"\t\t||| LLLLLLLLLLLL M M M M SSSSS |||"<<endl;
cout<<"\t\t||| |||"<<endl<<ANSI_COLOR_RESET;
cout<<ANSI_COLOR_PURPLE<<"\t\t __________________________________________________________________"<<endl;
cout<<"\t\t __________________________________________________________________"<<endl<<ANSI_COLOR_RESET;
cout<<endl<<endl;
Sleep(3000);
return;
}