2014-08-09 05:39:13 +00:00
|
|
|
; display "[player] VS [enemy]" text box with pokeballs representing their parties next to the names
|
2016-06-12 00:24:04 +00:00
|
|
|
DisplayLinkBattleVersusTextBox:
|
2014-05-22 22:13:20 +00:00
|
|
|
call LoadTextBoxTilePatterns
|
2015-07-18 20:52:03 +00:00
|
|
|
coord hl, 3, 4
|
2016-06-12 04:30:05 +00:00
|
|
|
ld b, 7
|
|
|
|
ld c, 12
|
2014-05-22 22:13:20 +00:00
|
|
|
call TextBoxBorder
|
2015-07-18 20:52:03 +00:00
|
|
|
coord hl, 4, 5
|
2014-08-09 05:39:13 +00:00
|
|
|
ld de, wPlayerName
|
2014-05-22 22:13:20 +00:00
|
|
|
call PlaceString
|
2015-07-18 20:52:03 +00:00
|
|
|
coord hl, 4, 10
|
2015-02-07 10:43:08 +00:00
|
|
|
ld de, wLinkEnemyTrainerName
|
2014-05-22 22:13:20 +00:00
|
|
|
call PlaceString
|
2014-08-09 05:39:13 +00:00
|
|
|
; place bold "VS" tiles between the names
|
2015-07-18 20:52:03 +00:00
|
|
|
coord hl, 9, 8
|
2014-05-22 22:13:20 +00:00
|
|
|
ld a, $69
|
|
|
|
ld [hli], a
|
|
|
|
ld [hl], $6a
|
|
|
|
xor a
|
2014-09-13 07:50:56 +00:00
|
|
|
ld [wUpdateSpritesEnabled], a
|
2014-05-22 22:13:20 +00:00
|
|
|
callab SetupPlayerAndEnemyPokeballs
|
2014-08-09 05:39:13 +00:00
|
|
|
ld c, 150
|
2014-05-22 22:13:20 +00:00
|
|
|
jp DelayFrames
|