Add map_tile function
This commit is contained in:
parent
283b8e0164
commit
14745757e0
|
@ -382,7 +382,7 @@ int goods_inner_process(WINDOW *window, unsigned short *items)
|
|||
window->first = false;
|
||||
|
||||
// Draw window header
|
||||
(*tilemap_pointer)[window->window_x + (window->window_y - 1) * 32] = format_tile(0xB3, false, false);
|
||||
map_tile(0xB3, window->window_x, window->window_y - 1);
|
||||
clear_name_header(window);
|
||||
copy_name_header(window, *active_window_party_member);
|
||||
|
||||
|
|
|
@ -101,6 +101,14 @@ void map_special_character(unsigned short tile, int x, int y)
|
|||
(*tilemap_pointer)[x + ((y + 1) * 32)] = tile + 32;
|
||||
}
|
||||
|
||||
// Maps a tile to the given tile coordinates. Only the tilemap is changed.
|
||||
// x, y in tiles
|
||||
void map_tile(unsigned short tile, int x, int y)
|
||||
{
|
||||
tile = format_tile(tile, false, false);
|
||||
(*tilemap_pointer)[x + (y * 32)] = tile;
|
||||
}
|
||||
|
||||
byte print_character_with_callback(byte chr, int x, int y, int font, int foreground,
|
||||
int *dest, int (*getTileCallback)(int, int), int useTilemap)
|
||||
{
|
||||
|
|
|
@ -33,6 +33,7 @@ byte print_character_formatted(byte chr, int x, int y, int font, int foreground)
|
|||
byte print_character_to_window(byte chr, WINDOW* window);
|
||||
void print_special_character(int tile, int x, int y);
|
||||
void map_special_character(unsigned short tile, int x, int y);
|
||||
void map_tile(unsigned short tile, int x, int y);
|
||||
byte print_character_with_callback(byte chr, int x, int y, int font, int foreground,
|
||||
int *dest, int (*getTileCallback)(int, int), int useTilemap);
|
||||
byte print_character_to_ram(byte chr, int *dest, int xOffset, int font, int foreground);
|
||||
|
|
Loading…
Reference in New Issue