mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 14:36:13 +01:00
29 lines
No EOL
764 B
Text
29 lines
No EOL
764 B
Text
function textInput(_input, _onModify) : widget() constructor {
|
|
input = _input;
|
|
onModify = _onModify;
|
|
selecting = false;
|
|
auto_update = false;
|
|
|
|
typing = false;
|
|
|
|
parser_server = noone;
|
|
|
|
autocomplete_delay = 0;
|
|
autocomplete_modi = false;
|
|
use_autocomplete = true;
|
|
autocomplete_server = noone;
|
|
autocomplete_object = noone;
|
|
autocomplete_context = {};
|
|
|
|
function_guide_server = noone;
|
|
|
|
static _resetFocus = function() { resetFocus(); }
|
|
|
|
static onKey = function(key) {}
|
|
|
|
static setAutoUpdate = function() /*=>*/ { auto_update = true; return self; }
|
|
|
|
static setSideButton = function(_button) /*=>*/ { self.side_button = _button; return self; }
|
|
|
|
static breakCharacter = function(ch) /*=>*/ { return ch == " " || ch == "\n"; }
|
|
} |