-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLevels.cpp
More file actions
77 lines (54 loc) · 1.49 KB
/
Levels.cpp
File metadata and controls
77 lines (54 loc) · 1.49 KB
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
#include <simplecpp>
#include "Control.h"
#include "main.h"
void levels(string name){
/*For refreshment of the window*/
Rectangle RW(500,400,1000,800);
RW.setColor(COLOR(255,255,255));
RW.setFill(True);
Circle L(500,200,400);
L.setColor(COLOR("red"));
L.setFill(true);
Circle L2(500,200,200);
L2.setColor(COLOR("brown"));
L2.setFill(true);
Rectangle Quit_help(500,700,200,100); /*Quit button*/
Text Quit_h(500,700,"Quit");
Rectangle Bu[7];
double H=2*textHeight();
Bu[1].reset(500,150,200,H);
Bu[1].setColor(COLOR(255,255,0));
Bu[1].setFill(true);
Bu[2].reset(300,400+1*H,200,H);
Bu[2].setColor(COLOR(0,255,255));
Bu[2].setFill(true);
Bu[3].reset(700,400+1*H,200,H);
Bu[3].setColor(COLOR(255,0,255));
Bu[3].setFill(true);
Text Lvl[7];
Lvl[0].reset(500,20,"Modes"); /* Title */
Lvl[1].reset(500,150,"Cluster");
Lvl[2].reset(300,400+1*H,"Scatter");
Lvl[3].reset(700,400+1*H,"Explode");
/* To exit the help section */
while (true)
{
int t=getClick();
if (Click(Bu[1],t))
{
maindish(name,50,50,80,10);
}
if (Click(Bu[2],t))
{
maindish(name,50,100,80,50);
}
if (Click(Bu[3],t))
{
maindish(name,50,200,80,90);
}
if (Click(Quit_help,t))
{
break;
}
}
}