From 6beb84b6e9b127555941a2d5f0a9c9ca798868f1 Mon Sep 17 00:00:00 2001 From: a1batross Date: Tue, 22 Dec 2015 23:53:03 +0300 Subject: [PATCH] Menu interface update --- engine/menu_int.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/engine/menu_int.h b/engine/menu_int.h index 3c782a1..729a224 100644 --- a/engine/menu_int.h +++ b/engine/menu_int.h @@ -161,11 +161,15 @@ typedef struct ui_enginefuncs_s int (*pfnIsMapValid)( char *filename ); void (*pfnProcessImage)( int texnum, float gamma, int topColor, int bottomColor ); int (*pfnCompareFileTime)( char *filename1, char *filename2, int *iCompare ); - - void (*pfnEnableTextInput)( int enable ); - void (*pfnSDL_free)( void *mem ); } ui_enginefuncs_t; +typedef struct ui_textfuncs_s { + void (*pfnEnableTextInput)( int enable ); + int (*pfnUtfProcessChar) ( int ch ); + int (*pfnUtfMoveLeft) ( char *str, int pos ); + int (*pfnUtfMoveRight) ( char *str, int pos, int length ); +} ui_textfuncs_t; + typedef struct { int (*pfnVidInit)( void ); @@ -188,4 +192,5 @@ typedef struct typedef int (*MENUAPI)( UI_FUNCTIONS *pFunctionTable, ui_enginefuncs_t* engfuncs, ui_globalvars_t *pGlobals ); +typedef int (*UITEXTAPI)( ui_textfuncs_t* engfuncs ); #endif//MENU_INT_H