polserver/pol-core/support/scripts/unicode.em
turleypol 8c7ed986a9 CAsc(Z)/CChr(Z) use utf16, if CChr() cannot represent it with a single
number return an error.
Fixed problem with RequestInput using the unicode version
Updated em file comments
2019-01-04 13:18:53 +01:00

36 lines
1.6 KiB
Text

////////////////////////////////////////////////////////////////
//
// CONSTANTS
//
////////////////////////////////////////////////////////////////
//
// Constants for PrintTextAbove*
//
const JOURNAL_UC_PRINT_NAME := 0x00; // Implicit. Print's the object's description / npc's name in the journal.
const JOURNAL_UC_PRINT_YOU_SEE := 0x01; // Will print "You see:" in the journal.
// Don't use these outside this file, use FONT_* from client.inc
const _DEFAULT_UCFONT := 3;
const _DEFAULT_UCCOLOR := 0x3B2;
const _DEFAULT_UCTEXT_REQUIREDCMD := 0;
////////////////////////////////////////////////////////////////
//
// FUNCTIONS
//
////////////////////////////////////////////////////////////////
// 'uc_text' is a String, or for backward compatibility an Array of 2-byte integers,
// where each integer is a Unicode character!
//
// 'langcode' is a 3-character "Originating Language" code
// e.g. ENG, ENU, CHT, DEU, FRA, JPN, RUS, KOR (etc??)
BroadcastUC(uc_text, langcode, font:=_DEFAULT_UCFONT, color:=_DEFAULT_UCCOLOR, requiredcmdlevel := _DEFAULT_UCTEXT_REQUIREDCMD );
PrintTextAbovePrivateUC(above_object, uc_text, langcode, character, font:=_DEFAULT_UCFONT, color:=_DEFAULT_UCCOLOR, journal_print := JOURNAL_UC_PRINT_NAME);
PrintTextAboveUC(above_object, uc_text, langcode, font:=_DEFAULT_UCFONT, color:=_DEFAULT_UCCOLOR, journal_print := JOURNAL_UC_PRINT_NAME);
RequestInputUC(character, item, uc_prompt, langcode); // item is a placeholder, pass anything
SendSysMessageUC(character, uc_text, langcode, font:=_DEFAULT_UCFONT, color:=_DEFAULT_UCCOLOR);