mirror of https://github.com/pret/pokecrystal.git
05:OBPals+6*8 == 01:wCurMessageScrollPosition (new)
This commit is contained in:
parent
2ae2ce4fde
commit
2c4777f336
|
@ -383,7 +383,7 @@ MailboxPC_PrintMailAuthor: ; 0x447fb
|
||||||
|
|
||||||
MailboxPC: ; 0x44806
|
MailboxPC: ; 0x44806
|
||||||
xor a
|
xor a
|
||||||
ld [OBPals palette 6], a
|
ld [wCurMessageScrollPosition], a
|
||||||
ld a, 1
|
ld a, 1
|
||||||
ld [wCurMessageIndex], a
|
ld [wCurMessageIndex], a
|
||||||
.loop
|
.loop
|
||||||
|
@ -397,11 +397,11 @@ MailboxPC: ; 0x44806
|
||||||
|
|
||||||
ld a, [wCurMessageIndex]
|
ld a, [wCurMessageIndex]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
ld a, [OBPals palette 6]
|
ld a, [wCurMessageScrollPosition]
|
||||||
ld [wMenuScrollPosition], a
|
ld [wMenuScrollPosition], a
|
||||||
call ScrollingMenu
|
call ScrollingMenu
|
||||||
ld a, [wMenuScrollPosition]
|
ld a, [wMenuScrollPosition]
|
||||||
ld [OBPals palette 6], a
|
ld [wCurMessageScrollPosition], a
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
ld [wCurMessageIndex], a
|
ld [wCurMessageIndex], a
|
||||||
|
|
||||||
|
|
2
wram.asm
2
wram.asm
|
@ -1839,7 +1839,7 @@ CurElevatorFloors:: db
|
||||||
|
|
||||||
NEXTU ; d0f0
|
NEXTU ; d0f0
|
||||||
; mailbox data
|
; mailbox data
|
||||||
ds 1
|
wCurMessageScrollPosition:: db
|
||||||
wCurMessageIndex:: db
|
wCurMessageIndex:: db
|
||||||
wMailboxCount:: db
|
wMailboxCount:: db
|
||||||
wMailboxItems:: ds MAILBOX_CAPACITY
|
wMailboxItems:: ds MAILBOX_CAPACITY
|
||||||
|
|
Loading…
Reference in New Issue