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
+2
View File
@@ -254,6 +254,8 @@ public:
// デバッグログ
void output_console(char log[]);
int get_scenario_page() const { return scenario_page; }
};
#endif
+3
View File
@@ -6,6 +6,7 @@
#include "nact.h"
#include "ags.h"
#include "texthook.h"
static int mousex, mousey;
@@ -37,6 +38,8 @@ uint8 NACT::get_key()
{
uint8 val = 0;
texthook_keywait();
if (pump_events(ags->screen_height))
terminate = true;
+5
View File
@@ -11,6 +11,7 @@
#include "mako.h"
#include "crc32.h"
#include "../fileio.h"
#include "texthook.h"
void NACT::cmd_calc()
{
@@ -423,6 +424,8 @@ void NACT::cmd_open_obj(int verb)
void NACT::cmd_a()
{
texthook_nextpage();
#if defined(_DEBUG_CONSOLE)
char log[128];
sprintf_s(log, 128, "A\n");
@@ -1139,6 +1142,8 @@ void NACT::cmd_q()
void NACT::cmd_r()
{
texthook_newline();
#if defined(_DEBUG_CONSOLE)
char log[128];
sprintf_s(log, 128, "R\n");