forked from gameboyadvancesp/understanding-pokemon-red
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7a3715
commit 6628a7c
Showing
8 changed files
with
33 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,38 @@ | ||
; **DoClearSaveDialogue** | ||
; タイトル画面でセーブデータ完全消去のダイアログを出して、プレイヤーに選択させる | ||
; - - - | ||
; Yesを選んだらセーブデータを消去して Initへジャンプ | ||
; Noなら何もせず Initへジャンプ | ||
DoClearSaveDialogue: | ||
; VRAMにデータを準備 | ||
call ClearScreen | ||
call RunDefaultPaletteCommand | ||
call LoadFontTilePatterns | ||
call LoadTextBoxTilePatterns | ||
|
||
; "Clear all saved data?" | ||
ld hl, ClearSaveDataText | ||
call PrintText | ||
|
||
; No/Yes の 2択Menu を表示し、プレイヤーの選択を待つ | ||
coord hl, 14, 7 | ||
lb bc, 8, 15 | ||
ld a, NO_YES_MENU | ||
ld [wTwoOptionMenuID], a | ||
ld a, TWO_OPTION_MENU | ||
ld [wTextBoxID], a | ||
call DisplayTextBoxID | ||
|
||
; No を選んだ | ||
ld a, [wCurrentMenuItem] | ||
and a | ||
jp z, Init | ||
|
||
; Yesを選んだ | ||
callba ClearSAV | ||
jp Init | ||
|
||
; "Clear all saved data?" | ||
ClearSaveDataText: | ||
TX_FAR _ClearSaveDataText | ||
db "@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters