Skip to content

Commit 7b7e56b

Browse files
committed
main.ts: txtBtnComp demo
1 parent e663a97 commit 7b7e56b

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

main.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ namespace microcode {
2121

2222

2323

24-
25-
26-
27-
28-
29-
3024
// const comp1 = new ButtonCollection({
3125
// alignment: GUIComponentAlignment.TOP,
3226
// btns: [
@@ -77,6 +71,9 @@ namespace microcode {
7771
// const window = new Window({app, components: [comp1, comp2, comp3] })
7872
// app.pushScene(window)
7973

74+
75+
76+
8077
// let count = 0;
8178
// const comp1 = new ButtonCollection({
8279
// alignment: GUIComponentAlignment.TOP,
@@ -103,6 +100,8 @@ namespace microcode {
103100
// const window = new Window({ app, components: [comp1, comp2] })
104101
// app.pushScene(window)
105102

103+
104+
106105
const txtBtnComp = new TextButtonCollection({
107106
alignment: GUIComponentAlignment.CENTRE,
108107
isActive: true,
@@ -115,4 +114,4 @@ namespace microcode {
115114
})
116115
const window = new Window({ app, components: [txtBtnComp] })
117116
app.pushScene(window)
118-
}
117+
}

0 commit comments

Comments
 (0)