shithub: pokered

ref: 52660012c62fa83d37817c05f5c3cae637c473dd
dir: /engine/movie/oak_speech/clear_save.asm/

View raw version
DoClearSaveDialogue:
	call ClearScreen
	call RunDefaultPaletteCommand
	call LoadFontTilePatterns
	call LoadTextBoxTilePatterns
	ld hl, ClearSaveDataText
	call PrintText
	hlcoord 14, 7
	lb bc, 8, 15
	ld a, NO_YES_MENU
	ld [wTwoOptionMenuID], a
	ld a, TWO_OPTION_MENU
	ld [wTextBoxID], a
	call DisplayTextBoxID
	ld a, [wCurrentMenuItem]
	and a
	jp z, Init
	farcall ClearSAV
	jp Init

ClearSaveDataText:
	text_far _ClearSaveDataText
	text_end