c03: create light settings window.

This commit is contained in:
Martin Preuss
2026-04-30 00:11:46 +02:00
parent 721b06a044
commit 7543afa7b8
2 changed files with 39 additions and 1 deletions

View File

@@ -97,6 +97,7 @@ C03App_Init:
rcall c03AppCreateWinMenu ; (any, !Y)
rcall c03AppCreateWinClimate ; (any, !Y)
rcall c03AppCreateWinNetStats ; (any, !Y)
rcall c03AppCreateWinDebug ; (any, !Y)
rcall c03AppCreateScreenSaver ; (any, !Y)
; enter menu window
@@ -157,6 +158,39 @@ c03AppCreateWinClimate_ret:
; ---------------------------------------------------------------------------
; @routine c03AppCreateWinDebug
;
; @param Y ptr to this guiapp
; @clobbers !X
c03AppCreateWinDebug:
push yl
push yh
push yl
push yh
bigcall LightSettings_new
mov r20, yl
mov r21, yh
pop yh
pop yl
bigcall LightSettingsWin_new
mov xl, yl
mov xh, yh
pop yh
pop yl
brcc c03AppCreateWinDebug_ret
std Y+C03APP_OFFS_WDEBUG_LO, xl
std Y+C03APP_OFFS_WDEBUG_HI, xh
ldi r16, C03APP_SEL_DEBUG
rcall c03AppSetTargetAndSelector
sec
c03AppCreateWinDebug_ret:
ret
; @end
; ---------------------------------------------------------------------------
; @routine c03AppCreateWinNetStats
;
@@ -214,6 +248,7 @@ c03AppCreateScreenSaver_ret:
; @routine c03AppSetTargetAndSelector
;
; @param r16 selector
; @param Y pointer to this guiapp
; @param X pointer to new main window to set target/selector to
; @clobbers none