-
Notifications
You must be signed in to change notification settings - Fork 1
/
gui.js
79 lines (66 loc) · 1.61 KB
/
gui.js
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
var gui = new dat.gui.GUI({
width:270,
height : 5 * 32 - 1
})
var speedGUI = {
speed : 1,
transparent_base_on_travel : true,
R_arrive_color : 44,
G_arrive_color : 234,
B_arrive_color : 232,
disable : false,
};
var ballSize = {
// able :
showTips : false,
showTipsBaseOnSize : false,
text_R : 242,
text_G : 205,
text_B : 80
}
var ballColor = {
ball_R : 242,
ball_G : 205,
ball_B : 80
}
var passenger = {
amount : false
}
var backgroundColor = {
background : [ 0, 0, 0 ],
}
var mapColor = {
map_R : 242,
map_G : 205,
map_B : 80,
map_A :1
}
var f1 = gui.addFolder('Flow Field');
var f5 = gui.addFolder('ball color');
var f2 = gui.addFolder('Total service time');
var f3 = gui.addFolder('Arrive column');
var f4 = gui.addFolder('Size base on Tips');
/*********************/
var f6 = gui.addFolder('passenger_count');
var f7 = gui.addFolder('map_color');
gui.addColor(backgroundColor,'background')
f1.add(speedGUI,'speed',1,3000);
f5.add(ballColor,'ball_R',0,255);
f5.add(ballColor,'ball_G',0,255);
f5.add(ballColor,'ball_B',0,255);
f2.add(speedGUI,'transparent_base_on_travel');
f3.add(speedGUI,'disable')
f3.add(speedGUI,'R_arrive_color',0,255);
f3.add(speedGUI,'G_arrive_color',0,255);
f3.add(speedGUI,'B_arrive_color',0,255);
f4.add(ballSize,'showTips');
f4.add(ballSize,'showTipsBaseOnSize');
f4.add(ballSize,'text_R',0,255);
f4.add(ballSize,'text_G',0,255);
f4.add(ballSize,'text_B',0,255);
/*************************/
f6.add(passenger,'amount');
f7.add(mapColor,'map_R',0,255);
f7.add(mapColor,'map_G',0,255);
f7.add(mapColor,'map_B',0,255);
f7.add(mapColor,'map_A',0,1);