-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #281 from lhearachel/render-window
Document render_window.c
- Loading branch information
Showing
241 changed files
with
3,224 additions
and
1,771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#ifndef POKEPLATINUM_RENDER_WINDOW_H | ||
#define POKEPLATINUM_RENDER_WINDOW_H | ||
|
||
#include "constants/heap.h" | ||
|
||
#include "bg_window.h" | ||
#include "pokemon.h" | ||
|
||
#define TEXT_WINDOW_SIZE 30 | ||
|
||
enum StandardWindowType { | ||
STANDARD_WINDOW_SYSTEM = 0, | ||
STANDARD_WINDOW_FIELD, | ||
STANDARD_WINDOW_UNDERGROUND, | ||
}; | ||
|
||
enum SignpostType { | ||
SIGNPOST_CITY_MAP = 0, | ||
SIGNPOST_ROUTE_MAP, | ||
SIGNPOST_BUILDING_INFO, | ||
SIGNPOST_FIELD_INFO, | ||
}; | ||
|
||
void LoadStandardWindowTiles(BgConfig *bgConfig, u8 bgLayer, u16 offset, u8 standardWindowType, u32 heapID); | ||
u32 GetStandardWindowPaletteNARCMember(void); | ||
void LoadStandardWindowGraphics(BgConfig *bgConfig, u8 bgLayer, u16 tileOffset, u8 palOffset, u8 standardWindowType, u32 heapID); | ||
void Window_DrawStandardFrame(Window *window, u8 skipTransfer, u16 tile, u8 palette); | ||
void Window_EraseStandardFrame(Window *window, u8 skipTransfer); | ||
|
||
u32 GetMessageBoxTilesNARCMember(u32 messageBoxFrame); | ||
u32 GetMessageBoxPaletteNARCMember(u32 messageBoxFrame); | ||
void LoadMessageBoxGraphics(BgConfig *bgConfig, u8 bgLayer, u16 tileOffset, u8 palOffset, u8 messageBoxFrame, u32 heapID); | ||
void Window_DrawMessageBox(Window *window, u32 tile, u32 palette); | ||
void Window_DrawMessageBoxWithScrollCursor(Window *window, u8 skipTransfer, u16 tile, u8 palette); | ||
void Window_EraseMessageBox(Window *window, u8 skipTransfer); | ||
void ReplaceTransparentTiles(BgConfig *bgConfig, u8 bgLayer, u16 bgBaseTile, u8 withTile, u8 messageBoxFrame, u32 heapID); | ||
|
||
void LoadSignpostContentGraphics(BgConfig *bgConfig, u8 bgLayer, u16 baseTile, u8 palette, u8 signpostType, u16 signpostNARCMemberIdx, u32 heapID); | ||
void Window_DrawSignpost(Window *window, u8 skipTransfer, u16 baseTile, u8 palette, u8 signpostType); | ||
void Window_EraseSignpost(Window *window, u8 signpostType, u8 skipTransfer); | ||
|
||
void *Window_AddWaitDial(Window *window, u32 baseTile); | ||
void DestroyWaitDial(void *taskData); | ||
void DestroyWaitDialTaskOnly(void *taskData); | ||
|
||
u8 *DrawPokemonPreview(BgConfig *bgConfig, u8 bgLayer, u8 x, u8 y, u8 palette, u16 baseTile, u16 species, u8 gender, enum HeapId heapID); | ||
u8 *DrawPokemonPreviewFromStruct(BgConfig *bgConfig, u8 bgLayer, u8 x, u8 y, u8 palette, u16 baseTile, Pokemon *mon, enum HeapId heapID); | ||
|
||
#endif // POKEPLATINUM_RENDER_WINDOW_H |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
subdir('signposts') | ||
subdir('windows') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
signpost_frame.NCGR | ||
signpost.NCLR | ||
route_map_00.NCGR | ||
route_map_01.NCGR | ||
route_map_02.NCGR | ||
route_map_03.NCGR | ||
route_map_04.NCGR | ||
route_map_05.NCGR | ||
route_map_06.NCGR | ||
route_map_07.NCGR | ||
route_map_08.NCGR | ||
route_map_09.NCGR | ||
route_map_10.NCGR | ||
route_map_11.NCGR | ||
route_map_12.NCGR | ||
route_map_13.NCGR | ||
route_map_14.NCGR | ||
route_map_15.NCGR | ||
route_map_16.NCGR | ||
route_map_17.NCGR | ||
route_map_18.NCGR | ||
route_map_19.NCGR | ||
route_map_20.NCGR | ||
route_map_21.NCGR | ||
route_map_22.NCGR | ||
route_map_23.NCGR | ||
route_map_24.NCGR | ||
route_map_25.NCGR | ||
route_map_26.NCGR | ||
route_map_27.NCGR | ||
route_map_28.NCGR | ||
route_map_29.NCGR | ||
route_map_30.NCGR | ||
city_map_empty.NCGR | ||
city_map_twinleaf.NCGR | ||
city_map_sandgem.NCGR | ||
city_map_floaroma.NCGR | ||
city_map_solaceon.NCGR | ||
city_map_celestic.NCGR | ||
city_map_survival_area.NCGR | ||
city_map_resort_area.NCGR | ||
city_map_jubilife.NCGR | ||
city_map_canalave.NCGR | ||
city_map_oreburgh.NCGR | ||
city_map_eterna.NCGR | ||
city_map_hearthome.NCGR | ||
city_map_pastoria.NCGR | ||
city_map_veilstone.NCGR | ||
city_map_sunyshore.NCGR | ||
city_map_snowpoint.NCGR | ||
city_map_pokemon_league.NCGR | ||
city_map_fight_area.NCGR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
field_board_pngs = files( | ||
'signpost_frame.png', | ||
'route_map_00.png', | ||
'route_map_01.png', | ||
'route_map_02.png', | ||
'route_map_03.png', | ||
'route_map_04.png', | ||
'route_map_05.png', | ||
'route_map_06.png', | ||
'route_map_07.png', | ||
'route_map_08.png', | ||
'route_map_09.png', | ||
'route_map_10.png', | ||
'route_map_11.png', | ||
'route_map_12.png', | ||
'route_map_13.png', | ||
'route_map_14.png', | ||
'route_map_15.png', | ||
'route_map_16.png', | ||
'route_map_17.png', | ||
'route_map_18.png', | ||
'route_map_19.png', | ||
'route_map_20.png', | ||
'route_map_21.png', | ||
'route_map_22.png', | ||
'route_map_23.png', | ||
'route_map_24.png', | ||
'route_map_25.png', | ||
'route_map_26.png', | ||
'route_map_27.png', | ||
'route_map_28.png', | ||
'route_map_29.png', | ||
'route_map_30.png', | ||
'city_map_empty.png', | ||
'city_map_twinleaf.png', | ||
'city_map_sandgem.png', | ||
'city_map_floaroma.png', | ||
'city_map_solaceon.png', | ||
'city_map_celestic.png', | ||
'city_map_survival_area.png', | ||
'city_map_resort_area.png', | ||
'city_map_jubilife.png', | ||
'city_map_canalave.png', | ||
'city_map_oreburgh.png', | ||
'city_map_eterna.png', | ||
'city_map_hearthome.png', | ||
'city_map_pastoria.png', | ||
'city_map_veilstone.png', | ||
'city_map_sunyshore.png', | ||
'city_map_snowpoint.png', | ||
'city_map_pokemon_league.png', | ||
'city_map_fight_area.png', | ||
) | ||
|
||
field_board_pals = files('signpost.pal') | ||
|
||
field_board_ncgrs = ncgr_gen.process(field_board_pngs, | ||
extra_args: [ | ||
'-sopc', | ||
'-version101', | ||
] | ||
) | ||
|
||
field_board_nclrs = nclr_gen.process(field_board_pals, | ||
extra_args: [ | ||
'-bitdepth', '4', | ||
] | ||
) | ||
|
||
field_board_order = files('field_board.order') | ||
|
||
field_board_narc = custom_target('field_board.narc', | ||
output: [ | ||
'field_board.narc', | ||
'field_board.naix', | ||
], | ||
input: [ | ||
field_board_ncgrs, | ||
field_board_nclrs, | ||
field_board_order, | ||
], | ||
command: [ | ||
knarc_exe, | ||
'-d', '@PRIVATE_DIR@', | ||
'-p', '@OUTPUT0@', | ||
'--order', field_board_order, | ||
'--naix', | ||
] | ||
) | ||
|
||
nitrofs_files += field_board_narc[0] | ||
naix_headers += field_board_narc[1] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.