mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-03-21 17:34:42 -05:00
34 lines
786 B
C++
34 lines
786 B
C++
#ifndef TEXT_ENGINE_H
|
|
#define TEXT_ENGINE_H
|
|
|
|
#include <tonc.h>
|
|
#include <string>
|
|
|
|
#include "script_obj.h"
|
|
#include "script_array.h"
|
|
#include "pokemon_data.h"
|
|
|
|
#define H_MAX 240
|
|
#define V_MAX 160
|
|
#define LEFT 8
|
|
#define RIGHT (H_MAX - LEFT)
|
|
#define TOP 112
|
|
#define BOTTOM V_MAX
|
|
|
|
#define INK_WHITE 15
|
|
#define INK_ROM_COLOR 14
|
|
#define INK_DARK_GREY 13
|
|
|
|
void init_text_engine();
|
|
int text_loop(int script);
|
|
int text_next_obj_id(script_obj current_line);
|
|
void show_text_box();
|
|
void hide_text_box();
|
|
void set_text_exit();
|
|
int ptgb_write(const char *text);
|
|
int ptgb_write(const byte *text, bool instant);
|
|
int ptgb_write(const byte *text, bool instant, int length);
|
|
int ptgb_write_debug(const u16* charset, const char *text, bool instant);
|
|
void wait_for_user_to_continue(bool clear_text);
|
|
|
|
#endif |