#ifndef TEXT_H
	#define TEXT_H
	
	#include	"structs.h"
	#include	"common.h"
	
	#ifdef __cplusplus
	extern "C"{
	#endif
	
	void DrawCounter10(BITMAP *l, int i, int x, int y, char fillsize, char font);
	void DrawCounter16(BITMAP *l, int i, int x, int y);
	void DrawText(int x, int y, unsigned char s, const char *string, ...);
	void InputText(int x, int y, unsigned char s, const char *string, ...);
	inline int LoadFont0();
	//int LoadFont1();
	
	char Font0[0x800];
	//char Font1[0xA00];
	
	char TextBuffer[256];
	short keyinput;
	char ascii;
	char scancode;
	short buffer_count;
	
	// The following are used for Talk()
	char typing;				// is player currently typing a message?
	char typing_pos;			// cursor position
	char message_out[64];		// outgoing message buffer
	char *message;				// store messages
	short *message_time;		// store display time of each message
	char num_of_messages;		// how many messages to display
	short message_time_limit;	// how many seconds to display a new message
	
	#ifdef __cplusplus
	}
	#endif
#endif
