2018-06-24 16:09:41 +02:00
|
|
|
_InitMG_Mobile_LinkTradePalMap:
|
2020-02-13 18:30:13 +01:00
|
|
|
hlcoord 0, 0, wAttrmap
|
2015-12-16 21:57:42 -05:00
|
|
|
lb bc, 16, 2
|
|
|
|
ld a, $4
|
2023-07-24 21:13:11 +02:00
|
|
|
call FillBoxCGB
|
2015-12-16 21:57:42 -05:00
|
|
|
ld a, $3
|
2020-02-13 18:30:13 +01:00
|
|
|
ldcoord_a 0, 1, wAttrmap
|
|
|
|
ldcoord_a 0, 14, wAttrmap
|
|
|
|
hlcoord 2, 0, wAttrmap
|
2015-12-16 21:57:42 -05:00
|
|
|
lb bc, 8, 18
|
|
|
|
ld a, $5
|
2023-07-24 21:13:11 +02:00
|
|
|
call FillBoxCGB
|
2020-02-13 18:30:13 +01:00
|
|
|
hlcoord 2, 8, wAttrmap
|
2015-12-16 21:57:42 -05:00
|
|
|
lb bc, 8, 18
|
|
|
|
ld a, $6
|
2023-07-24 21:13:11 +02:00
|
|
|
call FillBoxCGB
|
2020-02-13 18:30:13 +01:00
|
|
|
hlcoord 0, 16, wAttrmap
|
2015-12-16 21:57:42 -05:00
|
|
|
lb bc, 2, SCREEN_WIDTH
|
|
|
|
ld a, $4
|
2023-07-24 21:13:11 +02:00
|
|
|
call FillBoxCGB
|
2015-12-16 21:57:42 -05:00
|
|
|
ld a, $3
|
|
|
|
lb bc, 6, 1
|
2020-02-13 18:30:13 +01:00
|
|
|
hlcoord 6, 1, wAttrmap
|
2023-07-24 21:13:11 +02:00
|
|
|
call FillBoxCGB
|
2015-12-16 21:57:42 -05:00
|
|
|
ld a, $3
|
|
|
|
lb bc, 6, 1
|
2020-02-13 18:30:13 +01:00
|
|
|
hlcoord 17, 1, wAttrmap
|
2023-07-24 21:13:11 +02:00
|
|
|
call FillBoxCGB
|
2015-12-16 21:57:42 -05:00
|
|
|
ld a, $3
|
|
|
|
lb bc, 6, 1
|
2020-02-13 18:30:13 +01:00
|
|
|
hlcoord 6, 9, wAttrmap
|
2023-07-24 21:13:11 +02:00
|
|
|
call FillBoxCGB
|
2015-12-16 21:57:42 -05:00
|
|
|
ld a, $3
|
|
|
|
lb bc, 6, 1
|
2020-02-13 18:30:13 +01:00
|
|
|
hlcoord 17, 9, wAttrmap
|
2023-07-24 21:13:11 +02:00
|
|
|
call FillBoxCGB
|
2015-12-16 21:57:42 -05:00
|
|
|
ld a, $2
|
2020-02-13 18:30:13 +01:00
|
|
|
hlcoord 2, 16, wAttrmap
|
2015-12-16 21:57:42 -05:00
|
|
|
ld [hli], a
|
|
|
|
ld a, $7
|
|
|
|
ld [hli], a
|
2016-05-10 12:31:49 -04:00
|
|
|
ld [hli], a
|
|
|
|
ld [hli], a
|
2015-12-16 21:57:42 -05:00
|
|
|
ld a, $2
|
|
|
|
ld [hl], a
|
2020-02-13 18:30:13 +01:00
|
|
|
hlcoord 2, 17, wAttrmap
|
2015-12-16 21:57:42 -05:00
|
|
|
ld a, $3
|
|
|
|
ld bc, 6
|
|
|
|
call ByteFill
|
|
|
|
ret
|
|
|
|
|
2018-07-23 00:13:43 -04:00
|
|
|
_LoadTradeRoomBGPals:
|
2017-12-15 22:36:33 -05:00
|
|
|
ld hl, TradeRoomPalette
|
2018-01-01 15:08:21 +01:00
|
|
|
ld de, wBGPals1 palette PAL_BG_GREEN
|
2017-12-15 22:36:33 -05:00
|
|
|
ld bc, 6 palettes
|
2018-01-01 15:08:21 +01:00
|
|
|
ld a, BANK(wBGPals1)
|
2015-12-16 21:57:42 -05:00
|
|
|
call FarCopyWRAM
|
2017-12-24 12:47:30 -05:00
|
|
|
farcall ApplyPals
|
2015-12-16 21:57:42 -05:00
|
|
|
ret
|
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
TradeRoomPalette:
|
2018-01-09 23:21:32 -05:00
|
|
|
INCLUDE "gfx/trade/border.pal"
|
2015-12-16 21:57:42 -05:00
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
InitMG_Mobile_LinkTradePalMap:
|
2015-12-21 14:10:16 -05:00
|
|
|
call _InitMG_Mobile_LinkTradePalMap
|
2015-12-16 21:57:42 -05:00
|
|
|
ret
|