~rabbits/potato

f5ee23aad35e45faf04fdd08f2c4c732602e5bce — neauoire 2 months ago 8c2ab82
Better starting position for calendar
2 files changed, 18 insertions(+), 16 deletions(-)

M src/apps.tal
M src/manifest.tal
M src/apps.tal => src/apps.tal +15 -14
@@ 67,7 67,7 @@ JMP2r
		2200 =tab-win "Tab $1
		4200 =close-win "Close $1
	03 "View $1
		0000 =current-month "Today $1
		0000 =now-month "Today $1
		4000 =prev-month "Prev 20 "Month $1
		8000 =next-month "Next 20 "Month $1
	$1


@@ 100,13 100,14 @@ BRK

JMP2

@current-month ( -- )
@now-month ( -- )

	.DateTime/year DEI2
	.DateTime/month DEI

@select-month ( year* m -- )

	( TODO: Remove from zero-page )
	.month STZ .year STZ2
	;get-active-win JSR2 ;draw-win ( .. )



@@ 880,18 881,18 @@ JMP2

JMP2

&notec ( -- ) #00 ,&press-key JSR JMP2r
&notecs ( -- ) #01 ,&press-key JSR JMP2r
&noted ( -- ) #02 ,&press-key JSR JMP2r
&noteds ( -- ) #03 ,&press-key JSR JMP2r
&notee ( -- ) #04 ,&press-key JSR JMP2r
&notef ( -- ) #05 ,&press-key JSR JMP2r
&notefs ( -- ) #06 ,&press-key JSR JMP2r
&noteg ( -- ) #07 ,&press-key JSR JMP2r
&notegs ( -- ) #08 ,&press-key JSR JMP2r
&notea ( -- ) #09 ,&press-key JSR JMP2r
&noteas ( -- ) #0a ,&press-key JSR JMP2r
&noteb ( -- ) #0b ,&press-key JSR JMP2r
&notec ( -- ) #00 ,&press-key JMP
&notecs ( -- ) #01 ,&press-key JMP
&noted ( -- ) #02 ,&press-key JMP
&noteds ( -- ) #03 ,&press-key JMP
&notee ( -- ) #04 ,&press-key JMP
&notef ( -- ) #05 ,&press-key JMP
&notefs ( -- ) #06 ,&press-key JMP
&noteg ( -- ) #07 ,&press-key JMP
&notegs ( -- ) #08 ,&press-key JMP
&notea ( -- ) #09 ,&press-key JMP
&noteas ( -- ) #0a ,&press-key JMP
&noteb ( -- ) #0b ,&press-key JMP

&press-key ( key -- )


M src/manifest.tal => src/manifest.tal +3 -2
@@ 58,9 58,10 @@ BRK
	( unique )
	;app-calendar ;find-win JSR2
		DUP #ff NEQ ,&reselect JCN POP
	( create window )
	;no-name ;app-calendar #1d10
	( y ) #0030
	( x ) #0030
	( y ) #0018
	( x ) .Screen/width DEI2 #00f8 SUB2
		;add-win JSR2

BRK