-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsettings.ts
More file actions
48 lines (45 loc) · 1.83 KB
/
settings.ts
File metadata and controls
48 lines (45 loc) · 1.83 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
namespace microcode {
export let microcodeClassic = false
export let jacdacEnabled = false
export let reportAria = false
// screen for selecting from samples
import GUIComponentAlignment = microgui.GUIComponentAlignment
import RadioButtonCollection = microgui.RadioButtonCollection
import RadioButton = microgui.RadioButton
import AppInterface = user_interface_base.AppInterface
export class MicroCodeSettings extends microgui.GUIComponentScene {
constructor(app: AppInterface) {
const selectMode = new RadioButtonCollection({
alignment: GUIComponentAlignment.CENTRE, // Change to move around, use xOffset and yOffset for small shifts.
btns: [
new RadioButton({
text: "Classic: 1-5 dots",
onClick: () => {
microcodeClassic = true
},
}),
new RadioButton({
text: "Decimal: base 10",
onClick: () => {
microcodeClassic = false
},
}),
],
isActive: true,
title: "Select Mode", // Optional
colour: 3, // Optional
xOffset: 0, // Optional small shift in X
yOffset: 0, // Optional small shift in Y
xScaling: 1.0, // Optional Scaling; if you want to make it wider or thinner.
yScaling: 1.0, // Optional Scaling; if you want to make it taller or shorter.
backBtn: () => {
app.popScene()
}, // Optional
})
super({
app,
components: [selectMode],
})
}
}
}