Skip to content

Commit

Permalink
Merge branch 'vector2-x-and-y-blocks'
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanmccall committed Oct 10, 2024
2 parents eef1e60 + 877f562 commit d8d10ee
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions addons/block_code/blocks/math/vector2_x.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[gd_resource type="Resource" load_steps=2 format=3 uid="uid://btsfimn63xhi2"]

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

[resource]
script = ExtResource("1_dvsrc")
name = &"vector2_x"
target_node_class = ""
description = "Gives the x of a [i]Vector2[/i]"
category = "Math"
type = 3
variant_type = 3
display_template = "x of {vector2: VECTOR2}"
code_template = "{vector2}.x"
defaults = {
"vector2": Vector2(0, 0)
}
signal_name = ""
scope = ""
19 changes: 19 additions & 0 deletions addons/block_code/blocks/math/vector2_y.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[gd_resource type="Resource" load_steps=2 format=3 uid="uid://ccbrbp4lee3wt"]

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

[resource]
script = ExtResource("1_wuold")
name = &"vector2_y"
target_node_class = ""
description = "Gives the y of a [i]Vector2[/i]"
category = "Math"
type = 3
variant_type = 3
display_template = "y of {vector2: VECTOR2}"
code_template = "{vector2}.y"
defaults = {
"vector2": Vector2(0, 0)
}
signal_name = ""
scope = ""

0 comments on commit d8d10ee

Please sign in to comment.