Skip to content

Commit

Permalink
Merge pull request #374 from endlessm/mouse-position-block
Browse files Browse the repository at this point in the history
Add new value block: mouse_position
  • Loading branch information
wjt authored Feb 3, 2025
2 parents f29388d + d55f2cf commit 984a15f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions addons/block_code/blocks/input/mouse_position.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[gd_resource type="Resource" load_steps=2 format=3 uid="uid://dwrdne76nxk7t"]

[ext_resource type="Script" path="res://addons/block_code/code_generation/block_definition.gd" id="1_7vl3n"]

[resource]
script = ExtResource("1_7vl3n")
name = &"mouse_position"
target_node_class = "CanvasItem"
description = "The coordinates of the mouse position."
category = "Input"
type = 3
variant_type = 5
display_template = "mouse position"
code_template = "get_global_mouse_position()"
defaults = {}
signal_name = ""
is_advanced = false

0 comments on commit 984a15f

Please sign in to comment.