Separate constants for name types and naming screen types
This commit is contained in:
@@ -61,10 +61,10 @@ NamingScreen:
|
||||
|
||||
.GetNamingScreenSetup:
|
||||
ld a, [wNamingScreenType]
|
||||
maskbits NUM_NAME_TYPES
|
||||
maskbits NUM_NAMING_SCREEN_TYPES
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .Jumptable
|
||||
ld hl, NamingScreenJumptable
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
@@ -72,16 +72,18 @@ NamingScreen:
|
||||
ld l, a
|
||||
jp hl
|
||||
|
||||
.Jumptable:
|
||||
; entries correspond to NAME_* constants
|
||||
NamingScreenJumptable:
|
||||
; entries correspond to NAME_* constants (see constants/menu_constants.asm)
|
||||
table_width 2
|
||||
dw .Pokemon
|
||||
dw .Player
|
||||
dw .Rival
|
||||
dw .Mom
|
||||
dw .Box
|
||||
dw .Tomodachi
|
||||
dw .Friend
|
||||
dw .Pokemon
|
||||
dw .Pokemon
|
||||
assert_table_length NUM_NAMING_SCREEN_TYPES
|
||||
|
||||
.Pokemon:
|
||||
ld a, [wCurPartySpecies]
|
||||
@@ -180,14 +182,14 @@ NamingScreen:
|
||||
.BoxNameString:
|
||||
db "BOX NAME?@"
|
||||
|
||||
.Tomodachi:
|
||||
.Friend:
|
||||
hlcoord 3, 2
|
||||
ld de, .oTomodachi_no_namae_sutoringu
|
||||
ld de, .FriendsNameString
|
||||
call PlaceString
|
||||
call .StoreSpriteIconParams
|
||||
ret
|
||||
|
||||
.oTomodachi_no_namae_sutoringu
|
||||
.FriendsNameString:
|
||||
db "おともだち の なまえは?@"
|
||||
|
||||
.LoadSprite:
|
||||
|
Reference in New Issue
Block a user