c03: more work on climate and netstats windows.
This commit is contained in:
@@ -38,18 +38,39 @@ ClimateWin_new:
|
||||
brcc ClimateWin_new_ret
|
||||
mov xl, r18 ; use root window as parent for main window
|
||||
mov xh, r19
|
||||
ldi r24, LOW(CLIMATEWIN_SIZE)
|
||||
ldi r25, HIGH(CLIMATEWIN_SIZE)
|
||||
bigcall Object_Alloc ; Y=space (!r16, !r17, !X)
|
||||
brcc ClimateWin_new_ret
|
||||
rcall ClimateWin_Init
|
||||
ClimateWin_new_ret:
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; @routine ClimateWin_new @global
|
||||
;
|
||||
; @param Y pointer to newly allocated widget data
|
||||
; @param X pointer to root window
|
||||
; @return CFLAG set of okay, cleared otherwise
|
||||
; @clobbers any, !Y
|
||||
|
||||
ClimateWin_Init:
|
||||
ldi r16, 0 ; OPTS
|
||||
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 ; Y=main window
|
||||
brcc ClimateWin_new_ret
|
||||
brcc ClimateWin_Init_ret
|
||||
|
||||
bigcall MainWindow_GetContentWidget ; r19:r18=content window
|
||||
brcc ClimateWin_new_ret
|
||||
brcc ClimateWin_Init_ret
|
||||
mov xl, r18 ; use content window as parent
|
||||
mov xh, r19
|
||||
|
||||
; Y=MainWindow
|
||||
push yl ; main window
|
||||
push yh
|
||||
push xl ; content window
|
||||
@@ -60,7 +81,7 @@ ClimateWin_new:
|
||||
bigcall C03App_CreateBackButton
|
||||
pop yh ; main window
|
||||
pop yl
|
||||
ClimateWin_new_ret:
|
||||
ClimateWin_Init_ret:
|
||||
ret
|
||||
; @end
|
||||
|
||||
@@ -71,7 +92,6 @@ ClimateWin_new_ret:
|
||||
;
|
||||
; @param X pointer to MainWindow content window (becomes parent)
|
||||
; @return CFLAG set of okay, cleared otherwise
|
||||
; @return Y address of newly created object
|
||||
|
||||
climateWinCreateSensorWatches:
|
||||
ldi r16, 0 ; OPTS
|
||||
|
||||
Reference in New Issue
Block a user