Skip to content

Commit ce3c53c

Browse files
committed
Update to user-interface-base#v0.0.16: coreAssets.ts, better INavigators, GridNavigator fix
1 parent b1f7df9 commit ce3c53c

4 files changed

Lines changed: 182 additions & 202 deletions

File tree

inputMethods.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ namespace microgui {
193193
private shakeTextCounter: number
194194

195195
constructor(app: AppInterface, next: (arg0: string) => void) {
196-
super(app, function() { }, new GridNavigator(5, 5, KeyboardMenu.WIDTHS))//, new GridNavigator(5, 10))
196+
super(app, function() { }, new GridNavigator())//, 5, 5, KeyboardMenu.WIDTHS, new GridNavigator(5, 10))
197197
this.text = ""
198198
this.upperCase = true
199199

@@ -281,7 +281,7 @@ namespace microgui {
281281
}
282282

283283
this.changeCase()
284-
this.navigator.addButtons(this.btns)
284+
this.navigator.setBtns([this.btns])
285285
}
286286

287287
private changeCase() {
@@ -422,7 +422,7 @@ namespace microgui {
422422
private shakeTextCounter: number
423423

424424
constructor(app: AppInterface, next: (arg0: GraphableFunction) => void) {
425-
super(app, function() { }, new GridNavigator(3, 1, CalculatorMenu.WIDTHS))
425+
super(app, function() { }, new GridNavigator()) // 3, 1, CalculatorMenu.WIDTHS
426426
this.text = ""
427427

428428
this.btns = []
@@ -540,7 +540,7 @@ namespace microgui {
540540
}
541541
}
542542

543-
this.navigator.addButtons(this.btns)
543+
this.navigator.setBtns([this.btns])
544544
}
545545

546546
draw() {
@@ -665,8 +665,8 @@ namespace microgui {
665665
super(app,
666666
(priorFn != null) ? priorFn : function() { },
667667
new GridNavigator(
668-
callbacks.length,
669-
(callbacks.length > 0) ? callbacks[0].length : 0
668+
// callbacks.length,
669+
// (callbacks.length > 0) ? callbacks[0].length : 0
670670
)
671671
)
672672
this.btns = []
@@ -691,7 +691,7 @@ namespace microgui {
691691
)
692692
}
693693
}
694-
this.navigator.addButtons(this.btns)
694+
this.navigator.setBtns([this.btns])
695695
}
696696

697697
draw() {

0 commit comments

Comments
 (0)