Draw spacebar with frame

This commit is contained in:
Devine Lu Linvega 2024-02-11 09:11:38 -08:00
parent abfb3f4760
commit f379e90629
2 changed files with 11 additions and 44 deletions

View File

@ -49,40 +49,6 @@
ffff ffff ffff 0000 ffff ffff 0000 ff00 ffff ffff ffff 0000 ffff ffff 0000 ff00
fcfc fcfc fcf8 0000 fefe fefa 0204 f800 ] fcfc fcfc fcf8 0000 fefe fefa 0204 f800 ]
@button-icn
&top [
0000 1f3f 3f3f 3f3f 001f 3f7f 7f7f 7f7f
0000 ffff ffff ffff 00ff ffff ffff ffff
0000 ffff ffff ffff 00ff ffff ffff ffff
0000 f8fc fcfc fcfc 00f8 fcfe fefe fefe ]
&middle [
3f3f 3f3f 3f3f 3f3f 7f7f 7f7f 7f7f 7f7f
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
fcfc fcfc fcfc fcfc fefe fefe fefe fefe ]
&bottom [
3f3f 3f3f 3f1f 0000 7f7f 7f5f 4020 1f00
ffff ffff ffff 0000 ffff ffff 0000 ff00
ffff ffff ffff 0000 ffff ffff 0000 ff00
fcfc fcfc fcf8 0000 fefe fefa 0204 f800 ]
@button-wide-icn
&left [
0000 1f3f 3f3f 3f3f 001f 3f7f 7f7f 7f7f
3f3f 3f3f 3f3f 3f3f 7f7f 7f7f 7f7f 7f7f
3f3f 3f3f 3f3f 3f3f 7f7f 7f7f 7f7f 7f7f
3f3f 3f3f 3f1f 0000 7f7f 7f5f 4020 1f00 ]
&center [
0000 ffff ffff ffff 00ff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff 0000 ffff ffff 0000 ff00 ]
&right [
0000 f8fc fcfc fcfc 00f8 fcfe fefe fefe
fcfc fcfc fcfc fcfc fefe fefe fefe fefe
fcfc fcfc fcfc fcfc fefe fefe fefe fefe
fcfc fcfc fcf8 0000 fefe fefa 0204 f800 ]
@keys @keys
&peep 0000 0060 1008 0808 0808 0808 0000 0000 ={ f090 9190 } &peep 0000 0060 1008 0808 0808 0808 0000 0000 ={ f090 9190 }
&tot 0000 0008 1868 0808 0808 0808 0000 0000 ={ f090 9190 } &tot 0000 0008 1868 0808 0808 0808 0000 0000 ={ f090 9190 }

View File

@ -121,15 +121,11 @@
JMP2r JMP2r
@<draw-key-space> ( id* -- ) @<draw-key-space> ( id* -- )
POP2 [ LIT2 35 -Screen/auto ] DEO .Screen/x DEI2 .Screen/y DEI2 #1204 ;btn-chr <draw-frame>
;button-wide-icn/left .Screen/addr DEO2 ;fill-icn .Screen/addr DEO2
[ LIT2 81 -Screen/sprite ] DEOk DEOk #ef [ LIT2 31 -Screen/auto ] DEO
&l ( -- ) #03ee <draw-times>
;button-wide-icn/center .Screen/addr DEO2 POP2 JMP2r
[ LIT2 81 -Screen/sprite ] DEO
INC DUP ?&l
POP DEO
JMP2r
@<draw-button> ( -- ) @<draw-button> ( -- )
.Screen/x DEI2 .Screen/y DEI2 #0204 ;btn-chr <draw-frame> .Screen/x DEI2 .Screen/y DEI2 #0204 ;btn-chr <draw-frame>
@ -138,6 +134,11 @@
[ LIT2 03 -Screen/sprite ] DEOk DEOk DEOk DEO [ LIT2 03 -Screen/sprite ] DEOk DEOk DEOk DEO
JMP2r JMP2r
@<draw-times> ( color times -- )
OVR .Screen/sprite DEO
INC DUP ?<draw-times>
POP2 JMP2r
@<update-pointer> ( color addr* -- ) @<update-pointer> ( color addr* -- )
[ LIT2 00 -Screen/auto ] DEO [ LIT2 00 -Screen/auto ] DEO
;fill-icn .Screen/addr DEO2 ;fill-icn .Screen/addr DEO2