- [Inspector Panel] Fix error when pop-up text box widget.

This commit is contained in:
Tanasart 2024-07-10 09:14:37 +07:00
parent 18186d3e69
commit 5bb0f0fc1e
5 changed files with 21 additions and 15 deletions

View file

@ -1,5 +1,5 @@
{
"$GMScript":"v1",
"$GMScript":"",
"%Name":"nodeValue_drawer",
"isCompatibility":false,
"isDnD":false,

View file

@ -56,12 +56,18 @@ function Panel_Text_Editor(_textArea, _inputFunc, _context) : PanelContent() con
var tw = w - ui(8 + 8);
var th = h - ui(4 + 36 + 8);
var _text = inputFunc();
var _text = inputFunc();
var _prevBox = _textArea.boxColor;
_textArea.setMaxHieght(th);
_textArea.register();
_textArea.setFocusHover(pFOCUS, pHOVER);
_textArea.shift_new_line = shift_new_line;
_textArea.drawParam(new widgetParam(tx, ty, tw, th, _text,, [mx, my], x, y));
_textArea.boxColor = CDEF.main_ltgrey;
_textArea.drawParam(new widgetParam(tx, ty, tw, th, _text, {}, [ mx, my ], x, y));
_textArea.boxColor = _prevBox;
}
static checkClosable = function() {

View file

@ -46,17 +46,6 @@ function textArea(_input, _onModify) : textInput(_input, _onModify) constructor
code_line_width = 48;
parser_server = noone;
autocomplete_delay = 0;
autocomplete_modi = false;
use_autocomplete = true;
autocomplete_server = noone;
autocomplete_object = noone;
autocomplete_context = {};
function_guide_server = noone;
shift_new_line = true;
show_line_number = true;

View file

@ -1,5 +1,5 @@
{
"$GMScript":"v1",
"$GMScript":"",
"%Name":"textArea",
"isCompatibility":false,
"isDnD":false,

View file

@ -5,6 +5,17 @@ function textInput(_input, _onModify) : widget() constructor {
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) {}