Text hook

This commit is contained in:
kichikuou
2019-09-02 09:03:29 +09:00
parent ae6e20b874
commit bde689eaa1
7 changed files with 105 additions and 0 deletions
+4
View File
@@ -7,6 +7,7 @@
#include <string.h>
#include "ags.h"
#include "utfsjis.h"
#include "texthook.h"
static bool antialias = false;
@@ -52,6 +53,9 @@ void AGS::draw_text(char string[])
if((0xeb9f <= code && code <= 0xebfc) || (0xec40 <= code && code <= 0xec9e)) {
draw_gaiji(screen, dest_x, dest_y, code, font_size, font_color);
} else {
if (!draw_menu)
texthook_character(nact->get_scenario_page(), sjis_to_unicode(code));
if (antialias)
draw_char_antialias(screen, dest_x, dest_y, code, font_size, font_color, antialias_cache);
else