summaryrefslogtreecommitdiff
path: root/engine/menu
diff options
context:
space:
mode:
Diffstat (limited to 'engine/menu')
-rw-r--r--engine/menu/bills_pc.asm30
-rwxr-xr-xengine/menu/main_menu.asm34
-rwxr-xr-xengine/menu/naming_screen.asm52
-rwxr-xr-xengine/menu/players_pc.asm12
-rwxr-xr-xengine/menu/pokedex.asm41
-rwxr-xr-xengine/menu/start_sub_menus.asm9
-rwxr-xr-xengine/menu/status_screen.asm22
7 files changed, 111 insertions, 89 deletions
diff --git a/engine/menu/bills_pc.asm b/engine/menu/bills_pc.asm
index 85a546e1..8b3313b6 100644
--- a/engine/menu/bills_pc.asm
+++ b/engine/menu/bills_pc.asm
@@ -85,12 +85,12 @@ DisplayPCMainMenu::
ld [H_AUTOBGTRANSFERENABLED], a
ret
-SomeonesPCText: db "SOMEONE's PC@"
-BillsPCText: db "BILL's PC@"
-PlayersPCText: db "'s PC@"
-OaksPCText: db "PROF.OAK's PC@"
-PKMNLeaguePCText: db $4a, "LEAGUE@"
-LogOffPCText: db "LOG OFF@"
+SomeonesPCText: db "PC DE ???@"
+BillsPCText: db "PC DE LEO@"
+PlayersPCText: db "PC DE @"
+OaksPCText: db "PC DE CHEN@"
+PKMNLeaguePCText: db "LIGUE ", $4a, "@"
+LogOffPCText: db "DECONNEXION@"
BillsPC_::
ld hl, wd730
@@ -339,15 +339,15 @@ DisplayMonListMenu:
ret
BillsPCMenuText:
- db "WITHDRAW ", $4a
- next "DEPOSIT ", $4a
- next "RELEASE ", $4a
- next "CHANGE BOX"
- next "SEE YA!"
+ db "RETIRER ", $4a
+ next "STOCKER ", $4a
+ next "RELACHER ", $4a
+ next "CHANGER BOITE"
+ next "SALUT!"
db "@"
BoxNoPCText:
- db "BOX No.@"
+ db "BOITE@"
KnowsHMMove::
; returns whether mon with party index [wWhichPokemon] knows an HM move
@@ -451,11 +451,11 @@ DisplayDepositWithdrawMenu:
call LoadGBPal
jr .loop
-DepositPCText: db "DEPOSIT@"
-WithdrawPCText: db "WITHDRAW@"
+DepositPCText: db "STOCKER@"
+WithdrawPCText: db "RETIRER@"
StatsCancelPCText:
db "STATS"
- next "CANCEL@"
+ next "RETOUR@"
SwitchOnText:
TX_FAR _SwitchOnText
diff --git a/engine/menu/main_menu.asm b/engine/menu/main_menu.asm
index cd4198b6..75a00486 100755
--- a/engine/menu/main_menu.asm
+++ b/engine/menu/main_menu.asm
@@ -329,16 +329,16 @@ SpecialEnterMap:
jp EnterMap
ContinueText:
- db "CONTINUE", $4e
+ db "CONTINUER", $4e
NewGameText:
- db "NEW GAME"
- next "OPTION@"
+ db "NOUVEAU JEU"
+ next "OPTIONS@"
CableClubOptionsText:
- db "TRADE CENTER"
- next "COLOSSEUM"
- next "CANCEL@"
+ db "CENTRE TROC"
+ next "COLISEE"
+ next "RETOUR@"
DisplayContinueGameInfo:
xor a
@@ -421,10 +421,10 @@ PrintPlayTime:
jp PrintNumber
SaveScreenInfoText:
- db "PLAYER"
- next "BADGES "
- next "#DEX "
- next "TIME@"
+ db "JOUEUR"
+ next "BADGES "
+ next "#DEX "
+ next "TEMPS@"
DisplayOptionMenu:
coord hl, 0, 0
@@ -579,19 +579,19 @@ DisplayOptionMenu:
jp .eraseOldMenuCursor
TextSpeedOptionText:
- db "TEXT SPEED"
- next " FAST MEDIUM SLOW@"
+ db "VIT. TEXTE"
+ next " 3 2 1 @"
BattleAnimationOptionText:
- db "BATTLE ANIMATION"
- next " ON OFF@"
+ db "ANIMATION COMBAT"
+ next " OUI NON@"
BattleStyleOptionText:
- db "BATTLE STYLE"
- next " SHIFT SET@"
+ db "STYLE COMBAT"
+ next " CHOIX DEFINI@"
OptionMenuCancelText:
- db "CANCEL@"
+ db "RETOUR@"
; sets the options variable according to the current placement of the menu cursors in the options menu
SetOptionsFromCursorPositions:
diff --git a/engine/menu/naming_screen.asm b/engine/menu/naming_screen.asm
index 2628da48..23cef72d 100755
--- a/engine/menu/naming_screen.asm
+++ b/engine/menu/naming_screen.asm
@@ -324,12 +324,15 @@ DisplayNamingScreen:
jp EraseMenuCursor
LoadEDTile:
- ld de, ED_Tile
- ld hl, vFont + $700
- ld bc, (ED_TileEnd - ED_Tile) / $8
+ call DisableLCD
+ ld de, vFont + $700
+ ld hl, ED_Tile
+ ld bc, (ED_TileEnd - ED_Tile)
; to fix the graphical bug on poor emulators
- ;lb bc, BANK(ED_Tile), (ED_TileEnd - ED_Tile) / $8
- jp CopyVideoDataDouble
+ ;lb bc, BANK(ED_Tile), (ED_TileEnd - ED_Tile)
+ ld a,$01
+ call FarCopyDataDouble
+ jp EnableLCD
ED_Tile:
INCBIN "gfx/ED_tile.1bpp"
@@ -365,6 +368,7 @@ PrintAlphabet:
ld [H_AUTOBGTRANSFERENABLED], a
jp Delay3
+<<<<<<< 25c27785aa83a12330ea58e1e35b2fec90dd84f4
LowerCaseAlphabet:
db "abcdefghijklmnopqrstuvwxyz ×():;[]",$e1,$e2,"-?!♂♀/⠄,¥UPPER CASE@"
@@ -372,6 +376,15 @@ UpperCaseAlphabet:
db "ABCDEFGHIJKLMNOPQRSTUVWXYZ ×():;[]",$e1,$e2,"-?!♂♀/⠄,¥lower case@"
PrintNicknameAndUnderscores:
+=======
+LowerCaseAlphabet: ; 6841 (1:6841)
+ db "abcdefghijklmnopqrstuvwxyz ×():;[]",$e1,$e2,"-?!♂♀/",$f2,",¥MAJUSCULES@"
+
+UpperCaseAlphabet: ; 6879 (1:6879)
+ db "ABCDEFGHIJKLMNOPQRSTUVWXYZ ×():;[]",$e1,$e2,"-?!♂♀/",$f2,",¥minuscules@"
+
+PrintNicknameAndUnderscores: ; 68b1 (1:68b1)
+>>>>>>> Initial decompilation of FR Red
call CalcStringLength
ld a, c
ld [wNamingScreenNameLength], a
@@ -467,15 +480,19 @@ CalcStringLength:
inc c
jr .loop
+<<<<<<< 25c27785aa83a12330ea58e1e35b2fec90dd84f4
PrintNamingText:
+=======
+PrintNamingText: ; 699b (1:699b)
+>>>>>>> Initial decompilation of FR Red
coord hl, 0, 1
ld a, [wNamingScreenType]
ld de, YourTextString
and a
- jr z, .notNickname
+ jr z, .placeString
ld de, RivalsTextString
dec a
- jr z, .notNickname
+ jr z, .placeString
ld a, [wcf91]
ld [wMonPartySpriteSpecies], a
push af
@@ -485,28 +502,21 @@ PrintNamingText:
call GetMonName
coord hl, 4, 1
call PlaceString
- ld hl, $1
- add hl, bc
- ld [hl], $c9
- coord hl, 1, 3
- ld de, NicknameTextString
+ ld hl, $C3DD
+ ld de, $69F2
jr .placeString
-.notNickname
- call PlaceString
- ld l, c
- ld h, b
- ld de, NameTextString
+
.placeString
jp PlaceString
YourTextString:
- db "YOUR @"
+ db "VOTRE NOM?@"
RivalsTextString:
- db "RIVAL's @"
+ db "NOM DU RIVAL?@"
NameTextString:
- db "NAME?@"
+ db "NOM?@"
NicknameTextString:
- db "NICKNAME?@"
+ db "SURNOM?@"
diff --git a/engine/menu/players_pc.asm b/engine/menu/players_pc.asm
index bc2be4ef..fc1e2bef 100755
--- a/engine/menu/players_pc.asm
+++ b/engine/menu/players_pc.asm
@@ -1,6 +1,4 @@
PlayerPC:
- ld hl, wd730
- set 6, [hl]
ld a, ITEM_NAME
ld [wNameListType], a
call SaveScreenTilesToBuffer1
@@ -15,6 +13,8 @@ PlayerPC:
call PlaySound
ld hl, TurnedOnPC2Text
call PrintText
+ ld hl, wd730
+ set 6, [hl]
PlayerPCMenu:
ld a, [wParentMenuItem]
@@ -241,10 +241,10 @@ PlayerPCToss:
jp .loop
PlayersPCMenuEntries:
- db "WITHDRAW ITEM"
- next "DEPOSIT ITEM"
- next "TOSS ITEM"
- next "LOG OFF@"
+ db "RETIRER OBJET"
+ next "STOCKER OBJET"
+ next "JETER OBJET"
+ next "DECONNEXION@"
TurnedOnPC2Text:
TX_FAR _TurnedOnPC2Text
diff --git a/engine/menu/pokedex.asm b/engine/menu/pokedex.asm
index 2da3a0f6..546203f6 100755
--- a/engine/menu/pokedex.asm
+++ b/engine/menu/pokedex.asm
@@ -360,19 +360,19 @@ DrawPokedexVerticalLine:
ret
PokedexSeenText:
- db "SEEN@"
+ db "VUS@"
PokedexOwnText:
- db "OWN@"
+ db "PRIS@"
PokedexContentsText:
- db "CONTENTS@"
+ db "SOMMAIRE@"
PokedexMenuItemsText:
- db "DATA"
- next "CRY"
- next "AREA"
- next "QUIT@"
+ db "INFO"
+ next "CRI"
+ next "ZONE"
+ next "RET@"
; tests if a pokemon's bit is set in the seen or owned pokemon bit fields
; INPUT:
@@ -515,22 +515,23 @@ ShowPokedexDataInternal:
jp z,.waitForButtonPress ; if the pokemon has not been owned, don't print the height, weight, or description
inc de ; de = address of feet (height)
ld a,[de] ; reads feet, but a is overwritten without being used
+ push af
coord hl, 12, 6
lb bc, 1, 2
call PrintNumber ; print feet (height)
- ld a,$60 ; feet symbol tile (one tick)
- ld [hl],a
- inc de
- inc de ; de = address of inches (height)
- coord hl, 15, 6
- lb bc, LEADING_ZEROES | 1, 2
- call PrintNumber ; print inches (height)
- ld a,$61 ; inches symbol tile (two ticks)
- ld [hl],a
-; now print the weight (note that weight is stored in tenths of pounds internally)
+ ld hl, $C426
+ pop af
+ cp $a
+ jr nc, .func_43d7
+ ld [hl], $F6
+.func_43d7
+ inc hl
+ ld a, [hli]
+ ldd [hl], a
+ ld [hl], $F2
inc de
inc de
- inc de ; de = address of upper byte of weight
+ inc de ; de = address of inches (height)
push de
; put weight in big-endian order at hDexWeight
ld hl,hDexWeight
@@ -590,8 +591,8 @@ ShowPokedexDataInternal:
ret
HeightWeightText:
- db "HT ?",$60,"??",$61
- next "WT ???lb@"
+ db "TAI ???",$60
+ next "PDS ???",$61,$62,"@"
; XXX does anything point to this?
PokeText:
diff --git a/engine/menu/start_sub_menus.asm b/engine/menu/start_sub_menus.asm
index 251d7ae4..c7d71b24 100755
--- a/engine/menu/start_sub_menus.asm
+++ b/engine/menu/start_sub_menus.asm
@@ -598,8 +598,9 @@ DrawTrainerInfo:
call PlaceString
coord hl, 8, 4
ld de,wPlayerMoney
- ld c,$e3
+ ld c,$c3
call PrintBCDNumber
+ ld [hl],$f0
coord hl, 9, 6
ld de,wPlayTimeHours ; hours
lb bc, LEFT_ALIGN | 1, 3
@@ -615,9 +616,9 @@ TrainerInfo_FarCopyData:
jp FarCopyData2
TrainerInfo_NameMoneyTimeText:
- db "NAME/"
- next "MONEY/"
- next "TIME/@"
+ db "NOM/"
+ next "ARG./"
+ next "TEMPS/@"
; $76 is a circle tile
TrainerInfo_BadgesText:
diff --git a/engine/menu/status_screen.asm b/engine/menu/status_screen.asm
index ef94f13c..c07dcf64 100755
--- a/engine/menu/status_screen.asm
+++ b/engine/menu/status_screen.asm
@@ -289,10 +289,10 @@ PrintStat:
ret
StatsText:
- db "ATTACK"
- next "DEFENSE"
- next "SPEED"
- next "SPECIAL@"
+ db "FOR"
+ next "DEF"
+ next "VIT"
+ next "SPE@"
StatusScreen2:
ld a, [hTilesetType]
@@ -463,8 +463,8 @@ CalcExpToLevelUp:
ret
StatusScreenExpText:
- db "EXP POINTS"
- next "LEVEL UP@"
+ db "PTS EXP."
+ next "PROCH.NIV.@"
StatusScreen_ClearName:
ld bc, 10
@@ -479,3 +479,13 @@ StatusScreen_PrintPP:
dec c
jr nz, StatusScreen_PrintPP
ret
+
+func_6cd5: ; 12cd5 (4:6cd5)
+ ld a, $80
+ ld [hli],a
+ ld a, $8F
+ ldd [hl], a
+ add hl, de
+ dec c
+ jr nz, func_6cd5
+ ret \ No newline at end of file