Poke_Transporter_GB/include/text_engine.h
The Gears of Progress 2309f7c493 Adding text debug menu
2026-01-11 17:33:02 -05:00

34 lines
790 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 112
#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);
#endif