mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 12:34:06 +01:00
- [Inspector Panel] Fix error when pop-up text box widget.
This commit is contained in:
parent
18186d3e69
commit
5bb0f0fc1e
@ -1,5 +1,5 @@
|
||||
{
|
||||
"$GMScript":"v1",
|
||||
"$GMScript":"",
|
||||
"%Name":"nodeValue_drawer",
|
||||
"isCompatibility":false,
|
||||
"isDnD":false,
|
||||
|
@ -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() {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"$GMScript":"v1",
|
||||
"$GMScript":"",
|
||||
"%Name":"textArea",
|
||||
"isCompatibility":false,
|
||||
"isDnD":false,
|
||||
|
@ -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) {}
|
||||
|
Loading…
Reference in New Issue
Block a user