c03, gui2: new GUI now basically works.

This commit is contained in:
Martin Preuss
2026-04-06 01:45:56 +02:00
parent 69daa1465b
commit 487cd13297
7 changed files with 661 additions and 57 deletions

View File

@@ -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