-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.xsml
85 lines (77 loc) · 1.66 KB
/
main.xsml
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
<xsml version="1.0">
<head>
<title>Pomodoro</title>
<link id="digit" rel="mesh" type="octstream/glb" href="./model/digit-2.glb" />
<style type="text/scss">
#menu {
x: 0;
y: 0;
z: -0.5;
rotation: 0 0 0;
scaling: 1 1 1;
}
#gui {
x: -1;
y: -1;
z: 1;
rotation: 0 180 0;
scaling: 1 1 1;
}
#timer {
scaling: 0.5 0.5 0.5;
x: -2.5;
y: 0;
z: -10;
rotation: 90 0 0;
}
#m1 {
x: 40;
y: 0;
z: 0;
}
#m2 {
x: 20;
y: 0;
z: 0;
}
#sp {
x: 0;
y: 0;
z: 0;
}
#s1 {
x: -20;
y: 0;
z: 0;
}
#s2 {
x: -40;
y: 0;
z: 0;
}
</style>
<script src="./lib/main.ts"></script>
</head>
<space>
<bound id="timer">
<mesh ref="digit" id="m1" />
<mesh ref="digit" id="m2" />
<mesh ref="digit" id="sp" />
<mesh ref="digit" id="s1" />
<mesh ref="digit" id="s2" />
</bound>
<bound id="menu" />
<plane id="gui">
<div class="root">
<div class="startMenuBtn">开始</div>
<div class="settingMenuBtn">设置</div>
<div class="prevSettingMenuBtn">上一步</div>
<div class="nextSettingMenuBtn">下一步</div>
<div class="workTimeChoosePrevBtn">上一个</div>
<div class="workTimeChooseNextBtn">下一个</div>
<div class="breakTimeChoosePrevBtn">上一个</div>
<div class="breakTimeChooseNextBtn">下一个</div>
</div>
</plane>
</space>
</xsml>