Pixel-Composer/scripts/textInput/textInput.gml
2023-11-27 17:40:28 +07:00

17 lines
426 B
Plaintext

function textInput(_input, _onModify) : widget() constructor {
input = _input;
onModify = _onModify;
side_button = noone;
selecting = false;
static _resetFocus = function() { resetFocus(); }
static onKey = function(key) {}
static setSideButton = function(_button) { #region
self.side_button = _button;
return self;
} #endregion
static breakCharacter = function(ch) { return ch == " " || ch == "\n"; }
}