mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Constants for TextBoxFlags
This commit is contained in:
parent
9f017cbab8
commit
e1a672e427
@ -29,6 +29,11 @@ TEXT_DELAY_SLOW EQU 5
|
||||
const FRAME_7 ; 6
|
||||
const FRAME_8 ; 7
|
||||
|
||||
; TextBoxFlags:
|
||||
const_def
|
||||
const TEXT_DELAY_F ; 0
|
||||
const NO_TEXT_DELAY_F ; 1
|
||||
|
||||
; Options2:
|
||||
const_def
|
||||
const MENU_ACCOUNT ; 0
|
||||
|
@ -5,12 +5,12 @@ DefaultOptions: ; 14f7c
|
||||
db $00
|
||||
; TextBoxFrame: frame 1
|
||||
db FRAME_1
|
||||
; TextBoxFlags: ??
|
||||
db $01
|
||||
; TextBoxFlags: use text speed
|
||||
db 1 << TEXT_DELAY_F
|
||||
; GBPrinter: normal brightness
|
||||
db GBPRINTER_NORMAL
|
||||
; Options2: menu account on
|
||||
db $01
|
||||
db 1 << MENU_ACCOUNT
|
||||
; $cfd2: ??
|
||||
db $00
|
||||
; $cfd3: ??
|
||||
|
4
home.asm
4
home.asm
@ -306,7 +306,7 @@ PrintLetterDelay:: ; 313d
|
||||
|
||||
; non-scrolling text?
|
||||
ld a, [TextBoxFlags]
|
||||
bit 1, a
|
||||
bit NO_TEXT_DELAY_F, a
|
||||
ret z
|
||||
|
||||
push hl
|
||||
@ -323,7 +323,7 @@ PrintLetterDelay:: ; 313d
|
||||
|
||||
; force fast scroll?
|
||||
ld a, [TextBoxFlags]
|
||||
bit 0, a
|
||||
bit TEXT_DELAY_F, a
|
||||
jr z, .fast
|
||||
|
||||
; text speed
|
||||
|
@ -697,7 +697,7 @@ PokeFluteTerminatorCharacter:: ; 13e0
|
||||
PlaceHLTextAtBC:: ; 13e5
|
||||
ld a, [TextBoxFlags]
|
||||
push af
|
||||
set 1, a
|
||||
set NO_TEXT_DELAY_F, a
|
||||
ld [TextBoxFlags], a
|
||||
|
||||
call DoTextUntilTerminator
|
||||
|
Loading…
Reference in New Issue
Block a user