c03: create light settings window.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user