mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
commented SGB palette stuff
This commit is contained in:
parent
43fddc803f
commit
64cfbcce7a
34 changed files with 408 additions and 334 deletions
|
|
@ -450,7 +450,7 @@ DisplayDepositWithdrawMenu: ; 2174b (8:574b)
|
|||
predef StatusScreen2
|
||||
call LoadScreenTilesFromBuffer1
|
||||
call ReloadTilesetTilePatterns
|
||||
call GoPAL_SET_CF1C
|
||||
call RunDefaultPaletteCommand
|
||||
call LoadGBPal
|
||||
jr .loop
|
||||
|
||||
|
|
|
|||
|
|
@ -55,8 +55,8 @@ DisplayDiploma: ; 566e2 (15:66e2)
|
|||
|
||||
call EnableLCD
|
||||
callba LoadTrainerInfoTextBoxTiles
|
||||
ld b, $8
|
||||
call GoPAL_SET
|
||||
ld b, SET_PAL_GENERIC
|
||||
call RunPaletteCommand
|
||||
call Delay3
|
||||
call GBPalNormal
|
||||
ld a, $90
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ PKMNLeaguePC: ; 0x7657e
|
|||
res 6, [hl]
|
||||
call GBPalWhiteOutWithDelay3
|
||||
call ClearScreen
|
||||
call GoPAL_SET_CF1C
|
||||
call RunDefaultPaletteCommand
|
||||
jp GBPalNormal
|
||||
|
||||
LeaguePCShowTeam: ; 765e5 (1d:65e5)
|
||||
|
|
@ -86,15 +86,15 @@ LeaguePCShowMon: ; 76610 (1d:6610)
|
|||
ld [wcf91], a
|
||||
ld [wd0b5], a
|
||||
ld [wBattleMonSpecies2], a
|
||||
ld [wcf1d], a
|
||||
ld [wWholeScreenPaletteMonSpecies], a
|
||||
ld a, [hli]
|
||||
ld [wHoFMonLevel], a
|
||||
ld de, wcd6d
|
||||
ld bc, NAME_LENGTH
|
||||
call CopyData
|
||||
ld b, $0B
|
||||
ld b, SET_PAL_POKEMON_WHOLE_SCREEN
|
||||
ld c, 0
|
||||
call GoPAL_SET
|
||||
call RunPaletteCommand
|
||||
coord hl, 12, 5
|
||||
call GetMonHeader
|
||||
call LoadFrontSpriteByMonIndex
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ MainMenu: ; 5af2 (1:5af2)
|
|||
ld hl,wd72e
|
||||
res 6,[hl]
|
||||
call ClearScreen
|
||||
call GoPAL_SET_CF1C
|
||||
call RunDefaultPaletteCommand
|
||||
call LoadTextBoxTilePatterns
|
||||
call LoadFontTilePatterns
|
||||
ld hl,wd730
|
||||
|
|
|
|||
|
|
@ -88,8 +88,8 @@ DisplayNamingScreen: ; 6596 (1:6596)
|
|||
call GBPalWhiteOutWithDelay3
|
||||
call ClearScreen
|
||||
call UpdateSprites
|
||||
ld b, $8
|
||||
call GoPAL_SET
|
||||
ld b, SET_PAL_GENERIC
|
||||
call RunPaletteCommand
|
||||
call LoadHpBarAndStatusTilePatterns
|
||||
call LoadEDTile
|
||||
callba LoadMonPartySpriteGfx
|
||||
|
|
@ -163,7 +163,7 @@ DisplayNamingScreen: ; 6596 (1:6596)
|
|||
call GBPalWhiteOutWithDelay3
|
||||
call ClearScreen
|
||||
call ClearSprites
|
||||
call GoPAL_SET_CF1C
|
||||
call RunDefaultPaletteCommand
|
||||
call GBPalNormal
|
||||
xor a
|
||||
ld [W_SUBANIMTRANSFORM], a
|
||||
|
|
|
|||
|
|
@ -29,13 +29,13 @@ RedrawPartyMenu_: ; 12ce3 (4:6ce3)
|
|||
cp a,SWAP_MONS_PARTY_MENU
|
||||
jp z,.printMessage
|
||||
call ErasePartyMenuCursors
|
||||
callba SendBlkPacket_PartyMenu
|
||||
callba InitPartyMenuBlkPacket
|
||||
coord hl, 3, 0
|
||||
ld de,wPartySpecies
|
||||
xor a
|
||||
ld c,a
|
||||
ld [hPartyMonIndex],a
|
||||
ld [wcf2d],a
|
||||
ld [wWhichPartyMenuHPBar],a
|
||||
.loop
|
||||
ld a,[de]
|
||||
cp a,$FF ; reached the terminator?
|
||||
|
|
@ -96,7 +96,7 @@ RedrawPartyMenu_: ; 12ce3 (4:6ce3)
|
|||
ld a,[hFlags_0xFFF6]
|
||||
res 0,a
|
||||
ld [hFlags_0xFFF6],a
|
||||
call SetPartyMenuHealthBarColor ; color the HP bar (on SGB)
|
||||
call SetPartyMenuHPBarColor ; color the HP bar (on SGB)
|
||||
pop hl
|
||||
jr .printLevel
|
||||
.teachMoveMenu
|
||||
|
|
@ -188,8 +188,8 @@ RedrawPartyMenu_: ; 12ce3 (4:6ce3)
|
|||
.notAbleToEvolveText
|
||||
db "NOT ABLE@"
|
||||
.afterDrawingMonEntries
|
||||
ld b,$0A
|
||||
call GoPAL_SET
|
||||
ld b, SET_PAL_PARTY_MENU
|
||||
call RunPaletteCommand
|
||||
.printMessage
|
||||
ld hl,wd730
|
||||
ld a,[hl]
|
||||
|
|
@ -311,15 +311,15 @@ RareCandyText: ; 12ec0 (4:6ec0)
|
|||
db $06
|
||||
db "@"
|
||||
|
||||
SetPartyMenuHealthBarColor: ; 12ec7 (4:6ec7)
|
||||
ld hl, wcf1f
|
||||
ld a, [wcf2d]
|
||||
SetPartyMenuHPBarColor: ; 12ec7 (4:6ec7)
|
||||
ld hl, wPartyMenuHPBarColors
|
||||
ld a, [wWhichPartyMenuHPBar]
|
||||
ld c, a
|
||||
ld b, $0
|
||||
ld b, 0
|
||||
add hl, bc
|
||||
call GetHealthBarColor
|
||||
ld b, $fc
|
||||
call GoPAL_SET
|
||||
ld hl, wcf2d
|
||||
ld b, UPDATE_PARTY_MENU_BLK_PACKET
|
||||
call RunPaletteCommand
|
||||
ld hl, wWhichPartyMenuHPBar
|
||||
inc [hl]
|
||||
ret
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ ShowPokedexMenu: ; 40000 (10:4000)
|
|||
ld [wd11e],a
|
||||
ld [hJoy7],a
|
||||
.setUpGraphics
|
||||
ld b,$08
|
||||
call GoPAL_SET
|
||||
ld b, SET_PAL_GENERIC
|
||||
call RunPaletteCommand
|
||||
callab LoadPokedexTilePatterns
|
||||
.doPokemonListMenu
|
||||
ld hl,wTopMenuItemY
|
||||
|
|
@ -41,7 +41,7 @@ ShowPokedexMenu: ; 40000 (10:4000)
|
|||
pop af
|
||||
ld [wListScrollOffset],a
|
||||
call GBPalWhiteOutWithDelay3
|
||||
call GoPAL_SET_CF1C
|
||||
call RunDefaultPaletteCommand
|
||||
jp ReloadMapData
|
||||
.goToSideMenu
|
||||
call HandlePokedexSideMenu
|
||||
|
|
@ -404,8 +404,8 @@ ShowPokedexDataInternal: ; 402e2 (10:42e2)
|
|||
ld a,[wd11e] ; pokemon ID
|
||||
ld [wcf91],a
|
||||
push af
|
||||
ld b,04
|
||||
call GoPAL_SET
|
||||
ld b, SET_PAL_POKEDEX
|
||||
call RunPaletteCommand
|
||||
pop af
|
||||
ld [wd11e],a
|
||||
ld a,[hTilesetType]
|
||||
|
|
@ -561,7 +561,7 @@ ShowPokedexDataInternal: ; 402e2 (10:42e2)
|
|||
ld [hTilesetType],a
|
||||
call GBPalWhiteOut
|
||||
call ClearScreen
|
||||
call GoPAL_SET_CF1C
|
||||
call RunDefaultPaletteCommand
|
||||
call LoadTextBoxTilePatterns
|
||||
call GBPalNormal
|
||||
ld hl,wd72c
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ ErasePartyMenuCursors: ; 132ed (4:72ed)
|
|||
|
||||
ItemMenuLoop: ; 132fc (4:72fc)
|
||||
call LoadScreenTilesFromBuffer2DisableBGTransfer ; restore saved screen
|
||||
call GoPAL_SET_CF1C
|
||||
call RunDefaultPaletteCommand
|
||||
|
||||
StartMenu_Item: ; 13302 (4:7302)
|
||||
ld a,[wLinkState]
|
||||
|
|
@ -506,14 +506,14 @@ StartMenu_TrainerInfo: ; 13460 (4:7460)
|
|||
ld [hTilesetType],a
|
||||
call DrawTrainerInfo
|
||||
predef DrawBadges ; draw badges
|
||||
ld b,$0d
|
||||
call GoPAL_SET
|
||||
ld b, SET_PAL_TRAINER_CARD
|
||||
call RunPaletteCommand
|
||||
call GBPalNormal
|
||||
call WaitForTextScrollButtonPress ; wait for button press
|
||||
call GBPalWhiteOut
|
||||
call LoadFontTilePatterns
|
||||
call LoadScreenTilesFromBuffer2 ; restore saved screen
|
||||
call GoPAL_SET_CF1C
|
||||
call RunDefaultPaletteCommand
|
||||
call ReloadMapData
|
||||
call LoadGBPal
|
||||
pop af
|
||||
|
|
|
|||
|
|
@ -121,10 +121,10 @@ StatusScreen: ; 12953 (4:6953)
|
|||
call PlaceString ; "TYPE1/"
|
||||
coord hl, 11, 3
|
||||
predef DrawHP
|
||||
ld hl, wcf25
|
||||
ld hl, wStatusScreenHPBarColor
|
||||
call GetHealthBarColor
|
||||
ld b, $3
|
||||
call GoPAL_SET ; SGB palette
|
||||
ld b, SET_PAL_STATUS_SCREEN
|
||||
call RunPaletteCommand
|
||||
coord hl, 16, 6
|
||||
ld de, wLoadedMonStatus
|
||||
call PrintStatusCondition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue