2 extends DialogicVisualEditorFieldVector
3 ## Event block field for a Vector2.
5 var current_value := Vector2()
8 func _set_value(value: Variant) -> void:
13 func get_value() -> Vector2:
17 func _on_sub_value_changed(sub_component: String, value: float) -> void:
19 'X': current_value.x = value
20 'Y': current_value.y = value
21 _on_value_changed(current_value)
24 func _update_sub_component_text(value: Variant) -> void:
25 $X._on_value_text_submitted(str(value.x), true)
26 $Y._on_value_text_submitted(str(value.y), true)