c03, gui2: new GUI now basically works.
This commit is contained in:
@@ -42,28 +42,23 @@ ClimateWin_new:
|
||||
ldi r17, (WIDGET_PACK_FILLED<<WIDGET_PACK_HSELF0_BIT) | (WIDGET_PACK_FILLED<<WIDGET_PACK_VSELF0_BIT) ; PACK
|
||||
ldi r20, LOW(RESSSOURCE_TXT_ROOMCLIMATE)
|
||||
ldi r21, HIGH(RESSSOURCE_TXT_ROOMCLIMATE)
|
||||
bigcall MainWindow_new
|
||||
bigcall MainWindow_new ; Y=main window
|
||||
brcc ClimateWin_new_ret
|
||||
|
||||
; Y=MainWindow
|
||||
push yl
|
||||
|
||||
bigcall MainWindow_GetContentWidget ; r19:r18=content window
|
||||
brcc ClimateWin_new_ret
|
||||
mov xl, r18 ; use content window as parent
|
||||
mov xh, r19
|
||||
|
||||
push yl ; main window
|
||||
push yh
|
||||
bigcall MainWindow_GetContentWidget ; r19:r18=content window
|
||||
brcc ClimateWin_new_popRet
|
||||
mov xl, r18 ; use content window as parent
|
||||
mov xh, r19
|
||||
|
||||
push xl ; content window
|
||||
push xl ; content window
|
||||
push xh
|
||||
rcall climateWinCreateSensorWatches
|
||||
pop xh
|
||||
pop xh ; content window
|
||||
pop xl
|
||||
; brcc ClimateWin_new_popRet
|
||||
|
||||
; TODO: create menu bar below
|
||||
|
||||
ClimateWin_new_popRet:
|
||||
pop yh
|
||||
bigcall C03App_CreateBackButton
|
||||
pop yh ; main window
|
||||
pop yl
|
||||
ClimateWin_new_ret:
|
||||
ret
|
||||
|
||||
Reference in New Issue
Block a user