From 28ca18d6d2500f0d16263f3960e9932c1e52f50c Mon Sep 17 00:00:00 2001 From: Tanasart Date: Thu, 2 May 2024 17:13:35 +0700 Subject: [PATCH] node dim --- scripts/__node_PCX/__node_PCX.gml | 2 +- scripts/node_PCX_equation/node_PCX_equation.gml | 2 +- scripts/node_VFX_trail/node_VFX_trail.gml | 2 +- scripts/node_array_range/node_array_range.gml | 2 +- scripts/node_color_mix/node_color_mix.gml | 2 +- scripts/node_data/node_data.gml | 8 +++++--- scripts/node_dynasurf_in/node_dynasurf_in.gml | 2 +- scripts/node_equation/node_equation.gml | 3 ++- .../node_gradient_replace_color.gml | 2 +- scripts/node_mesh_transform/node_mesh_transform.gml | 2 +- scripts/node_palette_extract/node_palette_extract.gml | 2 +- scripts/node_path_array/node_path_array.gml | 2 +- scripts/node_path_bake/node_path_bake.gml | 2 +- scripts/node_path_blend/node_path_blend.gml | 2 +- scripts/node_path_bridge/node_path_bridge.gml | 2 +- scripts/node_path_builder/node_path_builder.gml | 2 +- scripts/node_path_map_area/node_path_map_area.gml | 2 +- scripts/node_path_plot/node_path_plot.gml | 2 +- scripts/node_path_reverse/node_path_reverse.gml | 2 +- scripts/node_path_sample/node_path_sample.gml | 2 +- scripts/node_path_shift/node_path_shift.gml | 2 +- scripts/node_path_smooth/node_path_smooth.gml | 2 +- scripts/node_path_transform/node_path_transform.gml | 2 +- scripts/node_path_trim/node_path_trim.gml | 2 +- scripts/node_path_wave/node_path_wave.gml | 2 +- scripts/node_project_data/node_project_data.gml | 2 +- .../node_smoke_domain_queue/node_smoke_domain_queue.gml | 2 +- scripts/node_strand_break/node_strand_break.gml | 2 +- scripts/node_strand_collision/node_strand_collision.gml | 2 +- scripts/node_strand_create/node_strand_create.gml | 2 +- .../node_strand_force_apply/node_strand_force_apply.gml | 2 +- scripts/node_strand_gravity/node_strand_gravity.gml | 2 +- .../node_strand_length_adjust.gml | 2 +- scripts/node_strand_update/node_strand_update.gml | 2 +- scripts/node_string/node_string.gml | 2 +- scripts/windowManager/windowManager.gml | 2 +- 36 files changed, 41 insertions(+), 38 deletions(-) diff --git a/scripts/__node_PCX/__node_PCX.gml b/scripts/__node_PCX/__node_PCX.gml index d4ec3ae1a..f1028568d 100644 --- a/scripts/__node_PCX/__node_PCX.gml +++ b/scripts/__node_PCX/__node_PCX.gml @@ -1,6 +1,6 @@ function Node_PCX(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Compute Node"; - w = 96; + setDimension(96, 48);; destroy_when_upgroup = true; } \ No newline at end of file diff --git a/scripts/node_PCX_equation/node_PCX_equation.gml b/scripts/node_PCX_equation/node_PCX_equation.gml index fd63d5a30..4d17a2dee 100644 --- a/scripts/node_PCX_equation/node_PCX_equation.gml +++ b/scripts/node_PCX_equation/node_PCX_equation.gml @@ -1,7 +1,7 @@ function Node_PCX_Equation(_x, _y, _group = noone) : Node_PCX(_x, _y, _group) constructor { name = "Equation"; - w = 96; + setDimension(96, 48);; ast = noone; inputs[| 0] = nodeValue("Equation", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, ""); diff --git a/scripts/node_VFX_trail/node_VFX_trail.gml b/scripts/node_VFX_trail/node_VFX_trail.gml index 008005ce7..dcab78233 100644 --- a/scripts/node_VFX_trail/node_VFX_trail.gml +++ b/scripts/node_VFX_trail/node_VFX_trail.gml @@ -1,6 +1,6 @@ function Node_VFX_Trail(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "VFX Trail"; - w = 96; + setDimension(96, 48);; manual_ungroupable = false; diff --git a/scripts/node_array_range/node_array_range.gml b/scripts/node_array_range/node_array_range.gml index 7adf88228..89cfce0ac 100644 --- a/scripts/node_array_range/node_array_range.gml +++ b/scripts/node_array_range/node_array_range.gml @@ -1,6 +1,6 @@ function Node_Array_Range(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Array Range"; - w = 96; + setDimension(96, 48); inputs[| 0] = nodeValue("Start", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 0) .rejectArray(); diff --git a/scripts/node_color_mix/node_color_mix.gml b/scripts/node_color_mix/node_color_mix.gml index e62037157..d1096b3ad 100644 --- a/scripts/node_color_mix/node_color_mix.gml +++ b/scripts/node_color_mix/node_color_mix.gml @@ -1,6 +1,6 @@ function Node_Color_Mix(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor { name = "Mix Color"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Color from", self, JUNCTION_CONNECT.input, VALUE_TYPE.color, c_white); diff --git a/scripts/node_data/node_data.gml b/scripts/node_data/node_data.gml index cbdf3c1de..228c8a00b 100644 --- a/scripts/node_data/node_data.gml +++ b/scripts/node_data/node_data.gml @@ -91,8 +91,10 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor { selectable = true; clonable = true; - draw_padding = 4; auto_height = true; + draw_padding = 4; + draw_pad_w = 0; + draw_pad_h = 0; display_parameter = new connectionParameter(); @@ -1058,8 +1060,8 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor { _w *= _s; _h *= _s; - _w -= draw_padding * 2; - _h -= draw_padding * 2 + 20 * pad_label; + _w -= max(draw_padding, draw_pad_w) * 2; + _h -= max(draw_padding, draw_pad_h) * 2 + 20 * pad_label; var _xc = xx + w * _s / 2; var _yc = yy + _h / 2 + pad_label * 20 + draw_padding; diff --git a/scripts/node_dynasurf_in/node_dynasurf_in.gml b/scripts/node_dynasurf_in/node_dynasurf_in.gml index 21d62ad64..ba862b1b5 100644 --- a/scripts/node_dynasurf_in/node_dynasurf_in.gml +++ b/scripts/node_dynasurf_in/node_dynasurf_in.gml @@ -1,7 +1,7 @@ function Node_DynaSurf_In(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Input"; color = COLORS.node_blend_dynaSurf; - w = 96; + setDimension(96, 48);; manual_deletable = false; destroy_when_upgroup = true; diff --git a/scripts/node_equation/node_equation.gml b/scripts/node_equation/node_equation.gml index 18f5f4999..dcbd34468 100644 --- a/scripts/node_equation/node_equation.gml +++ b/scripts/node_equation/node_equation.gml @@ -33,6 +33,7 @@ function Node_Equation(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) name = "Equation"; color = COLORS.node_blend_number; + draw_pad_w = 10; setDimension(96, 48); ast = []; @@ -167,7 +168,7 @@ function Node_Equation(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) var str = getInputData(0); var bbox = drawGetBbox(xx, yy, _s); - var ss = string_scale(str, bbox.w - 10 * _s, bbox.h); + var ss = string_scale(str, bbox.w, bbox.h); draw_text_transformed(bbox.xc, bbox.yc, str, ss, ss, 0); } #endregion diff --git a/scripts/node_gradient_replace_color/node_gradient_replace_color.gml b/scripts/node_gradient_replace_color/node_gradient_replace_color.gml index ec9487086..b8e61e938 100644 --- a/scripts/node_gradient_replace_color/node_gradient_replace_color.gml +++ b/scripts/node_gradient_replace_color/node_gradient_replace_color.gml @@ -1,6 +1,6 @@ function Node_Gradient_Replace_Color(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor { name = "Gradient Replace"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Gradient", self, JUNCTION_CONNECT.input, VALUE_TYPE.gradient, new gradientObject(c_white) ) .setVisible(true, true); diff --git a/scripts/node_mesh_transform/node_mesh_transform.gml b/scripts/node_mesh_transform/node_mesh_transform.gml index 1b10e58a0..566d5e437 100644 --- a/scripts/node_mesh_transform/node_mesh_transform.gml +++ b/scripts/node_mesh_transform/node_mesh_transform.gml @@ -1,6 +1,6 @@ function Node_Mesh_Transform(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Mesh Transform"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Mesh", self, JUNCTION_CONNECT.input, VALUE_TYPE.mesh, noone) .setVisible(true, true); diff --git a/scripts/node_palette_extract/node_palette_extract.gml b/scripts/node_palette_extract/node_palette_extract.gml index ca8152036..8907af94b 100644 --- a/scripts/node_palette_extract/node_palette_extract.gml +++ b/scripts/node_palette_extract/node_palette_extract.gml @@ -1,6 +1,6 @@ function Node_Palette_Extract(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor { name = "Palette Extract"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Surface in", self, JUNCTION_CONNECT.input, VALUE_TYPE.surface, noone); diff --git a/scripts/node_path_array/node_path_array.gml b/scripts/node_path_array/node_path_array.gml index c646df3ae..5f0d840b5 100644 --- a/scripts/node_path_array/node_path_array.gml +++ b/scripts/node_path_array/node_path_array.gml @@ -1,6 +1,6 @@ function Node_Path_Array(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Path Array"; - w = 96; + setDimension(96, 48);; setIsDynamicInput(1); cached_pos = ds_map_create(); diff --git a/scripts/node_path_bake/node_path_bake.gml b/scripts/node_path_bake/node_path_bake.gml index 6d5dd82ee..53527d80d 100644 --- a/scripts/node_path_bake/node_path_bake.gml +++ b/scripts/node_path_bake/node_path_bake.gml @@ -1,6 +1,6 @@ function Node_Path_Bake(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Bake Path"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Path", self, JUNCTION_CONNECT.input, VALUE_TYPE.pathnode, noone) .setVisible(true, true); diff --git a/scripts/node_path_blend/node_path_blend.gml b/scripts/node_path_blend/node_path_blend.gml index 99e749221..90628160e 100644 --- a/scripts/node_path_blend/node_path_blend.gml +++ b/scripts/node_path_blend/node_path_blend.gml @@ -1,6 +1,6 @@ function Node_Path_Blend(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Blend Path"; - w = 96; + setDimension(96, 48);; length = 0; inputs[| 0] = nodeValue("Path 1", self, JUNCTION_CONNECT.input, VALUE_TYPE.pathnode, noone) diff --git a/scripts/node_path_bridge/node_path_bridge.gml b/scripts/node_path_bridge/node_path_bridge.gml index e464db5e1..405522b8f 100644 --- a/scripts/node_path_bridge/node_path_bridge.gml +++ b/scripts/node_path_bridge/node_path_bridge.gml @@ -1,6 +1,6 @@ function Node_Path_Bridge(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Bridge Path"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Path", self, JUNCTION_CONNECT.input, VALUE_TYPE.pathnode, noone) .setVisible(true, true) diff --git a/scripts/node_path_builder/node_path_builder.gml b/scripts/node_path_builder/node_path_builder.gml index d078b3256..7dba4dc42 100644 --- a/scripts/node_path_builder/node_path_builder.gml +++ b/scripts/node_path_builder/node_path_builder.gml @@ -1,6 +1,6 @@ function Node_Path_Builder(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Path Builder"; - w = 96; + setDimension(96, 48);; length = []; lengthAcc = []; diff --git a/scripts/node_path_map_area/node_path_map_area.gml b/scripts/node_path_map_area/node_path_map_area.gml index 3a8a88e7c..4b43b4dff 100644 --- a/scripts/node_path_map_area/node_path_map_area.gml +++ b/scripts/node_path_map_area/node_path_map_area.gml @@ -1,6 +1,6 @@ function Node_Path_Map_Area(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Remap Path"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Path", self, JUNCTION_CONNECT.input, VALUE_TYPE.pathnode, noone) .setVisible(true, true); diff --git a/scripts/node_path_plot/node_path_plot.gml b/scripts/node_path_plot/node_path_plot.gml index 0c9eac1ef..1e675bc04 100644 --- a/scripts/node_path_plot/node_path_plot.gml +++ b/scripts/node_path_plot/node_path_plot.gml @@ -1,7 +1,7 @@ function Node_Path_Plot(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Plot Path"; length = 0; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Output scale", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ 8, 8 ]) .setDisplay(VALUE_DISPLAY.vector); diff --git a/scripts/node_path_reverse/node_path_reverse.gml b/scripts/node_path_reverse/node_path_reverse.gml index dbdc49514..d2531e7c9 100644 --- a/scripts/node_path_reverse/node_path_reverse.gml +++ b/scripts/node_path_reverse/node_path_reverse.gml @@ -1,6 +1,6 @@ function Node_Path_Reverse(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Reverse Path"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Path", self, JUNCTION_CONNECT.input, VALUE_TYPE.pathnode, noone) .setVisible(true, true); diff --git a/scripts/node_path_sample/node_path_sample.gml b/scripts/node_path_sample/node_path_sample.gml index 5a7f71cbb..728061126 100644 --- a/scripts/node_path_sample/node_path_sample.gml +++ b/scripts/node_path_sample/node_path_sample.gml @@ -1,6 +1,6 @@ function Node_Path_Sample(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor { name = "Sample Path"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Path", self, JUNCTION_CONNECT.input, VALUE_TYPE.pathnode, noone) .setVisible(true, true); diff --git a/scripts/node_path_shift/node_path_shift.gml b/scripts/node_path_shift/node_path_shift.gml index 2508e8860..1ac0ed5ef 100644 --- a/scripts/node_path_shift/node_path_shift.gml +++ b/scripts/node_path_shift/node_path_shift.gml @@ -1,6 +1,6 @@ function Node_Path_Shift(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Shift Path"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Path", self, JUNCTION_CONNECT.input, VALUE_TYPE.pathnode, noone) .setVisible(true, true); diff --git a/scripts/node_path_smooth/node_path_smooth.gml b/scripts/node_path_smooth/node_path_smooth.gml index b6f82cf47..01577fbb7 100644 --- a/scripts/node_path_smooth/node_path_smooth.gml +++ b/scripts/node_path_smooth/node_path_smooth.gml @@ -1,6 +1,6 @@ function Node_Path_Smooth(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Smooth Path"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Loop", self, JUNCTION_CONNECT.input, VALUE_TYPE.boolean, false) .rejectArray(); diff --git a/scripts/node_path_transform/node_path_transform.gml b/scripts/node_path_transform/node_path_transform.gml index ea771b5a2..80d67100c 100644 --- a/scripts/node_path_transform/node_path_transform.gml +++ b/scripts/node_path_transform/node_path_transform.gml @@ -1,6 +1,6 @@ function Node_Path_Transform(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Transform Path"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Path", self, JUNCTION_CONNECT.input, VALUE_TYPE.pathnode, noone) .setVisible(true, true); diff --git a/scripts/node_path_trim/node_path_trim.gml b/scripts/node_path_trim/node_path_trim.gml index b49b97e61..4d9c786c0 100644 --- a/scripts/node_path_trim/node_path_trim.gml +++ b/scripts/node_path_trim/node_path_trim.gml @@ -1,6 +1,6 @@ function Node_Path_Trim(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Trim Path"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Path", self, JUNCTION_CONNECT.input, VALUE_TYPE.pathnode, noone) .setVisible(true, true); diff --git a/scripts/node_path_wave/node_path_wave.gml b/scripts/node_path_wave/node_path_wave.gml index 3d692ce64..f00f5223b 100644 --- a/scripts/node_path_wave/node_path_wave.gml +++ b/scripts/node_path_wave/node_path_wave.gml @@ -1,6 +1,6 @@ function Node_Path_Wave(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Wave Path"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Path", self, JUNCTION_CONNECT.input, VALUE_TYPE.pathnode, noone) .setVisible(true, true); diff --git a/scripts/node_project_data/node_project_data.gml b/scripts/node_project_data/node_project_data.gml index f159599e0..bebe1ffc4 100644 --- a/scripts/node_project_data/node_project_data.gml +++ b/scripts/node_project_data/node_project_data.gml @@ -1,6 +1,6 @@ function Node_Project_Data(_x, _y, _group = noone) : Node(_x, _y, _group) constructor { name = "Project Data"; - w = 96; + setDimension(96, 48);; outputs[| 0] = nodeValue("Name", self, JUNCTION_CONNECT.output, VALUE_TYPE.text, "") .setVisible(false); diff --git a/scripts/node_smoke_domain_queue/node_smoke_domain_queue.gml b/scripts/node_smoke_domain_queue/node_smoke_domain_queue.gml index 1554a4acc..89584c699 100644 --- a/scripts/node_smoke_domain_queue/node_smoke_domain_queue.gml +++ b/scripts/node_smoke_domain_queue/node_smoke_domain_queue.gml @@ -1,6 +1,6 @@ function Node_Smoke_Domain_Queue(_x, _y, _group = noone) : Node_Smoke(_x, _y, _group) constructor { name = "Queue Domain"; - w = 96; + setDimension(96, 48);; manual_ungroupable = false; diff --git a/scripts/node_strand_break/node_strand_break.gml b/scripts/node_strand_break/node_strand_break.gml index 32ceaf4d0..abe38878e 100644 --- a/scripts/node_strand_break/node_strand_break.gml +++ b/scripts/node_strand_break/node_strand_break.gml @@ -2,7 +2,7 @@ function Node_Strand_Break(_x, _y, _group = noone) : _Node_Strand_Affector(_x, _ name = "Strand Break"; color = COLORS.node_blend_strand; icon = THEME.strandSim; - w = 96; + setDimension(96, 48);; manual_ungroupable = false; diff --git a/scripts/node_strand_collision/node_strand_collision.gml b/scripts/node_strand_collision/node_strand_collision.gml index cc1d44775..50e3f5e2d 100644 --- a/scripts/node_strand_collision/node_strand_collision.gml +++ b/scripts/node_strand_collision/node_strand_collision.gml @@ -2,7 +2,7 @@ function Node_Strand_Collision(_x, _y, _group = noone) : Node(_x, _y, _group) co name = "Strand Collision"; color = COLORS.node_blend_strand; icon = THEME.strandSim; - w = 96; + setDimension(96, 48);; manual_ungroupable = false; diff --git a/scripts/node_strand_create/node_strand_create.gml b/scripts/node_strand_create/node_strand_create.gml index da1618cfb..b8d5e1735 100644 --- a/scripts/node_strand_create/node_strand_create.gml +++ b/scripts/node_strand_create/node_strand_create.gml @@ -2,7 +2,7 @@ function Node_Strand_Create(_x, _y, _group = noone) : Node(_x, _y, _group) const name = "Strand Create"; color = COLORS.node_blend_strand; icon = THEME.strandSim; - w = 96; + setDimension(96, 48);; update_on_frame = true; manual_ungroupable = false; diff --git a/scripts/node_strand_force_apply/node_strand_force_apply.gml b/scripts/node_strand_force_apply/node_strand_force_apply.gml index fd64eecb5..065b420a2 100644 --- a/scripts/node_strand_force_apply/node_strand_force_apply.gml +++ b/scripts/node_strand_force_apply/node_strand_force_apply.gml @@ -2,7 +2,7 @@ function Node_Strand_Force_Apply(_x, _y, _group = noone) : _Node_Strand_Affector name = "Strand Force"; color = COLORS.node_blend_strand; icon = THEME.strandSim; - w = 96; + setDimension(96, 48);; manual_ungroupable = false; diff --git a/scripts/node_strand_gravity/node_strand_gravity.gml b/scripts/node_strand_gravity/node_strand_gravity.gml index 935eeb635..cd8646672 100644 --- a/scripts/node_strand_gravity/node_strand_gravity.gml +++ b/scripts/node_strand_gravity/node_strand_gravity.gml @@ -2,7 +2,7 @@ function Node_Strand_Gravity(_x, _y, _group = noone) : Node(_x, _y, _group) cons name = "Strand Gravity"; color = COLORS.node_blend_strand; icon = THEME.strandSim; - w = 96; + setDimension(96, 48);; manual_ungroupable = false; diff --git a/scripts/node_strand_length_adjust/node_strand_length_adjust.gml b/scripts/node_strand_length_adjust/node_strand_length_adjust.gml index fc71966dd..448eb9ca6 100644 --- a/scripts/node_strand_length_adjust/node_strand_length_adjust.gml +++ b/scripts/node_strand_length_adjust/node_strand_length_adjust.gml @@ -2,7 +2,7 @@ function Node_Strand_Length_Adjust(_x, _y, _group = noone) : _Node_Strand_Affect name = "Strand Length"; color = COLORS.node_blend_strand; icon = THEME.strandSim; - w = 96; + setDimension(96, 48);; manual_ungroupable = false; diff --git a/scripts/node_strand_update/node_strand_update.gml b/scripts/node_strand_update/node_strand_update.gml index b76efee03..8732375d7 100644 --- a/scripts/node_strand_update/node_strand_update.gml +++ b/scripts/node_strand_update/node_strand_update.gml @@ -2,7 +2,7 @@ function Node_Strand_Update(_x, _y, _group = noone) : Node(_x, _y, _group) const name = "Strand Update"; color = COLORS.node_blend_strand; icon = THEME.strandSim; - w = 96; + setDimension(96, 48);; manual_ungroupable = false; diff --git a/scripts/node_string/node_string.gml b/scripts/node_string/node_string.gml index 3df58a0f8..a5428d090 100644 --- a/scripts/node_string/node_string.gml +++ b/scripts/node_string/node_string.gml @@ -1,6 +1,6 @@ function Node_String(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor { name = "Text"; - w = 96; + setDimension(96, 48);; inputs[| 0] = nodeValue("Text", self, JUNCTION_CONNECT.input, VALUE_TYPE.text, ""); diff --git a/scripts/windowManager/windowManager.gml b/scripts/windowManager/windowManager.gml index 7964947ae..f34d27bd4 100644 --- a/scripts/windowManager/windowManager.gml +++ b/scripts/windowManager/windowManager.gml @@ -12,7 +12,7 @@ globalvar window_drag_sw; window_drag_sw = 0; globalvar window_drag_sh; window_drag_sh = 0; - globalvar window_min_w; window_min_w = 960; + globalvar window_min_w; window_min_setDimension(96, 48);0; globalvar window_min_h; window_min_h = 600; globalvar window_preminimize_rect; window_preminimize_rect = [ 0, 0, 1, 1 ];