Limit bounds
This commit is contained in:
parent
db9edf663e
commit
563e9a5e3f
|
@ -23,6 +23,9 @@
|
|||
|
||||
@on-mouse ( -> )
|
||||
[ LIT2 00 -Mouse/state ] DEI NEQ #42 ADD ;pointer-icn <update-pointer>
|
||||
( | within )
|
||||
.Mouse/x DEI2 #0008 SUB2 #0120 LTH2 ?{ BRK }
|
||||
.Mouse/y DEI2 #0008 SUB2 #00c0 LTH2 ?{ BRK }
|
||||
.Mouse/state DEI ?on-mouse-down
|
||||
( | hover )
|
||||
get-mouse-key <set-hover>
|
||||
|
@ -42,7 +45,6 @@
|
|||
JMP2r
|
||||
|
||||
@<set-hover> ( id* -- )
|
||||
DUP2 #0030 LTH2 ?{ POP2 JMP2r }
|
||||
DUP2 .hover LDZ2 EQU2 ?{
|
||||
( undraw ) .hover LDZ2 ;btn-chr <draw-key-id>
|
||||
DUP2 ;btn-hover-chr <draw-key-id>
|
||||
|
@ -84,9 +86,10 @@
|
|||
JMP2r
|
||||
|
||||
@<draw-key> ( a* b* c* frame* -- )
|
||||
DUP2 ;btn-hover-chr EQU2 STH
|
||||
<draw-button>
|
||||
.Screen/x DEI2k #0002 SUB2 ROT DEO2
|
||||
.Screen/y DEI2k #0024 SUB2 ROT DEO2
|
||||
.Screen/y DEI2k #0024 STHr SUB SUB2 ROT DEO2
|
||||
( | a )
|
||||
<draw-glyph>
|
||||
.Screen/x DEI2k #0002 SUB2 ROT DEO2
|
||||
|
|
Loading…
Reference in New Issue