From 7bfedd75e7d81c882eff4e1acb6fd48f921a6f11 Mon Sep 17 00:00:00 2001 From: jeffman Date: Sat, 15 Apr 2017 23:37:17 -0400 Subject: [PATCH] Added arrow character --- ScriptTool/ScriptTool/eb-char-lookup.json | 3 ++- ScriptTool/ScriptTool/m12-char-lookup.json | 1 + compiled/vwf.c | 9 ++++++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ScriptTool/ScriptTool/eb-char-lookup.json b/ScriptTool/ScriptTool/eb-char-lookup.json index a12a00c..fe46b30 100644 --- a/ScriptTool/ScriptTool/eb-char-lookup.json +++ b/ScriptTool/ScriptTool/eb-char-lookup.json @@ -94,5 +94,6 @@ "172": "|", "173": "}", "174": "~", - "175": "\\" + "175": "\\", + "189": "➨" } \ No newline at end of file diff --git a/ScriptTool/ScriptTool/m12-char-lookup.json b/ScriptTool/ScriptTool/m12-char-lookup.json index 9a068f9..3d0e7f9 100644 --- a/ScriptTool/ScriptTool/m12-char-lookup.json +++ b/ScriptTool/ScriptTool/m12-char-lookup.json @@ -82,6 +82,7 @@ "80": " ", "81": "を", "82": "ん", + "93": "➨", "96": "ァ", "97": "ア", "98": "ィ", diff --git a/compiled/vwf.c b/compiled/vwf.c index 1566b0c..97d11f2 100644 --- a/compiled/vwf.c +++ b/compiled/vwf.c @@ -4,7 +4,7 @@ byte decode_character(byte chr) { int c = chr - 0x50; - if ((c < 0) || ((c >= 0x60) && (c < 0x64)) || (c >= 0x6D)) + if ((c < 0) || ((c >= 0x60) && (c < 0x64)) || (c >= 0x6E)) c = QUESTION_MARK; return c; @@ -53,6 +53,13 @@ byte print_character(byte chr, int x, int y, int font, int foreground) return 8; } + // 0x6D is an arrow -> + else if (chr == 0x6D) + { + print_special_character(0x9D, x, y); + return 8; + } + return print_character_with_callback(chr, x, y, font, foreground, vram, &get_tile_number_with_offset, TRUE); }