Merge branch 'master' of https://github.com/mid-kid/pokecrystal (resolve PR #452)
# Conflicts: # data/player_names.asm # engine/battle/menu.asm # engine/billspc.asm # engine/billspctop.asm # engine/buy_sell_toss.asm # engine/decorations.asm # engine/delete_save_change_clock.asm # engine/events/buena.asm # engine/events/elevator.asm # engine/events/kurt.asm # engine/events/mom.asm # engine/events/move_tutor.asm # engine/events/pokecenter_pc.asm # engine/events/pokepic.asm # engine/events/std_scripts.asm # engine/events/unown_walls.asm # engine/init_gender.asm # engine/intro_menu.asm # engine/mail.asm # engine/main_menu.asm # engine/mart.asm # engine/menu_2.asm # engine/mon_menu.asm # engine/pack.asm # engine/slot_machine.asm # engine/start_menu.asm # home/menu.asm # maps/CeladonDeptStore6F.asm # maps/CeladonGameCornerPrizeRoom.asm # maps/DragonShrine.asm # maps/EarlsPokemonAcademy.asm # maps/GoldenrodCity.asm # maps/GoldenrodDeptStore6F.asm # maps/GoldenrodGameCorner.asm # maps/GoldenrodPokeComCenter2FMobile.asm # mobile/mobile_12.asm # mobile/mobile_12_2.asm # mobile/mobile_22.asm # mobile/mobile_22_2.asm # mobile/mobile_40.asm # mobile/mobile_45.asm # mobile/mobile_45_sprite_engine.asm # mobile/mobile_46.asm # mobile/mobile_5c.asm # mobile/mobile_5f.asm # mobile/mobile_menu.asm
This commit is contained in:
@@ -110,14 +110,14 @@ Mobile_GetMenuSelection: ; 24098
|
||||
ret
|
||||
; 240cd
|
||||
|
||||
GetMenuNumberOfColumns: ; 240cd
|
||||
ld a, [wMenuData2Items]
|
||||
Get2DMenuNumberOfColumns: ; 240cd
|
||||
ld a, [wMenuData2_2DMenuDimensions]
|
||||
and $f
|
||||
ret
|
||||
; 240d3
|
||||
|
||||
GetMenuNumberOfRows: ; 240d3
|
||||
ld a, [wMenuData2Items]
|
||||
Get2DMenuNumberOfRows: ; 240d3
|
||||
ld a, [wMenuData2_2DMenuDimensions]
|
||||
swap a
|
||||
and $f
|
||||
ret
|
||||
@@ -130,19 +130,19 @@ Place2DMenuItemStrings: ; 240db
|
||||
ld d, [hl]
|
||||
call GetMenuTextStartCoord
|
||||
call Coord2Tile
|
||||
call GetMenuNumberOfRows
|
||||
call Get2DMenuNumberOfRows
|
||||
ld b, a
|
||||
.row
|
||||
push bc
|
||||
push hl
|
||||
call GetMenuNumberOfColumns
|
||||
call Get2DMenuNumberOfColumns
|
||||
ld c, a
|
||||
.col
|
||||
push bc
|
||||
ld a, [wMenuData2_2DMenuItemStringsBank]
|
||||
call Place2DMenuItemName
|
||||
inc de
|
||||
ld a, [wMenuData2Spacing]
|
||||
ld a, [wMenuData2_2DMenuSpacing]
|
||||
ld c, a
|
||||
ld b, 0
|
||||
add hl, bc
|
||||
@@ -174,9 +174,9 @@ Init2DMenuCursorPosition: ; 2411a (9:411a)
|
||||
dec c
|
||||
ld a, c
|
||||
ld [w2DMenuCursorInitX], a
|
||||
call GetMenuNumberOfRows
|
||||
call Get2DMenuNumberOfRows
|
||||
ld [w2DMenuNumRows], a
|
||||
call GetMenuNumberOfColumns
|
||||
call Get2DMenuNumberOfColumns
|
||||
ld [w2DMenuNumCols], a
|
||||
call .InitFlags_a
|
||||
call .InitFlags_b
|
||||
@@ -238,7 +238,7 @@ Init2DMenuCursorPosition: ; 2411a (9:411a)
|
||||
; 2418a
|
||||
|
||||
.InitFlags_b: ; 2418a
|
||||
ld a, [wMenuData2Spacing]
|
||||
ld a, [wMenuData2_2DMenuSpacing]
|
||||
or $20
|
||||
ld [w2DMenuCursorOffsets], a
|
||||
ret
|
||||
|
Reference in New Issue
Block a user