Poke_Transporter_GB/include/text_engine.h
2026-02-01 19:44:05 -05:00

35 lines
831 B
C

#ifndef TEXT_ENGINE_H
#define TEXT_ENGINE_H
#include "script_obj.h"
#include <cstdarg>
#define H_MAX 240
#define V_MAX 160
#define LEFT 8
#define RIGHT (H_MAX - LEFT)
#define TOP 120
#define BOTTOM V_MAX
#define INK_WHITE 15
#define INK_ROM_COLOR 14
#define INK_DARK_GREY 13
#define SCRIPT_DEBUG 0
#define SCRIPT_TRANSFER 1
#define SCRIPT_EVENT 2
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);
void scroll_text(bool instant, TTC *tc);
#endif