File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
addons/block_code/ui/blocks/utilities/parameter_input Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ var _drag_start: Vector2 = Vector2.INF
5151 _line_edit : "" ,
5252 _x_line_edit : "" ,
5353 _y_line_edit : "" ,
54+ _v3_x_line_edit : "" ,
55+ _v3_y_line_edit : "" ,
56+ _v3_z_line_edit : "" ,
5457}
5558
5659
@@ -78,6 +81,10 @@ func set_raw_input(raw_input: Variant):
7881 # Rounding because floats are doubles by default but Vector2s have single components
7982 _x_line_edit .text = ("%.4f " % raw_input .x ).rstrip ("0" ).rstrip ("." ) if raw_input != null else ""
8083 _y_line_edit .text = ("%.4f " % raw_input .y ).rstrip ("0" ).rstrip ("." ) if raw_input != null else ""
84+ TYPE_VECTOR3 :
85+ _v3_x_line_edit .text = ("%.4f " % raw_input .x ).rstrip ("0" ).rstrip ("." ) if raw_input != null else ""
86+ _v3_y_line_edit .text = ("%.4f " % raw_input .y ).rstrip ("0" ).rstrip ("." ) if raw_input != null else ""
87+ _v3_z_line_edit .text = ("%.4f " % raw_input .z ).rstrip ("0" ).rstrip ("." ) if raw_input != null else ""
8188 TYPE_BOOL :
8289 _bool_input_option .select (1 if raw_input else 0 )
8390 TYPE_NIL :
@@ -88,6 +95,9 @@ func set_raw_input(raw_input: Variant):
8895 _last_submitted_text [_line_edit ] = _line_edit .text
8996 _last_submitted_text [_x_line_edit ] = _x_line_edit .text
9097 _last_submitted_text [_y_line_edit ] = _y_line_edit .text
98+ _last_submitted_text [_v3_x_line_edit ] = _v3_x_line_edit .text
99+ _last_submitted_text [_v3_y_line_edit ] = _v3_y_line_edit .text
100+ _last_submitted_text [_v3_z_line_edit ] = _v3_z_line_edit .text
91101
92102
93103## Gets the value, which could be one of a variety of types depending on
You can’t perform that action at this time.
0 commit comments