Add lever and jump pad components with activation logic
This commit is contained in:
16
addons/rmsmartshape/scenes/SnapPopup.gd
Normal file
16
addons/rmsmartshape/scenes/SnapPopup.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
@tool
|
||||
extends Popup
|
||||
class_name SS2D_SnapPopup
|
||||
|
||||
@onready var snap_offset_x: SpinBox = %SnapOffsetX
|
||||
@onready var snap_offset_y: SpinBox = %SnapOffsetY
|
||||
@onready var snap_step_x: SpinBox = %SnapStepX
|
||||
@onready var snap_step_y: SpinBox = %SnapStepY
|
||||
|
||||
|
||||
func get_snap_offset() -> Vector2:
|
||||
return Vector2(snap_offset_x.value, snap_offset_y.value)
|
||||
|
||||
|
||||
func get_snap_step() -> Vector2:
|
||||
return Vector2(snap_step_x.value, snap_step_y.value)
|
Reference in New Issue
Block a user