challenge-editor/class/map/map_class.gd
2024-09-21 11:52:44 +08:00

26 lines
468 B
GDScript

extends ScrollContainer
class_name Map
signal click(scene_id:String)
func _gui_input(event: InputEvent) -> void:
if event is InputEventMouseMotion and Input.is_action_pressed("mouse_left"):
var relative:Vector2=event.relative
scroll_horizontal-=relative.x
scroll_vertical-=relative.y
pass
func _on_linyi_pressed() -> void:
click.emit("")
pass # Replace with function body.
func _on_jining_pressed() -> void:
pass # Replace with function body.