summaryrefslogtreecommitdiff
path: root/engine/menu
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2015-07-14 02:16:19 -0500
committerdannye <corrnondacqb@yahoo.com>2015-07-14 02:16:19 -0500
commitef9e59101e10aed82184bd2fd063b1109e2e4f6a (patch)
tree2fb09fd06d2b7b960a3c0fda27e3ad9229c13a8f /engine/menu
parente25a7148d0a78549de4f33fa72d519dcaf660e97 (diff)
Use more screen dimension constants
Diffstat (limited to 'engine/menu')
-rwxr-xr-xengine/menu/start_sub_menus.asm6
-rwxr-xr-xengine/menu/status_screen.asm27
2 files changed, 17 insertions, 16 deletions
diff --git a/engine/menu/start_sub_menus.asm b/engine/menu/start_sub_menus.asm
index 48a85081..825360a6 100755
--- a/engine/menu/start_sub_menus.asm
+++ b/engine/menu/start_sub_menus.asm
@@ -714,10 +714,10 @@ SwitchPartyMon: ; 13613 (4:7613)
SwitchPartyMon_OAM: ; 13625 (4:7625)
push af
hlCoord 0, 0
- ld bc, $28
+ ld bc, SCREEN_WIDTH * 2
call AddNTimes
- ld c, $28
- ld a, $7f
+ ld c, SCREEN_WIDTH * 2
+ ld a, " "
.asm_13633
ld [hli], a
dec c
diff --git a/engine/menu/status_screen.asm b/engine/menu/status_screen.asm
index c9261804..7b3674e6 100755
--- a/engine/menu/status_screen.asm
+++ b/engine/menu/status_screen.asm
@@ -280,7 +280,7 @@ PrintStat
push hl
call PrintNumber
pop hl
- ld de, $0028
+ ld de, SCREEN_WIDTH * 2
add hl, de
ret
@@ -323,15 +323,15 @@ StatusScreen2: ; 12b57 (4:6b57)
sub c
ld b, a ; Number of moves ?
hlCoord 11, 10
- ld de, $0028
- ld a, $72
- call Func_12ccb ; Print "PP"
+ ld de, SCREEN_WIDTH * 2
+ ld a, $72 ; special P tile id
+ call StatusScreen_PrintPP ; Print "PP"
ld a, b
and a
jr z, .InitPP
ld c, a
ld a, "-"
- call Func_12ccb ; Fill the rest with --
+ call StatusScreen_PrintPP ; Fill the rest with --
.InitPP ; 12bbb
ld hl, wLoadedMonMoves
deCoord 14, 10
@@ -373,7 +373,7 @@ StatusScreen2: ; 12b57 (4:6b57)
ld bc, $0102
call PrintNumber
pop hl
- ld de, $0028
+ ld de, SCREEN_WIDTH * 2
add hl, de
ld d, h
ld e, l
@@ -411,9 +411,9 @@ StatusScreen2: ; 12b57 (4:6b57)
ld bc, $0307
call PrintNumber
hlCoord 9, 0
- call Func_12cc3
+ call StatusScreen_ClearName
hlCoord 9, 1
- call Func_12cc3
+ call StatusScreen_ClearName
ld a, [W_MONHDEXNUM]
ld [wd11e], a
call GetMonName
@@ -463,15 +463,16 @@ EXPPointsText: ; 12caf (4:6caf)
LevelUpText: ; 12cba (4:6cba)
db "LEVEL UP@"
-Func_12cc3: ; 12cc3 (4:6cc3)
- ld bc, $a
- ld a, $7f
+StatusScreen_ClearName: ; 12cc3 (4:6cc3)
+ ld bc, 10
+ ld a, " "
jp FillMemory
-Func_12ccb: ; 12ccb (4:6ccb)
+StatusScreen_PrintPP: ; 12ccb (4:6ccb)
+; print PP or -- c times, going down two rows each time
ld [hli], a
ld [hld], a
add hl, de
dec c
- jr nz, Func_12ccb
+ jr nz, StatusScreen_PrintPP
ret