Pixel-Composer/scripts/textInput/textInput.gml

30 lines
791 B
Plaintext
Raw Normal View History

2023-10-03 07:14:28 +02:00
function textInput(_input, _onModify) : widget() constructor {
input = _input;
onModify = _onModify;
onModifyParam = noone;
selecting = false;
auto_update = false;
2023-03-08 14:59:54 +01:00
typing = false;
2023-12-18 04:40:21 +01:00
parser_server = noone;
autocomplete_delay = 0;
autocomplete_modi = false;
use_autocomplete = true;
autocomplete_server = noone;
autocomplete_object = noone;
autocomplete_context = {};
function_guide_server = noone;
2023-03-08 14:59:54 +01:00
static _resetFocus = function() { resetFocus(); }
static onKey = function(key) {}
2023-11-01 08:10:25 +01:00
2024-07-15 10:43:30 +02:00
static setAutoUpdate = function() /*=>*/ { auto_update = true; return self; }
2023-11-27 11:40:28 +01:00
2024-07-15 10:43:30 +02:00
static setSideButton = function(_button) /*=>*/ { self.side_button = _button; return self; }
static breakCharacter = function(ch) /*=>*/ { return ch == " " || ch == "\n"; }
2023-01-17 08:11:55 +01:00
}