godottest/godot/addons/rmsmartshape/actions/action_delete_point.gd
Joey Eamigh 9989fab018
addons?
2025-10-10 14:07:23 -04:00

13 lines
363 B
GDScript

extends SS2D_ActionDeletePoints
class_name SS2D_ActionDeletePoint
func _init(shape: SS2D_Shape, key: int, commit_update: bool = true) -> void:
var keys: PackedInt32Array = [key]
super(shape, keys, commit_update)
func get_name() -> String:
var pos := _shape.get_point_array().get_point_position(_keys[0])
return "Delete Point at (%d, %d)" % [pos.x, pos.y]