test cartlist lengths and document limitations and alternative method for scrollbar rendering
This commit is contained in:
parent
bd123b825a
commit
417c1dd137
2 changed files with 30 additions and 4 deletions
|
@ -34,3 +34,26 @@ and bizniss
|
||||||
and buznets
|
and buznets
|
||||||
and whimsy
|
and whimsy
|
||||||
and also combs
|
and also combs
|
||||||
|
noodle
|
||||||
|
orca
|
||||||
|
left
|
||||||
|
ustrat
|
||||||
|
katbug
|
||||||
|
soul grind
|
||||||
|
hyperkaos
|
||||||
|
niju
|
||||||
|
pokiminz
|
||||||
|
yeet
|
||||||
|
funk
|
||||||
|
what
|
||||||
|
is
|
||||||
|
this
|
||||||
|
bizzzz
|
||||||
|
eele
|
||||||
|
blunt
|
||||||
|
junt
|
||||||
|
hanf
|
||||||
|
yank
|
||||||
|
yunt
|
||||||
|
yeet
|
||||||
|
eee
|
||||||
|
|
|
@ -548,6 +548,10 @@ RTN
|
||||||
|
|
||||||
RTN
|
RTN
|
||||||
|
|
||||||
|
( this scrollbar breaks down with about 2x as many cartridges as the scren
|
||||||
|
has room for. A better method would be keeping track of the height, step,
|
||||||
|
and position )
|
||||||
|
|
||||||
@draw-scrollbar ( -> )
|
@draw-scrollbar ( -> )
|
||||||
|
|
||||||
.Screen/width DEI2 #0048 SUB2 .Screen/x DEO2
|
.Screen/width DEI2 #0048 SUB2 .Screen/x DEO2
|
||||||
|
@ -571,18 +575,17 @@ RTN
|
||||||
&start-loop
|
&start-loop
|
||||||
#0028 .Screen/y DEO2
|
#0028 .Screen/y DEO2
|
||||||
( store the number of carts per tile of the scroll bar )
|
( store the number of carts per tile of the scroll bar )
|
||||||
.ncarts LDZ .list-height LDZ SUB .list-height LDZ MOD INC
|
.ncarts LDZ .list-height LDZ DIV STH
|
||||||
STH
|
|
||||||
|
|
||||||
.list-height LDZ #00
|
.list-height LDZ #00
|
||||||
&while EQUk ,&end JCN
|
&while EQUk ,&end JCN
|
||||||
( trough top )
|
( trough top )
|
||||||
DUP INC .list-top LDZ GTH ,&handle JCN
|
DUP INC STHrk MUL .list-top LDZ GTH ,&handle JCN
|
||||||
INC
|
INC
|
||||||
INC-Y
|
INC-Y
|
||||||
,&while JMP
|
,&while JMP
|
||||||
&handle
|
&handle
|
||||||
DUP .list-top LDZ .list-height LDZ ADD STHrk SUB LTH #00 EQU ,&trough-bottom JCN
|
DUP INC INC STHrk .ncarts LDZ [ .list-top LDZ .list-height LDZ ADD ] SUB MUL ADD .list-height LDZ GTH ,&trough-bottom JCN
|
||||||
;scrollbar .Screen/addr DEO2
|
;scrollbar .Screen/addr DEO2
|
||||||
#81 .Screen/sprite DEO
|
#81 .Screen/sprite DEO
|
||||||
&trough-bottom
|
&trough-bottom
|
||||||
|
|
Loading…
Reference in a new issue