You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Apply most of pokecrystal PR 1105
This commit is contained in:
@@ -12,14 +12,14 @@ ClearedLevelScreen:
|
||||
call ClearMenuAndWindowData
|
||||
ld b, CGB_DIPLOMA
|
||||
call GetCGBLayout
|
||||
call SetPalettes
|
||||
call SetDefaultBGPAndOBP
|
||||
call EnableLCD
|
||||
ld hl, .LevelCleared1Text
|
||||
bccoord 3, 1
|
||||
call PrintHLTextAtBC
|
||||
call PrintTextboxTextAt
|
||||
ld hl, .LevelCleared2Text
|
||||
bccoord 3, 3
|
||||
call PrintHLTextAtBC
|
||||
call PrintTextboxTextAt
|
||||
.loop
|
||||
call DelayFrame
|
||||
call GetJoypad
|
||||
|
||||
@@ -23,7 +23,7 @@ GameMenu_KeepMusic:
|
||||
call ClearMenuAndWindowData
|
||||
ld b, CGB_DIPLOMA
|
||||
call GetCGBLayout
|
||||
call SetPalettes
|
||||
call SetDefaultBGPAndOBP
|
||||
xor a
|
||||
ld [wWhichIndexSet], a
|
||||
ld hl, .MenuHeader
|
||||
|
||||
@@ -3,7 +3,7 @@ InitGender:
|
||||
call LoadGenderScreenPal
|
||||
call LoadGenderScreenLightBlueTile
|
||||
call WaitBGMap2
|
||||
call SetPalettes
|
||||
call SetDefaultBGPAndOBP
|
||||
ld hl, AreYouABoyOrAreYouAGirlText
|
||||
call PrintText1bpp
|
||||
ld hl, .MenuHeader
|
||||
|
||||
@@ -58,7 +58,7 @@ LevelSelectionMenu::
|
||||
call LevelSelectionMenu_DrawTimeOfDaySymbol
|
||||
ld b, CGB_LEVEL_SELECTION_MENU
|
||||
call GetCGBLayout ; apply and commit pals
|
||||
call SetPalettes
|
||||
call SetDefaultBGPAndOBP
|
||||
ld c, 20 ;
|
||||
call DelayFrames ; page shown --> page and textbox shown
|
||||
|
||||
@@ -105,7 +105,7 @@ LevelSelectionMenu::
|
||||
call LevelSelectionMenu_DrawTimeOfDaySymbol
|
||||
ld b, CGB_LEVEL_SELECTION_MENU
|
||||
call GetCGBLayout ; apply and commit pals
|
||||
call SetPalettes
|
||||
call SetDefaultBGPAndOBP
|
||||
|
||||
ld de, MUSIC_GAME_CORNER
|
||||
call PlayMusic
|
||||
|
||||
@@ -20,7 +20,7 @@ MainMenu:
|
||||
call ClearMenuAndWindowData
|
||||
ld b, CGB_DIPLOMA
|
||||
call GetCGBLayout
|
||||
call SetPalettes
|
||||
call SetDefaultBGPAndOBP
|
||||
call MainMenu_GetWhichMenu
|
||||
ld [wWhichIndexSet], a
|
||||
call MainMenu_PrintCurrentTimeAndDay
|
||||
|
||||
@@ -624,7 +624,7 @@ RestoreOverworldMapTiles: ; unreferenced
|
||||
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
||||
call CopyBytes
|
||||
call CloseSRAM
|
||||
call LoadScreenTilemapAndAttrmapPals
|
||||
call LoadOverworldTilemapAndAttrmapPals
|
||||
xor a ; sScratch
|
||||
call OpenSRAM
|
||||
ld hl, sScratch
|
||||
|
||||
@@ -55,7 +55,7 @@ NamingScreen:
|
||||
call .GetNamingScreenSetup
|
||||
call WaitBGMap
|
||||
call WaitTop
|
||||
call SetPalettes
|
||||
call SetDefaultBGPAndOBP
|
||||
call NamingScreen_InitNameEntry
|
||||
ret
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ _Option:
|
||||
call WaitBGMap
|
||||
ld b, CGB_DIPLOMA
|
||||
call GetCGBLayout
|
||||
call SetPalettes
|
||||
call SetDefaultBGPAndOBP
|
||||
|
||||
.joypad_loop
|
||||
call JoyTextDelay
|
||||
|
||||
@@ -36,7 +36,7 @@ StartMenu::
|
||||
call DrawVariableLengthMenuBox
|
||||
call .DrawBugContestStatusBox
|
||||
call SafeUpdateSprites
|
||||
call HDMATransferTilemapAndAttrmap_OpenAndCloseMenu
|
||||
call HDMATransferTilemapAndAttrmap_Menu
|
||||
farcall LoadFont_NoOAMUpdate
|
||||
call .DrawBugContestStatus
|
||||
call UpdateTimePals
|
||||
|
||||
@@ -67,7 +67,7 @@ TrainerCard:
|
||||
call WaitBGMap
|
||||
ld b, CGB_TRAINER_CARD
|
||||
call GetCGBLayout
|
||||
call SetPalettes
|
||||
call SetDefaultBGPAndOBP
|
||||
call WaitBGMap
|
||||
ld hl, wJumptableIndex
|
||||
xor a ; TRAINERCARDSTATE_PAGE1_LOADGFX
|
||||
|
||||
Reference in New Issue
Block a user