mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-24 14:06:23 +01:00
- [Inspector Panel] Fix error when pop-up text box widget.
This commit is contained in:
parent
18186d3e69
commit
5bb0f0fc1e
5 changed files with 21 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$GMScript":"v1",
|
"$GMScript":"",
|
||||||
"%Name":"nodeValue_drawer",
|
"%Name":"nodeValue_drawer",
|
||||||
"isCompatibility":false,
|
"isCompatibility":false,
|
||||||
"isDnD":false,
|
"isDnD":false,
|
||||||
|
|
|
@ -56,12 +56,18 @@ function Panel_Text_Editor(_textArea, _inputFunc, _context) : PanelContent() con
|
||||||
var tw = w - ui(8 + 8);
|
var tw = w - ui(8 + 8);
|
||||||
var th = h - ui(4 + 36 + 8);
|
var th = h - ui(4 + 36 + 8);
|
||||||
|
|
||||||
var _text = inputFunc();
|
var _text = inputFunc();
|
||||||
|
var _prevBox = _textArea.boxColor;
|
||||||
|
|
||||||
_textArea.setMaxHieght(th);
|
_textArea.setMaxHieght(th);
|
||||||
_textArea.register();
|
_textArea.register();
|
||||||
_textArea.setFocusHover(pFOCUS, pHOVER);
|
_textArea.setFocusHover(pFOCUS, pHOVER);
|
||||||
_textArea.shift_new_line = shift_new_line;
|
_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() {
|
static checkClosable = function() {
|
||||||
|
|
|
@ -46,17 +46,6 @@ function textArea(_input, _onModify) : textInput(_input, _onModify) constructor
|
||||||
|
|
||||||
code_line_width = 48;
|
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;
|
shift_new_line = true;
|
||||||
show_line_number = true;
|
show_line_number = true;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$GMScript":"v1",
|
"$GMScript":"",
|
||||||
"%Name":"textArea",
|
"%Name":"textArea",
|
||||||
"isCompatibility":false,
|
"isCompatibility":false,
|
||||||
"isDnD":false,
|
"isDnD":false,
|
||||||
|
|
|
@ -5,6 +5,17 @@ function textInput(_input, _onModify) : widget() constructor {
|
||||||
|
|
||||||
typing = 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 _resetFocus = function() { resetFocus(); }
|
||||||
|
|
||||||
static onKey = function(key) {}
|
static onKey = function(key) {}
|
||||||
|
|
Loading…
Reference in a new issue