/
initialization.ts
38 lines (36 loc) · 1.27 KB
/
initialization.ts
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
export const initialization = {
preprocess() {
ui.menu.set({
anchor: screen.rect.lt.add(new Vec(0.05, -0.05)),
pivot: { x: 0, y: 1 },
size: new Vec(0.15, 0.15).mul(ui.configuration.menu.scale),
rotation: 0,
alpha: ui.configuration.menu.alpha,
background: true,
})
ui.navigation.previous.set({
anchor: { x: screen.l + 0.05, y: 0 },
pivot: { x: 0, y: 0.5 },
size: new Vec(0.15, 0.15).mul(ui.configuration.navigation.scale),
rotation: 0,
alpha: ui.configuration.navigation.alpha,
background: true,
})
ui.navigation.next.set({
anchor: { x: screen.r - 0.05, y: 0 },
pivot: { x: 1, y: 0.5 },
size: new Vec(0.15, 0.15).mul(ui.configuration.navigation.scale),
rotation: 0,
alpha: ui.configuration.navigation.alpha,
background: true,
})
ui.instruction.set({
anchor: Vec.zero,
pivot: { x: 0.5, y: 0.5 },
size: new Vec(1.2, 0.15).mul(ui.configuration.instruction.scale),
rotation: 0,
alpha: ui.configuration.instruction.alpha,
background: true,
})
},
}