From 9b8fa99fe30728c1fcfa73cdf74211841bdae9fb Mon Sep 17 00:00:00 2001 From: adelcoding1 Date: Sat, 18 Feb 2017 11:40:37 -0800 Subject: [PATCH] FormSpec : Add an auto vertical scrollbar to the textarea --- build/android/jni/Android.mk | 1 + doc/lua_api.txt | 3 +- src/CMakeLists.txt | 1 + src/guiEditBoxWithScrollbar.cpp | 1524 +++++++++++++++++++++++++++++++ src/guiEditBoxWithScrollbar.h | 192 ++++ src/guiFormSpecMenu.cpp | 42 +- src/intlGUIEditBox.cpp | 110 ++- src/intlGUIEditBox.h | 17 +- 8 files changed, 1856 insertions(+), 34 deletions(-) create mode 100644 src/guiEditBoxWithScrollbar.cpp create mode 100644 src/guiEditBoxWithScrollbar.h diff --git a/build/android/jni/Android.mk b/build/android/jni/Android.mk index 889c24776..854ab75a7 100644 --- a/build/android/jni/Android.mk +++ b/build/android/jni/Android.mk @@ -149,6 +149,7 @@ LOCAL_SRC_FILES := \ jni/src/genericobject.cpp \ jni/src/gettext.cpp \ jni/src/guiChatConsole.cpp \ + jni/src/guiEditBoxWithScrollbar.cpp \ jni/src/guiEngine.cpp \ jni/src/guiPathSelectMenu.cpp \ jni/src/guiFormSpecMenu.cpp \ diff --git a/doc/lua_api.txt b/doc/lua_api.txt index d9e858529..c29abdf9c 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1918,8 +1918,9 @@ examples. * if is false, pressing enter in the field will submit the form but not close it * defaults to true when not specified (ie: no tag for a field) -#### `textarea[,;,;;