mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-10 16:28:17 +03:00
Text hook
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -254,6 +254,8 @@ public:
|
||||
|
||||
// デバッグログ
|
||||
void output_console(char log[]);
|
||||
|
||||
int get_scenario_page() const { return scenario_page; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user