1- namespace microcode {
1+ namespace microgui {
2+ import AppInterface = user_interface_base . AppInterface
3+ import Scene = user_interface_base . Scene
4+ import CursorSceneWithPriorPage = user_interface_base . CursorSceneWithPriorPage
5+ import GridNavigator = user_interface_base . GridNavigator
6+ import ButtonStyles = user_interface_base . ButtonStyles
7+ import Screen = user_interface_base . Screen
8+ import Button = user_interface_base . Button
9+ import font = user_interface_base . font
10+
11+
212 abstract class AbstractInputMethod extends Scene {
313 protected titleText : string ;
414
@@ -16,6 +26,7 @@ namespace microcode {
1626 }
1727 }
1828
29+
1930 export class TickerMenu extends AbstractInputMethod {
2031 private tickerValues : number [ ] ;
2132 private tickerIncrements : number [ ] ;
@@ -25,7 +36,7 @@ namespace microcode {
2536 private back : ( ) => void ;
2637
2738 constructor (
28- app : App ,
39+ app : AppInterface ,
2940 titleText : string ,
3041 defaultTickerValues : number [ ] ,
3142 backgroundColor ?: number ,
@@ -181,8 +192,8 @@ namespace microcode {
181192 private shakeText : boolean
182193 private shakeTextCounter : number
183194
184- constructor ( app : App , next : ( arg0 : string ) => void ) {
185- super ( app , function ( ) { } , new GridNavigator ( 5 , 5 , KeyboardMenu . WIDTHS ) ) //, new GridNavigator(5, 10))
195+ constructor ( app : AppInterface , next : ( arg0 : string ) => void ) {
196+ super ( app , function ( ) { } , new GridNavigator ( 5 , 5 , KeyboardMenu . WIDTHS ) ) //, new GridNavigator(5, 10))
186197 this . text = ""
187198 this . upperCase = true
188199
@@ -399,7 +410,7 @@ namespace microcode {
399410 }
400411 }
401412
402-
413+
403414 export class CalculatorMenu extends CursorSceneWithPriorPage {
404415 private static WIDTHS : number [ ] = [ 10 , 5 , 4 ]
405416 private btns : Button [ ]
@@ -410,8 +421,8 @@ namespace microcode {
410421 private shakeText : boolean
411422 private shakeTextCounter : number
412423
413- constructor ( app : App , next : ( arg0 : GraphableFunction ) => void ) {
414- super ( app , function ( ) { } , new GridNavigator ( 3 , 1 , CalculatorMenu . WIDTHS ) )
424+ constructor ( app : AppInterface , next : ( arg0 : GraphableFunction ) => void ) {
425+ super ( app , function ( ) { } , new GridNavigator ( 3 , 1 , CalculatorMenu . WIDTHS ) )
415426 this . text = ""
416427
417428 this . btns = [ ]
@@ -650,9 +661,9 @@ namespace microcode {
650661 private btnText : string [ ]
651662 private callbacks : ( ( btn : Button ) => void ) [ ] [ ]
652663
653- constructor ( app : App , callbacks : ( ( btn : Button ) => void ) [ ] [ ] , priorFn ?: ( ) => void ) {
664+ constructor ( app : AppInterface , callbacks : ( ( btn : Button ) => void ) [ ] [ ] , priorFn ?: ( ) => void ) {
654665 super ( app ,
655- ( priorFn != null ) ? priorFn : function ( ) { } ,
666+ ( priorFn != null ) ? priorFn : function ( ) { } ,
656667 new GridNavigator (
657668 callbacks . length ,
658669 ( callbacks . length > 0 ) ? callbacks [ 0 ] . length : 0
@@ -695,4 +706,4 @@ namespace microcode {
695706 this . btns . forEach ( btn => btn . draw ( ) )
696707 }
697708 }
698- }
709+ }
0 commit comments