mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-11 23:06:51 +01:00
- [Number] Fix node size not update correctly.
This commit is contained in:
parent
a50fcaec8b
commit
5c03723004
1 changed files with 10 additions and 4 deletions
|
@ -47,35 +47,41 @@ function Node_Number(_x, _y, _group = noone) : Node(_x, _y, _group) constructor
|
||||||
static step = function() {
|
static step = function() {
|
||||||
var int = getInputData(1);
|
var int = getInputData(1);
|
||||||
var disp = getInputData(2);
|
var disp = getInputData(2);
|
||||||
|
var _ch = con_h;
|
||||||
|
|
||||||
if(!show_parameter) setDimension(96, 56, false);
|
if(!show_parameter) setDimension(96, 56, false);
|
||||||
|
|
||||||
switch(disp) {
|
switch(disp) {
|
||||||
case 0 :
|
case 0 :
|
||||||
|
min_h = 0;
|
||||||
inputs[| 3].setVisible(false);
|
inputs[| 3].setVisible(false);
|
||||||
inputs[| 4].setVisible(false);
|
inputs[| 4].setVisible(false);
|
||||||
inputs[| 5].setVisible(false);
|
inputs[| 5].setVisible(false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1 :
|
case 1 :
|
||||||
if(inputs[| 0].value_from == noone && !show_parameter) setDimension(160, 96, false);
|
if(inputs[| 0].value_from == noone && !show_parameter) setDimension(160, 96, false);
|
||||||
|
min_h = con_h;
|
||||||
|
|
||||||
inputs[| 3].setVisible(true);
|
inputs[| 3].setVisible(true);
|
||||||
inputs[| 4].setVisible(true);
|
inputs[| 4].setVisible(true);
|
||||||
inputs[| 5].setVisible(true);
|
inputs[| 5].setVisible(true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2 :
|
case 2 :
|
||||||
if(inputs[| 0].value_from == noone && !show_parameter) setDimension(128, 128, false);
|
if(inputs[| 0].value_from == noone && !show_parameter) setDimension(128, 128, false);
|
||||||
|
min_h = con_h;
|
||||||
|
|
||||||
inputs[| 3].setVisible(false);
|
inputs[| 3].setVisible(false);
|
||||||
inputs[| 4].setVisible(false);
|
inputs[| 4].setVisible(false);
|
||||||
inputs[| 5].setVisible(false);
|
inputs[| 5].setVisible(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
for( var i = 0; i < 1; i++ ) {
|
if(_ch != con_h) will_setHeight = true;
|
||||||
inputs[| i].setType(int? VALUE_TYPE.integer : VALUE_TYPE.float);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
for( var i = 0; i < 1; i++ )
|
||||||
|
inputs[| i].setType(int? VALUE_TYPE.integer : VALUE_TYPE.float);
|
||||||
outputs[| 0].setType(int? VALUE_TYPE.integer : VALUE_TYPE.float);
|
outputs[| 0].setType(int? VALUE_TYPE.integer : VALUE_TYPE.float);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue