|
Post by quentinpsausages on Dec 19, 2023 0:20:34 GMT
Hi, Does anyone know if there is a way to bring up the INV inventory without subsequently redrawing the screen? I'm using random screen generation, but whenever the player brings up the menu, the associated redraw erases the current screen. Many thanks! Tom
|
|
|
Post by ramon on Dec 19, 2023 11:17:32 GMT
|
|
|
Post by ramon on Jan 31, 2024 7:11:51 GMT
fstd ld a,(dispx) ; bar position. ld hl,btop ; top of menu. sub (hl) ; find selected option. ld (varopt),a ; store the option. jp redraw ; redraw the screen.
fopt0 push bc ; store option counter in b register. call fobj ; find next object in inventory. pop bc ; restore option counter. djnz fopt0 ; repeat for relevant steps down the list. ld a,(combyt) ; get option. dec a ; one less, due to where we increment combyt. ld (varopt),a ; store the option. jp redraw ; redraw the screen. I know that at the end of the inventory menu the screen is redrawn. You have to try to eliminate this feature from the motor program.
I found these two lines in that program. You must comment them out (with ";" at the beginning) so that they are not executed, without deleting them. Like this:
;jp redraw
Try testing. If you are not convinced by the solution, we will look for another one.
|
|