shithub: pokered

ref: 3756ec6dd94daf1ea5826f9bd9e30e00087f242f
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