summaryrefslogtreecommitdiff
path: root/engine/link/link_trade.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/link/link_trade.asm')
-rw-r--r--engine/link/link_trade.asm29
1 files changed, 16 insertions, 13 deletions
diff --git a/engine/link/link_trade.asm b/engine/link/link_trade.asm
index 4f4d3c5ce..101a3dc70 100644
--- a/engine/link/link_trade.asm
+++ b/engine/link/link_trade.asm
@@ -8,20 +8,23 @@ __LoadTradeScreenBorderGFX:
call Get2bpp
ret
-Function16d42e:
- ld hl, Tilemap_MobileTradeBorderFullscreen
+LoadMobileTradeBorderTilemap:
+ ld hl, MobileTradeBorderTilemap
decoord 0, 0
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
call CopyBytes
ret
-Function16d43b: ; unreferenced
+TestMobileTradeBorderTilemap: ; unreferenced
+; Loads the mobile trade border graphics and tilemap,
+; with a placeholder SCGB_DIPLOMA layout, and exits
+; after pressing A or B. Possibly used for testing.
call LoadStandardMenuHeader
call ClearBGPalettes
call ClearTilemap
call ClearSprites
farcall __LoadTradeScreenBorderGFX ; useless to farcall
- farcall Function16d42e ; useless to farcall
+ farcall LoadMobileTradeBorderTilemap ; useless to farcall
ld b, SCGB_DIPLOMA
call GetSGBLayout
call SetPalettes
@@ -30,13 +33,13 @@ Function16d43b: ; unreferenced
call Call_ExitMenu
ret
-Tilemap_MobileTradeBorderFullscreen:
-INCBIN "gfx/trade/border_mobile_fullscreen.tilemap"
+MobileTradeBorderTilemap:
+INCBIN "gfx/trade/border_mobile.tilemap"
-Tilemap_CableTradeBorderTop:
+CableTradeBorderTopTilemap:
INCBIN "gfx/trade/border_cable_top.tilemap"
-Tilemap_CableTradeBorderBottom:
+CableTradeBorderBottomTilemap:
INCBIN "gfx/trade/border_cable_bottom.tilemap"
_LinkTextbox:
@@ -111,7 +114,7 @@ _LinkTextbox:
InitTradeSpeciesList:
call _LoadTradeScreenBorderGFX
- call Function16d6ae
+ call LoadCableTradeBorderTilemap
farcall InitMG_Mobile_LinkTradePalMap
farcall PlaceTradePartnerNamesAndParty
hlcoord 10, 17
@@ -137,13 +140,13 @@ LoadTradeRoomBGPals:
farcall _LoadTradeRoomBGPals
ret
-Function16d6ae:
- call Function16d42e
- ld hl, Tilemap_CableTradeBorderTop
+LoadCableTradeBorderTilemap:
+ call LoadMobileTradeBorderTilemap
+ ld hl, CableTradeBorderTopTilemap
decoord 0, 0
ld bc, 2 * SCREEN_WIDTH
call CopyBytes
- ld hl, Tilemap_CableTradeBorderBottom
+ ld hl, CableTradeBorderBottomTilemap
decoord 0, 16
ld bc, 2 * SCREEN_WIDTH
call CopyBytes